Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Forum Post: RE: Question Need to do data driven in the login function for different username

$
0
0
It would not make sense to add the code to load the username and password from a csv in the bdh in case each script wants to reuse the login function but with a different csv data. So do this in your bdf: dcltrans transaction TInit begin FileCSVLoadGlobal(hLogin, "login.csv", ","); end TInit; transaction TMain begin FileGetNextUniqueRow(hLogin); psUsername := FileGetCol(hLogin, 1, STRING_COMPLETE); psPassword := FileGetCol(hLogin, 2, STRING_COMPLETE); Login("demo.borland.com", psUsername, psPassword);

Viewing all articles
Browse latest Browse all 4084

Trending Articles