I am trying to do parallel execution using Courgette thread (cucumber-testng with java ) and using same user in all test. And noticed an issue as first test case, user login and change role as "Tester" and do something. second test case, same user login and change role as "Developer" and do something. As cookies is shared between browsers, test getting failed as "No access" ( when developer tries to do something which only applicable for tester and vice versa ). Please suggest how to run parallel execution without cookies shared in between browsers. so far: tried creating unique webdriver for each test, tried creating unique chrome profile for each test, tried deleting cookies on each test end.
Asked
Active
Viewed 46 times