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 / radhika
Hi the description for the above object is incorrect
Flightres object
flightres("text").value="Login"
flightres("Class Name").value="Dialog"
Instead of Class Name you should put it as "micclass"
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
What are the types of object repository?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
How software tester can use constants and variables in scripts?
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
How to record application running on the Virtual machine?
how to disable the pop ups through QTP using a script
Define virtual object?
What are the different types of checkpoints?
Your roles and responsibilities and daily tasks? (As automation tester)
How does quicktest professional (qtp) identifies the object in the application?
Why is action split used by qtp?
The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)
How to attach a file to TD?
What are the disadvantages of recording test cases in qtp?