Skip to content

Commit 3fcedf1

Browse files
committed
Update Karate example
1 parent 7cdbae8 commit 3fcedf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example-karate/src/test/java/com/epam/reportportal/example/karate/KarateRunnerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public class KarateRunnerTest {
2626

2727
@Test
2828
public void testAll() {
29-
ReportPortalHook karateHook = new ReportPortalHook(); // Initialize ReportPortal runtime Karate hook
29+
ReportPortalHook karateRuntimeHook = new ReportPortalHook(); // Initialize ReportPortal runtime Karate hook
3030
Results results = Runner // Regular Karate runner
3131
.path("classpath:features") // Path with feature files
32-
.hook(karateHook) // Add Karate hook
32+
.hook(karateRuntimeHook) // Add Karate hook
3333
.outputCucumberJson(true) // Generate cucumber report
3434
.tags("~@ignore") // Ignore tests marked with the tag
3535
.parallel(2); // Run in 2 Threads
3636
// Here you can additionally run tests, retries, etc.
37-
karateHook.finishLaunch(); // Finish execution on ReportPortal
37+
karateRuntimeHook.finishLaunch(); // Finish execution on ReportPortal
3838
Assertions.assertEquals(0, results.getFailCount(), "Non-zero fail count.\n Errors:\n" + results.getErrorMessages());
3939
}
4040
}

0 commit comments

Comments
 (0)