How to reduce the time in executing Selenium test cases? How to reduce the time in executing Selenium test cases? selenium selenium

How to reduce the time in executing Selenium test cases?


you can check for the Selenium grid option, which will help you to run the tests in parallel.http://selenium-grid.seleniumhq.org/


In the 380 testcases you have , check if all the testcases are really required . If all the testcases are required , check if u are having any repeated validations and see if you can remove any one of them .

If you are using wait time in your testcases , see if you can reduce the wait times with out affecting the output of the testcases .

The best thing would be to split them in to seperate groups and run them in different machines using Grid . Or use TestNg/JUnit to run the testCases parallely .

In TestNg , in the testng.xml file , u can use the following to run them in parallel

<suite name="ParallelTests" verbose="5" parallel="methods" thread-count="10">