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 to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object
What VBScript operators, functions, and statements do you use in QuickTest Professional?
how will you load the test cases in ddt?
How will you check that your test cases covered all the requirements?
What is a reusable action?
What are the Test design techniques you uses in ur project?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
What is the use of sendkeys and what are send keys
how to download mercury qtp9.2 ny internet ?
In qtp, how you can get the last character from a string?
What is the syntax to call one script from another?
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
Approach for Installation,comaptibility,system testing
how can i pass a "cript"as a parameter in to a function
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer