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
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 |
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..
What is API
How to catch the TOol Tip Dyanamically changing values using the qtp script by Descriptive Programming Scenario: ======== 1. when i press the submit button 2. The Tool tip first shows the value "Validating...." 3. Next the value is changed in tooltip "Logging....." ------ And the class is webElement SO , how can i catch both values During Run time using Dp
Expalin Text/Text Area Checkpoint
I have a login page like username, password and login. I have to pass the 50 user names and 50 passwords but how can i test this page with out using parameters?
What is difference between shared and local object repository?
how can you describe the basic flow of automation with conditional and programmatic logic?
How to create Reusable and Multiple Actions?
What is Cross browser testing? Does UFT support it?
How to change the priorities of the recovery scenario properties?
Hi. plz expalin abouit SetToProperty, SetRoProperty, GetToProperty, GetRoProperty,GetToPrperties. with examples.
what are the metrics in general we use in testing.