03-12-2010, 12:08 PM
Hi,
Just ensure whether you having the column name called <username> in the global sheet.
If you have then copy the column name from the Global sheet then paste it in where you using in scripting, unfourtunality you may given space at end/begin.
please check the Capital/Small Character in parameter name, because it's case sensitive
or just try the following:-
--------------------------
let assume <username> and <password> are column name in global sheet.
in QTP
Regards,
Dhanavantha G Krishnan
Just ensure whether you having the column name called <username> in the global sheet.
If you have then copy the column name from the Global sheet then paste it in where you using in scripting, unfourtunality you may given space at end/begin.
please check the Capital/Small Character in parameter name, because it's case sensitive
or just try the following:-
--------------------------
let assume <username> and <password> are column name in global sheet.
in QTP
Code:
Dim UName, PWD
UName = DataTable.GetSheet("Global").GetParameter("username").ValueByRow(1)
PWD = DataTable.GetSheet("Global").GetParameter("password").ValueByRow(1)
Browser(BrName).Page(PgName).Frame(FrName).WebEdit(TextUser).Set UName
Browser(BrName).Page(PgName).Frame(FrName).WebEdit(TextPass).Set PWD
Browser(BrName).Page(PgName).Frame(FrName).Webbutton("ButtonName).Click
Regards,
Dhanavantha G Krishnan