Replies: 1 comment 3 replies
-
From the perspective of Cucumber, each time it is executed by TestNG is a separate independent execution. It doesn't matter if this happens in serial or parallel. So you'd have to configure Cucumber to write the reports for each browser to a different file. See https://github.com/cucumber/cucumber-jvm/tree/main/cucumber-testng#configure-cucumber-options-via-testng-xml. And there should be some third party tools available to merge reports. Alternatively you could use only the reports created by TestNG. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using a Cucumber TestNG framework for parallel execution. TestNG is configured for multi-browser testing using parameters, and I fetch these parameter values using TestNG annotations. Additionally, parallel execution is enabled in TestNG with a thread count of 2, and I trigger test automation from TestNG.
The issue I'm facing is that after parallel execution, I am not getting a consolidated cucumber.json report. Even though the tests run in two browsers simultaneously, the report.json file contains data for only one scenario. Also, cucumber.html is blank. How can I resolve this?
Beta Was this translation helpful? Give feedback.
All reactions