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.
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.