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

According to use, how virtual object is different from object spy? If Qtp is not learning a sub-menues. What should we done? how would we manage on the expert view too? alkaa.dugaal@gmail.com

1 Answers   HCL,


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

0 Answers   ING,


Describe how Smart Identification is used

0 Answers  


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

0 Answers  


can we run the scripts of qtp 8.2 in the qtp7.0?

2 Answers  






Where we can use the analog mode and where we can use the low – level mode?

0 Answers  


can test automation improve test effectiveness?

0 Answers  


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

0 Answers  


-->IF two TextBOxes are there in a "Form". -->A table contains some records which contains usernames & password.. -->What is the script we need to write using Descriptive programming concept...in QTP (simply DATA DRIVEN TEST SCRIPT OF QTP)?

3 Answers   CTS,


HI How to take screenshots of a Webpage and saving it in a external word document using QTP.

4 Answers   3i Infotech, TCS,


Hi All,I am in wierd situation that my laptop is installed with QTP11 and os is xp sp3.The problem is the descriptive programming which i have written is working in other laptops and it is not working in my laptop.it is clicking the link which is above the testbox instead of typing it in textbox below it.It is same with the other working scripts written by another person.

1 Answers  


Can we directly automate testscripts accrdoing to requirements

2 Answers   CitiGroup, Novartis,


Categories