File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
example-karate/src/test/java/com/epam/reportportal/example/karate Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments