Module 24- Vudeo 5 | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos

Selenium Training Forum

Module 24- Vudeo 5

M
Md Mofazzal hossain Post on 28/10/2018

I am working video 24 for hybrid frmake work
my code ->
public class DriverScript {

public void xecuteKeywords(String testName, Xls_Reader xls, Hashtable<String,String> tsetData){

//count how many row in the keyword sheet
int rows=xls.getRowCount("Keywords");
System.out.println("Total row in the Keywords sheet -> " + rows);

for(int rNum=2; rNum<=rows; rNum++){

String tcid=xls.getCellData("Keywords","TCID", rNum);

if(tcid.equals(testName)){ // only log in test will run

String keyword=xls.getCellData("Keywords", "Keyword", rNum);
String objectkey=xls.getCellData("Keywords","Object", rNum);
String datakey=xls.getCellData("Keywords","Data", rNum);
String data=tsetData.get(datakey);

System.out.println(tcid +"--" + keyword +"--" +objectkey+"--"+ data);

}
}



but video 6 when I use hashtable as name of "testData;
then I got ->


colsole- below
LoginTest--openBrowser----null
LoginTest--navigate--url--null
LoginTest--click--signinLink--null
LoginTest--type--username--null
LoginTest--type--password--null
LoginTest--click--loginButton--null
LoginTest--validateLogin----null

Rumode is Y but its not taking.
can you tell me whats the problem.

A

Instructor

Ashish Thakur Reply on 29/10/2018

Data might not be added into map
Print your map and check what it prints

A

Instructor

Ashish Thakur Reply on 01/11/2018

Is it fine now?
Are you able to resolve the issue

A

Instructor

Ashish Thakur Reply on 07/11/2018

Closing this ticket assuming its ok now