I have recorded a test using qtp to download a file in an
application.

Code:

Browser("MFA Work Queue Manager").Page("MFA Work Queue
Manager").Link("Rules Maintenance").Click
Browser("MFA Work Queue Manager").Page("Rule
Maintenance").WebEdit("txtSearch").Set "PmtType"
Browser("MFA Work Queue Manager").Page("Rule
Maintenance").WebButton("Search").Click
Browser("MFA Work Queue Manager").Page("Rule
Maintenance").WebButton("Export").Click
Browser("MFA Work Queue Manager").Dialog("File
Download").WinButton("Save").Click
Browser("MFA Work Queue Manager").Page("Rule
Maintenance").Sync
Dialog("Save As").WinButton("Save").Click
Dialog("Save As_2").WinButton("Yes").Click

Problem:

When running this test it gives an error at line no. 5 as
Save button object is not identified by it's parent object.

This code I ran 4 times after recording at it was working
fine but 5th time onwords, it starts giving me the above
problem. I used exist property option, Check Property
option but none of this changes work at all.

Kindly help...



I have recorded a test using qtp to download a file in an application. Code: Browser("M..

Answer / kamakshya prasad

See, there are 2 "save" buttons in your script.
when you are running the script, QTP getting confused due
to the existance of 2 SAVE button, unable to identify them
properly. so they will be distinguished in 3 three way
i) Index value proerty
ii)creation time property
iii)Location property

Use any one of these property, i think it will work


--thanks

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More QTP Interview Questions

Without using gui map editor we can recognize the application in winrunner ?

0 Answers  


explain keyword driven framework?

2 Answers   Mindlance,


What are the views available in qtp?

0 Answers  


Differentiate the two Object Repository Types of QTP.

5 Answers  


Can u call winRunner scripts from QTP?

4 Answers  






Explain script generated after applying database check point?

2 Answers  


Where you are storing your script?

0 Answers  


Why script error occur in between recording in qtp?

0 Answers  


Difference between action & Reusable action?

0 Answers  


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

0 Answers  


How Qtp will identifies object during run time

6 Answers   CSS Corp, Yahoo,


How we can import data from database?

0 Answers  


Categories