private Parameter convert(final ru.yandex.qatools.allure.model.Parameter parameter) { return new Parameter() .setName(parameter.getName()) .setValue(parameter.getValue()); }
@Override public void readResults(final Configuration configuration, final ResultsVisitor visitor, final Path resultsDirectory) { final Properties allureProperties = loadAllureProperties(resultsDirectory); final RandomUidContext context = configuration.requireContext(RandomUidContext.class); final Map<String, String> environment = processEnvironment(resultsDirectory); getStreamOfAllure1Results(resultsDirectory).forEach(testSuite -> testSuite.getTestCases() .forEach(testCase -> { convert(context.getValue(), resultsDirectory, visitor, testSuite, testCase, allureProperties); getEnvironmentParameters(testCase).forEach(param -> environment.put(param.getName(), param.getValue()) ); }) ); visitor.visitExtra(ENVIRONMENT_BLOCK_NAME, environment); }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { String theValue; theValue = this.getValue(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue); } { ParameterKind theKind; theKind = this.getKind(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kind", theKind), currentHashCode, theKind); } return currentHashCode; }
private Parameter convert(final ru.yandex.qatools.allure.model.Parameter parameter) { return new Parameter() .setName(parameter.getName()) .setValue(parameter.getValue()); }
@Override public void readResults(final Configuration configuration, final ResultsVisitor visitor, final Path resultsDirectory) { final Properties allureProperties = loadAllureProperties(resultsDirectory); final RandomUidContext context = configuration.requireContext(RandomUidContext.class); final Map<String, String> environment = processEnvironment(resultsDirectory); getStreamOfAllure1Results(resultsDirectory).forEach(testSuite -> testSuite.getTestCases() .forEach(testCase -> { convert(context.getValue(), resultsDirectory, visitor, testSuite, testCase, allureProperties); getEnvironmentParameters(testCase).forEach(param -> environment.put(param.getName(), param.getValue()) ); }) ); visitor.visitExtra(ENVIRONMENT_BLOCK_NAME, environment); }