@AllureFeatures.History @Test void shouldPersistHistoryIdForScenarios() { final AllureResultsWriterStub writer = new AllureResultsWriterStub(); runFeature(writer, "features/simple.feature"); final List<TestResult> testResults = writer.getTestResults(); assertThat(testResults.get(0).getHistoryId()) .isEqualTo("8eea9ed4458a49d418859d1398580671"); }
private String getHistoryId(final TestCase testCase) { final String testCaseLocation = testCase.getUri().toString() .substring(testCase.getUri().toString().lastIndexOf('/') + 1) + ":" + testCase.getLine(); return md5(testCaseLocation); }
AllureCucumber5Jvm implements ConcurrentEventListener { private String getHistoryId(final TestCase testCase) { final String testCaseLocation = testCase.getUri().toString() .substring(testCase.getUri().toString().lastIndexOf('/') + 1) + ":" + testCase.getLine(); return md5(testCaseLocation); } }
AllureCucumber5Jvm implements ConcurrentEventListener { private String getHistoryId(final TestCase testCase) { final String testCaseLocation = testCase.getUri().toString() .substring(testCase.getUri().toString().lastIndexOf('/') + 1) + ":" + testCase.getLine(); return md5(testCaseLocation); } @SuppressWarnings("unused")  AllureCucumber5Jvm();  AllureCucumber5Jvm(final AllureLifecycle lifecycle); }
AllureCucumber5Jvm implements ConcurrentEventListener { private String getHistoryId(final TestCase testCase) { final String testCaseLocation = testCase.getUri().toString() .substring(testCase.getUri().toString().lastIndexOf('/') + 1) + ":" + testCase.getLine(); return md5(testCaseLocation); } @SuppressWarnings("unused")  AllureCucumber5Jvm();  AllureCucumber5Jvm(final AllureLifecycle lifecycle); @Override void setEventPublisher(final EventPublisher publisher); }
AllureCucumber5Jvm implements ConcurrentEventListener { private String getHistoryId(final TestCase testCase) { final String testCaseLocation = testCase.getUri().toString() .substring(testCase.getUri().toString().lastIndexOf('/') + 1) + ":" + testCase.getLine(); return md5(testCaseLocation); } @SuppressWarnings("unused")  AllureCucumber5Jvm();  AllureCucumber5Jvm(final AllureLifecycle lifecycle); @Override void setEventPublisher(final EventPublisher publisher);  }