Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to run selenium html suite parallely on same pc in 3 different browsers?

I am running CHROME, FF, IE parallely by changing port number the command is:

java -jar D:\selenium\selenium-server-standalone-2.40.0.jar -htmlSuite "*googlechrome C:\chrome.exe" http://localhost/test/ D:\selenium\TS6.html C:\RES\Result_TS6.html -port 4448

and -port 4452 for FF
and -port 4456 for IE

CHROME runs perfectly fine and close after completion BUT

when FF completes its automation it is closing IE rather than FF and FF remains running forever.... Can anybody suggest why this is happening?

like image 909
Rahul Avatar asked Nov 10 '22 21:11

Rahul


1 Answers

It is possible to run selenium-server-standalone multiple times with different parameters. However seeing as you are experiencing unexpected behavior it can be concluded that such usage is not supported, as there is also no documentation to be found. To find the root cause of your problem more debugging needs to be done.

The selenium-standalone-server comes bundled with the Grid server. The Grid server has been designed (for exactly what you want) to execute and manage multiple tests. This allows you to execute multiple tests parallel, manage your browser configurations and keep track of the test results.

On http://docs.seleniumhq.org there is a guide on how to setup the Grid server.

It is unknown, and highly unlikely, that it is possible to run a Selenium IDE HTML Suite -htmlSuite directly with the Grid server. There is no documentation to be found on this. However, it is possible to export an existing Selenium IDE HTML Suite to WebDriver compatible code.

Of course you can always opted for running the tests in multiple virtual machines, this route also solves the problem from not being able to run multiple instances.

like image 76
Paul Avatar answered Nov 14 '22 22:11

Paul