How to execute many scripts in less time?.

Hello,

I want to know, suppose I have 250 Test scripts, I have 1hour of time to execute these 250 test scripts but if I can not execute these test scripts in 1hour. So how to execute 250 Test scripts in less than 1 hour?.

Ex: If 100 Test scripts are executing in IE and  100 Test scripts are executing in FF, etc.. then it’s OK for me (Need to verify 250 Test scripts in timely).

Note: 1. Can use same browser (IE or FF or etc) to execute 250 test scripts.
2. Can use different browsers to execute 250 test scripts.

Please suggest me, how to proceed with this.

Doctor Asked on August 26, 2014 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)
    Best answer

    Hi Rocky,

    There are multiple possible ways to handle your problem. But I am just curious to know the reason of such a hurry. Bcoz Selenium is not as constant as QTP and during your execution you often face timinmg issues with Selenium. I use alot of thread.sleep in my scripts, as I am never bothered about execution time rather i always focus on execution quality.

    Ways to do it:

    1. Selenium Grid : With the help of this you can spread your test across different machines. (Not Suggested)
    2. Ghost Driver : With the help of this you can actually speed up your execution time, as it is an invisible browser and its quite fast. (Not Suggested)
    3. Parallel Testing : With this you may be able to achieve what you are looking for, still it can effect the execution quality and you can end up with multiple failed testcase bcoz intermittant browser issue. But still it is much better than others, you can learn about parallel testing from http://www.toolsqa.com/selenium-webdriver/testng-multi-browser-cross-browser/

    Hope it is just an interveiw question and above solution will help you in that but not in real time.

    Best Regards,
    Lakshay Sharma

    Professor Answered on August 26, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.