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
Which functionalities of QTP used in banking project?
supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?
RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
if numbers are always changing write a script for that
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
How does you pass optional arguments in qtp?
How to export quicktest professional results to an .xls file?
When and why to use descriptive programming?
which type of testing process are you following in ur company? how to recognize a qtp page?
How many types of recording modes in qtp?
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
what are the utilities and drivers
Step 3&4 are repeated until an the object in recognised uniquely.
What are the 3 main stages involved in testing with qtp?