RE: In case of parallel execution in selenium, I am passing same browser value for two tests, in this case my both tests are executed sequentially rather than parallely. Is this proper?

Please let me know the solution.

raki1807 Default Asked on April 13, 2015 in Selenium WebDriver.
Add Comment
1 Answers

Basically parallel testing can not be done by sharing the same instance of browser across different tests. Your test will always wait in a sequence to get hold of the browser to execute the steps. Essentially you will ned up doing tests in a synchronous way.

Try creating different browsers of each test. Then you will achieve true parallelism.


Professor Answered on April 13, 2015.

Thanku this answer is helpful, but creating different instances for browser create performance issues or not because we at least create 3 instances of driver.

on April 21, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.