Not running 2nd test cases | Selenium Forum
M
Posted on 07/07/2016
Hello,
trying to follow the module 21 and part 21. i am able to run the create portfolio test but unable to run the renameporfolio test.
pls help me if anybody has solution for it. in the video for part 21, i saw same issue exist (data is null) but does not know how it was resolved.

@Test (priority=1,dataProviderClass=TestCaseDataProvider.class, dataProvider="getDataSuiteA")

public void createPortFolioTest(Hashtable<String,String>data){


//testA1 iteration 1
Logger log= Utility.initLogs("CreatePortFolioTest" + data.get(Constants.ITERATION_COL));//every iteration log file will generate
log.debug("executing createPortFolioTest"+data.toString());
Utility.validateTestExecution("CreatePortFolioTest","SuiteA" , data.get(Constants.RUNMODE_COL),xls);
Keywords app=new Keywords();
//Keywords app= Keywords.getInstance();
app.setLogger(log);
app.executeKeywords("CreatePortFolioTest", xls,data);//to call keyword
log.debug("ending createPortFolioTest");

}

@Test (priority=2,dataProviderClass=TestCaseDataProvider.class, dataProvider="getDataSuiteA")

public void renameFortfolioTest(Hashtable<String,String>data){
//String testName ="RenamePortFolioTest";
//Xls_Reader xls=new Xls_Reader(Constants.SuiteA_XLS_XPATH);
Utility.validateTestExecution("RenamePortFolioTest","SuiteA" , data.get(Constants.RUNMODE_COL),xls);
Logger log= Utility.initLogs("RenamePortFolioTest"+"---" + data.get(Constants.ITERATION_COL));//every iteration log file will generate
log.debug("executing"+"RenamePortFolioTest"+"---"+data.toString());

Keywords app=new Keywords();
//Keywords app= Keywords.getInstance();
app.setLogger(log);
app.executeKeywords("RenamePortFolioTest", xls,data);//to call keyword
log.debug("ending"+"RenamePortFolioTest");

}

M
Replied on 07/07/2016

in excel you have to create "rename[color=#FF0000:1uqqpuut]F[/color:1uqqpuut]ortfolioTest" test name.


M
Replied on 08/07/2016

Thanks!!!!!