I got an error "The"flightres" Dialog was not found in the
Object Repository. Check the OR to confirm that the object
exists or to find the correct name for the object." while
running the following script

Set flightres=description.Create()
flightres("text").value="Login"
flightres("Class Name").value="Dialog"

Set agent = description.Create()
agent("nativeclass").value="WinEdit"
agent("attachedtext").value="Agent Name:"

Set pwd = description.Create()
pwd("nativeclass").value="WinEdit"
pwd("attachedtext").value="Password"

Set button = description.Create()
button("nativeclass").value="WinButton"
button("Text").value="OK"

Dialog("flightres").WinEdit("agent").Set "test"
Dialog("flightres").WinEdit("pwd").Set "mercury"
Dialog("flightres").WinButton("button").Click

Please let me know if i made any mistake in the above script...?

Answer Posted / roli mohanty

do not put theobject in quotes if u put on quotes qtp
sercch the object in OR for which the error come
Dialog(flighters).WinEdit(agent).set"test"
Dialog(flighters).WinEdit(pwd).set"mercury"
Dialog(fighters).WinButton(button).click

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Problem with XML checkpoint in QTP ?

3495


What is quicktest professional window?

548


hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale

1500


What is Test Fusion Report in QTP?

611


What is the architecture of your project? Can any one answer for this question plz........

1403






How can get count of list box?

629


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

1434


I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

1562


How to modify object property in qtp ?

553


How will you check that your test cases covered all the requirements?

553


Through array we can execute the testcase how ? give me example

1391


When do go for loop condition in test?

648


What is a checkpoint? How many check points are there in qtp?

518


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

1565


tell me QTP standards ?plz

1508