How to reduce UI automation suite execution time

I have an UI automation suite built in Java+Webdriver+Testng.It took 8 hour for complete execution.I need to reduce its execution time using code optimization.In my suite,browser window open for every test data row of excel i.e. If there are 8 test data row for a single test than browser window will open 8 times. Please suggest me different approaches.

Default Asked on May 22, 2015 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Hi, To answer this first of all let us know what is the main class.under main class @BeforeSuite and @AfterSuite annotations and place your open browser and close browser functions under it and remove it from test data row ,then try it.Use TestNG annotations effectively.

    Train Answered on May 27, 2015.

    Hi Ravinder,
    Thanks for your answer.I did it but it reduce only one hour,what else I can do to improve execution time


    on June 4, 2015.
    Add Comment
  • Your Answer

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