@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("2f9965e6cc23d5c5f9c5268a2ff6f921"); }
private String getHistoryId(final TestCase testCase) { final String testCaseLocation = testCase.getUri() + ":" + testCase.getLine(); return md5(testCaseLocation); }
AllureCucumber4Jvm implements ConcurrentEventListener { private String getHistoryId(final TestCase testCase) { final String testCaseLocation = testCase.getUri() + ":" + testCase.getLine(); return md5(testCaseLocation); } }
AllureCucumber4Jvm implements ConcurrentEventListener { private String getHistoryId(final TestCase testCase) { final String testCaseLocation = testCase.getUri() + ":" + testCase.getLine(); return md5(testCaseLocation); } @SuppressWarnings("unused")  AllureCucumber4Jvm();  AllureCucumber4Jvm(final AllureLifecycle lifecycle); }
AllureCucumber4Jvm implements ConcurrentEventListener { private String getHistoryId(final TestCase testCase) { final String testCaseLocation = testCase.getUri() + ":" + testCase.getLine(); return md5(testCaseLocation); } @SuppressWarnings("unused")  AllureCucumber4Jvm();  AllureCucumber4Jvm(final AllureLifecycle lifecycle); @Override void setEventPublisher(final EventPublisher publisher); }
AllureCucumber4Jvm implements ConcurrentEventListener { private String getHistoryId(final TestCase testCase) { final String testCaseLocation = testCase.getUri() + ":" + testCase.getLine(); return md5(testCaseLocation); } @SuppressWarnings("unused")  AllureCucumber4Jvm();  AllureCucumber4Jvm(final AllureLifecycle lifecycle); @Override void setEventPublisher(final EventPublisher publisher);  }