If we write a script in the expert view how are the objects
created in the object repository?
to be clear i will explain my problem
first i have recorded the mercurytours application by
providing the link www.mercurytours.com and all the objects
are stored in the object repository ok this is fine. but i
have copied the script generated in the above processes and
pasted in a new test and tried to run that script but as
the objects were not stored in the object repository it
showed an error (The "Welcome: Mercury Tours" object was
not found in the Object Repository.
Check the Object Repository to confirm that the object
exists or to find the correct name for the object).so how
can i overcome that error
Answer Posted / ganesh kumar
Hi,
When u Record ur test in QTP. The Objects are stored in
the repository as Pre-action mode.So first u have to save
the repository as shared Repository in a common location.
Then when u copy the script and paste in the new test. u
have to associate the shared repository into that test.
Then ur script refer the objects from the shared repository.
To share ur local(peraction) repository go to resourse menu
in the menu tab and click the object repository menu. ther
u can find the export the Local menu. once u click the
menu. the tool will ask for saving the repo in the common
location.
Pls mail me if u have any queries.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How many types of trigger events are there in qtp?
How will you check a web application for broken links using qtp?
what is the frame work in J-meter?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
Which environments are supported by hp qtp?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
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
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
Thanks....But can u tell me how i use the QTP for GIS with one Example...
How to interact tool & application build in QTP?
What is the default object synchronization timeout in qtp?
Hi, how can we check or avoid the memory leakage in QTP9.2?
Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version