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 Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of actions are there in quicktest professional (qtp)?

524


What is quicktest professional (qtp)?

556


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

1717


How do Parameterization and Data-Driving relate to each other in QTP?

550


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

1334






Suggest and Define a solution for an application whose objects are not recognized by UFT?

659


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1822


How many test scenarios you have automated? How many time it will take to execute 30-40 scenarios? What SDLC model you are following? How often you will execute your test scripts? Because of some changes, your test scripts failed? When you will update your test scripts? How much time it will take to update? Do you know how to connect database? Do you know the direct method to count no. of records (or) rows present in record set once query is executed? How will you create the connection string? How did you resolve conflicts present in Object Repository? How good you are in VB? How will you work on Excel Application? How will you select Excel sheet? If you want to select 10 sheets, will you create 10 separate objects? Given string is “abcd”. What are the methods you will use to display “dcba”? Drives script – explain the frameworks? How you are updating results for each test? What is start up, configuration, navigation scripts? If you are not able to understand the application (some module), who will teach you? What test cases to be automated? When to be automated? What is the testing process you are following? What life cycle you are following? When you will use Descriptive Programming? Do you have the permission to add objects into shared object repository? (OR) someone will maintain SOR? Do you know how to add objects into shared object repository? How many test cases you have automated? How much time will it take to execute? What is complex in automation? When you feel automation is complex? Tell me one scenario, the complex functionality you have automated in your project? Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet. Rate yourself in SQL? Display the employee name who is getting maximum salary? sal ID Salary name 001 100 002 500 003 300 ID 001 002 003 Ename A B C Have you written any test cases while you are in Automation? Manual Testing also will you do or you will work only in automation?

2215


Can any suggest me what is exposure testing?

1363


What is debugging? How you debug your script?

602


If object is not recognized by qtp but the object is standard object what is your approach?

581


How to attach a file to TD?

642


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1689


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1291


Explain the concept of object repository and how quicktest professional recognises objects?

548