0
votes

I have keyword driven automation framework in Selenium.

At the run-time i am creating testng suite.xml which includes all method names(the testcases which are marked as Yes in Test Suite.xls), parallel=methods, thread-count-2 and then testng.xml is executed.

Although two browser instance is opened, only one test script is executed. Other browser instance wait till first script is executed and then second script is executed.

It would be great if some one can help me on this or provide alternative solution to implement parallel execution in key-word driven framework.

2
Actually executing methods in two different browser instances is not suggested since it may have dependencies but you can post your code here and show what exactly you wrote - whatsinthename

2 Answers

0
votes

Used Threadable Webdriver which creates browser instances on parallel threads and executed the scripts.

-1
votes

You can try with selenium grid to execute the script in parallel. It may help you.