09-01-2011, 02:23 PM
Change your script as below:
Check your column name carefully ,It should be "agentname" , "password" in global sheet.
Code:
invokeapplication("C:\ProgramFiles(x86)\MercuryInteractive\QuickTestProfessional\bin\QTPro.exe")
dialog("Login").WinEdit("AgentName").Set DataTable("agentname",dtGlobalSheet)
dialog("Login").WinEdit("Password").Set DataTable("password",dtGlobalSheet)
dialog("Login").WinButton("OK").Click
Wait(1)
Check your column name carefully ,It should be "agentname" , "password" in global sheet.