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

Pls explain me the difference between ........ Description.Create and CreateObject

5 Answers  


i don't have any experience in qtp? Can u please tell me What work i have to do?

4 Answers  


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

0 Answers  


Hi Friends,will any body tell to Me for which Auomation Tool their is great Requirement inht eMarket Eithr the QTP or WINRUNNER and for what reason and how long it is going to remain and wat the Scope for the automation Testing In the Future Please tll to Me In Details Ok .

2 Answers  


the develeper not accepter your defect what status is that ?

1 Answers  






Basically why we need testing?

14 Answers  


How many types of run modes are there in qtp?

0 Answers  


How to check which add-ins are associated with a test in qtp?

0 Answers  


write vbscript in qtp tool for senario, in the given sheet add each number in each row and each colunm and show result

3 Answers   Mind Q Systems,


How can you identify the browser and its information using the qtp script?

0 Answers  


How you automate test scripts

1 Answers   Novartis,


Explain the difference between call to action and copy action?

0 Answers  


Categories