Hi,
My problem is as follows.
I recorded a script that created Object repository of each
action i recorded. But later I added one more step (which
was to enter data in a textfield) into the script through
expert view.
But as no repository for this newly added step exists in the
test, my script fails. So please help me to sort this
problem that how can I create object repository of a new
step in an existing test.
Thanks everyone
Answer Posted / amarendra kothuru
You informed that you recorded the test script. When you
record the script, like set a value to a textbox, at that
time, it creates the syntax/statements into your test script
(can view it in Expert view). At same time, it adds the
correspnding objects into object repository.
As you specified that, you have added one more line in
Expert view manually and do not know how to add object into
repository.
So, simply open object repository. You can find "+" symbol
button with the tooltip "add objects to local". Click on
that button and it will show you the finger point icon.
Select the object that you want to add. Click on OK. So the
object will be added to your onbect repository. Get the
name of the object. Paste it into you code in expert view.
E.g. the new line which you added in Expertview
Browser("test").Page("test").WebEdit("don't no the name of
the object").Set "abcd"
Solution:
Add the textbox(WebEdit)object to object repository. you
can get the name of the WebEdit(textbox) object
is "textbox1" for example.
So you have to change code in expert view as below.
Browser("test").Page("test").WebEdit("textbox1).Set "abcd"
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain about the test fusion report of quicktest professional (qtp)?
How can you write the scripts that operate on different objects depending on run-time information?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
Explain the parameter in qtp?
Explain the terms test and business component?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
How to use Environment parameterization? Explain with an example.
What is the recovery scenario in qtp?
1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)
What is the use of running the scripts in Hidden-mode in UFT?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
Can we Test Welcome Screens and Process Images with QTP
What is quicktest professional window?
how do i know how to use tools