11-18-2009, 01:41 PM
Hi ,
As Tarik Suggested, you have missed .[dot]
ans also make sure that no blankspace given in word "Datatable"(ex: Data table is not allowed)
Try as given below.
You can also use the below way too.
Note: If we wont give 'sheetname' parameter then bydefault, QTP takes sheet as Globalsheet
As Tarik Suggested, you have missed .[dot]
ans also make sure that no blankspace given in word "Datatable"(ex: Data table is not allowed)
Try as given below.
Code:
Dialog("Login").WinEdit("Agent Name:").Set Datatable.Value("username",dtGlobalSheet)
Dialog("Login").WinEdit("Password:").Set Datatable.Value("password"dtGlobalSheet)
You can also use the below way too.
Code:
Dialog("Login").WinEdit("Agent Name:").Set Datatable.Value("username")
Dialog("Login").WinEdit("Password:").Set Datatable.Value("password")
Note: If we wont give 'sheetname' parameter then bydefault, QTP takes sheet as Globalsheet