Reputation: 1
i have the test cases with my on framework i.e. my seleniumtestsupport.java file in i uses the webdriver class for starting,stoping & killing the browser.Scripts was running ok with Selenium rc smoothly.Now i want to run multiple scripts through selenium grid on multiple ports.I did setup the grid with testNg and ant.But issue is what changes to be made in the SeeleniumTestSupport.java file or any other files to run the scripts. testng.xml file is also configured. please help me ?
Upvotes: 0
Views: 910
Reputation: 4949
Selenium-Grid by itself doesn't do any thing to run tests in parallel. Grid is like mammoth selenium-RC which can execute multiple tests together. But for Grid to execute multiple tests you need to trigger many tests at the same time. For that you will have to use testNG's features.
You can get details on how to use testNG to run multiple tests in parallel from here
You can read more about how Selenium Grid 1.xx works here. Grid 1.x handles only selenium requests and not webdriver. But it's better you understand how Grid 1.x works.
The next version of Grid (Grid 2.0) was released recently. That handles webdriver tests also. You can download Grid 2.0 from here and find more details about Grid here
Upvotes: 1