The method isExecutable is undefined for TestDatautil | Selenium Forum
M
Posted on 25/09/2015
note: I have created the Method : isExecutable still my CreateLeadTest [/b]giving me the error

[/color]public class CreateLeadTest {
Xls_Reader xls = new Xls_Reader("C:\\Users\\Archana\\Desktop\\salenium\\TestData.xlsx");

@Test
public void createleadtest(){

if(!TestDatautil.isExecutable("CreateLeadTest", xls))
throw new SkipException("skipping the test as ronmode is no");
}
}


====================================
public static boolean isExecutable(String testname,Xls_Reader xls){

int rows = xls.getRowCount("TestCases");

for( int rNum=2;rNum<=rows;rNum++){
String testName =xls.getCellData("TestCases", "TCID", rNum);
if(testName.equals("CreatLeadTest")){
String runmode = xls.getCellData("TestCases", "runmode", rNum);
if(runmode.equals("Y"))
return true;
else
return false;
}
}
return false;
}

}

M
Replied on 29/09/2015

[quote:38ualfpd]note: I have created the Method : isExecutable still my CreateLeadTest [/b]giving me the error[/quote:38ualfpd]

what is the error?