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
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
How to attach a file to TD?
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
How to use the object spy in quicktest professional 8.0 version?
what is the difference between IE & Netscape in web testing on a log in page
What is a programmatic description?
in a web page How to check and display a particular word from a paragraph?
How do I get the QTP scripts result in xml format by using vb script function?
whare exactly we have to use functions and sub routain
What do you mean by iteration?
How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)
How do Parameterization and Data-Driving relate to each other in QTP?
What are main panes available in qtp test browser?
In qtp, explain what is keyword driven automation framework?
How to use reporter.report event in qtp ?