How to run selenium html suite parallely on the same PC in three different browsers?

I run CHROME, FF, IE in parallel, changing the port number:

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 works fine and closes after completion of BUT

when FF finishes the automation , it closes IE, not FF and FF continues to work forever .... Can anyone guess why this is happening?

+5
source share
1 answer

You can run selenium-server-autonomously several times with different parameters. However, seeing that you are experiencing unexpected behavior, we can conclude that such use is not supported, since there is no documentation that can be found. To find the root cause of your problem, you need to perform additional debugging.

A selenium stand-alone server comes bundled with a grid server. The grid server was designed (exactly the way you want it) to run and manage multiple tests. This allows you to run multiple tests in parallel, manage browser settings and track test results.

Http://docs.seleniumhq.org has a guide to setting up a Grid server.

It is unknown and unlikely that you can run the Selenium IDE HTML Suite -htmlSuite directly using the Grid server. There is no documentation on this document. However, you can export your existing Selenium IDE HTML Suite to WebDriver-compatible code.

Of course, you can always choose to run tests on several virtual machines, this route also solves the problem due to the inability to run multiple instances.

+1
source

Source: https://habr.com/ru/post/1209539/


All Articles