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



Hi, My problem is as follows. I recorded a script that created Object repository of each acti..

Answer / 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

More QTP Interview Questions

Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.

0 Answers  


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

2 Answers  


one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.

0 Answers   Mindlance,


How can i check elements sorted in dorpdown using qtp..

1 Answers   Value Labs,


Why we are going for descriptive programming ? I answered as 'If objects are not present in OR we will go for descriptive Programming'? Is this correct ?

3 Answers   Polaris,


can we run the scripts of QTP8.2 in QTP7.0?

1 Answers  


How to save your test using quicktest professional?

0 Answers  


Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script without OR and recording ?

2 Answers  


Write a QTP script to print all the link names displayed in a web page

4 Answers   TCS, Virtusa,


Among all the check points what is the most important checkpoint?

1 Answers  


what is the automation framework that ur company using(actual procedure,not theoritically explination)

1 Answers  


how to capture (or) checkpoint for chineese or any other language except english using QTP in a web page. ( my application have 24 language, how to check those lanugages using QTP? is it possible). Please let me know

3 Answers  


Categories