Data Driven Framework- not able to run same tests for multiple data from xls file | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos

Data Driven Framework- not able to run same tests for multiple data from xls file

S
Sourabh Post on 30/11/2019

Hi,

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.

e.g.,

want to run this for multiple TYNumber in a loop 

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

S

Instructor

Support Team Reply 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