I am using the Cucumber for Appian package along with Junit4.
For running the tests in parallel I am using the surfire plugin parameters provided in https://cucumber.io/docs/guides/parallel-execution/?lang=java#junit-4
During execution although multiple instances of chrome browser are opening in parallel, the rest for the steps are being executed on a single browser.
Looks like each browser instance is not thread safe. Anyone faced this issue or are able to successfully run tests in parallel?
Discussion posts and replies are publicly visible
Hi Jithesh,I think we need to specify the number of threads to run and number of java classes has to run. if any series of action has to follow like (series of approvals in the application) we need to instructions when browser need to start for series of actions
Can you confirm you are able to perform parallel tests successfully? And if you are using junit surefire can you share the surefire configurations?
From what I see, the appian cucumber library use a singleton instance of the browser class due to which context is shared by all the parallel tests and causes this issue.
Parallel tests running on the same browser can cause race conditions and synchronization issues. For example, actions performed by one test might not be complete before the next test starts, leading to errors or incomplete execution.
getaway shootout