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
What are the different types of qtp test assets and their extensions?
How to analyzing test results using quicktest professional?
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric
What is the syntax for how to call one script from another?
How to save your test using quicktest professional (qtp)?
How do know the number of browsers opened?
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
How are actions and functions different in QTP?
What is checkpoint in qtp?
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
How u will do versioning in QTP?
How can you handle exceptions in qtp?