09-01-2011, 12:51 PM
Hello,
I am quite new to QTP. I tried to record and run the very basic flight reservation application test and i got the following error when i tried to apply standard checkpoint and run it.
Cannot find the "Agent Name:" object's parent "Login" (class Dialog). Verify that parent properties match an object currently displayed in your application.
I write the following script to apply standard checkpoint.
Please correct me where I am doing wrong..
Thanks
Ashita
I am quite new to QTP. I tried to record and run the very basic flight reservation application test and i got the following error when i tried to apply standard checkpoint and run it.
Cannot find the "Agent Name:" object's parent "Login" (class Dialog). Verify that parent properties match an object currently displayed in your application.
I write the following script to apply standard checkpoint.
Code:
SystemUtil.Run("C:\Program Files x(86)\Mercury Interactive\Quick Test Professional\bin\QTPro.exe")
dialog("Login").WinEdit("AgentName").Set("Guru")
Dialog("Login").WinEdit("Agent Name:").CheckPoint("Agent Name:_2") ( here i created checkpoint)
dialog("Login").WinEdit("Password").Set("merecury")
dialog("Login").WinButton("OK").Click
Please correct me where I am doing wrong..
Thanks
Ashita