Data Driven Framework- not able to run same tests for multiple data from xls file | Selenium Forum
Sourabh Posted on 30/11/2019


I want to run same test for multiple data sets through xls file in data driven framework using all runmode (Y/N) things without opening new browser for each data set

I want to run it with the same opened browser for all data.


want to run this for multiple TYNumber in a loop 

type("filterTextField_xpath", data.get("TYNumber"));

Support Team Replied on 30/11/2019

Ok.. In that case open the browser in @BeforeTest Annotation. @BeforeTest is just executed once

Then @DataProvider can supply the data to the same test multiple times and you can use same browser which you opened in @BeforeTest annotation