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
How do you synchronization point through DP?
How can you exit from an action?
What is object repository in qtp?
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
can any body give the banking domain concepts/links
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
How does qtp identify the object in the application?
what kind of frame work you used in your last project?
Explain different type of event trigger option.
What are parameterizing tests?
what are the mandatory properties for a tex boxc (scenario?)
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
How can you send user defined messages to test report?
How qtp identifies objects?