Thanks mayur,
But I am using a excel file for this.
And ny code is @Test(dataProvider="AddMnpFeesData")
public void AddMnpFeesTest(String PlatformHub,
String Country,
String MinimumCommitment,
String BaseType,
String MonthlyFee,
String Currency,
String EffectiveDate,
String MsgFrom,
String MsgTo,
String PerMsg,
String MoreData,
String ExpectedResult) throws IOException, InterruptedException
{
DataSet++;
//If found DataToRun = "N" for data set then execution will be skipped for that data set.
if(!TestDataToRun[DataSet].equalsIgnoreCase("Y")){
//If DataToRun = "N", Set Testskip=true.
Testskip=true;
SuiteUtility.WriteResultUtility(FilePath, SheetName, "Pass/Fail/Skip", TestCaseName, "SKIP");
throw new SkipException("DataToRun for row number "+DataSet+" Is No Or Blank. So Skipping Its Execution.");
}
@DataProvider
public Object[][] AddMnpFeesData(){
//To retrieve data from Data 1 Column,Data 2 Column and Expected Result column of AddMnpFees data Sheet.
//Last two columns (DataToRun and Pass/Fail/Skip) are Ignored programatically when reading test data.
return SuiteUtility.GetTestDataUtility(FilePath, TestCaseName);
}
From this i am able to read data but for the second row (after clicking on +sign) i am not able to do this.