Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

In Login two edit box which object class property value is same, How to enter into 2nd edit box in qtp by vbscript.

3 Answers  


what is the script for keyword driven framework in real time?plz its urgent

1 Answers   Accenture, CTS,


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

0 Answers  


How to execute the test cases using QTP. i.e What is the use of QTP while execution

2 Answers  


How to use the Object spy in QTP 8.0 version?

2 Answers  






is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?

1 Answers  


What is difference between function and procedure?

41 Answers   HCL, IBM, iGate, Infosys, TCS, Veritas, Wipro,


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

0 Answers  


How to attach a file to TD?

0 Answers  


how to convert 100 into hundred repees only and viceversa

0 Answers  


what is testing process with QTP in organization

1 Answers   Tech Mahindra,


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,






Categories