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...
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 |
Explain types of exception handling and script for that?
How does qtp recognize objects in aut?
What is Reusable component is QTP...Anybody can answer it..Thanks in advance...
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?
8 Answers INCA, Infosys, Logix, SLK Software, Symphony, Wipro,
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
Explain Different types of Checkpoints in Quick Test Professional?
Do we get any issues if we run the testscript on different browsers? what are the options we need to st in QTP?
what are the principles of good testing scripts for automation?
Write a function which returns the addition of two numbers. give the value of the numbers outside the function.
Is it possible to call from one action to another action in qtp?
what is exit and entry criteria of automation testing. any body wants a real time script,please mail to me. contactno;9986435766
suppose we recording a web based project so for that we are using internet explorer after that if we execute that script in netscape then script will execute or not and one more thing is to exeute the script in any browser what to do