Micro Focus QTP (UFT) Forums

Full Version: Help needed to replay the test
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I need some guidance regarding a Test.
I have recorded a simple login Test using QTP 11.


QTP 11 essential trial version
OS : Windows 7 32 bit

Just entering the Agent Name and Password .Below is
expert view steps .


Code:
Dialog("Login").WinEdit("Agent Name:").Set "mercury"
Dialog("Login").WinEdit("Agent Name:").Type  micTab
Dialog("Login").WinEdit("Password:").SetSecure "505ce4e625a67b04458865b58492ae11969224c0"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Close
When I replay I got following error.

Run Error :

Cannot find the "Agent Name:" object's parent "Login" (class Dialog).
Verify that parent properties match an object currently displayed in your application.

Line (1):
Code:
"Dialog("Login").WinEdit("Agent Name:").Set "mercury"".


Tip: If the objects in your application have changed, the Maintenance Run Mode can help you identify and update your steps and/or the objects in your repository.


Any one has seen this error before if so please guide regarding solving this.

Thanks
Hi All,

Please can anybody reply to my problem
My trial version will be expiring soon before
that I need to understant the working of QTP.

Its a basic test replay problem.
Its giving a runtime error at Agent Name.

Thanks
Make sure you have the objects added in OR.

Also make sure that the login page is open when you are running the test.
U should close the login dialog before your test.
QTP can not recognize the duplicated objects.
Thanks alot Ankesh and Jesonvan,

Now I am able to run the test.
Thanks for your reply.

Regards
Asma Talib