I have a data file in selenium webdriver as below:
[Contact_Buyer]
Title = Madam
Contact_language = French
[Contact_Owner]
Title = sir
Contact_language = English
I want my test to run for each keyset Contact_Buyer
and Contact_Owner
. suppose my test as below:
public void setcontact() {
crmdatafile = new ReadData(file.getAbsolutePath()); //Has complete file contents
Section section= crmdatafile.data.get("Contact_Buyer"); //has all values under section for Contact_Buyer
}
How do I use dataprovider to pass these keysets to testcase such that my test is run twice for different data?