ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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
 Question Submitted By :: Nipunkumar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 ?    1 Yes 0 No
Amarendra Kothuru
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
If some requirements r changed during the testing process ,then how can u handle this in frame work?  1
how to call a funtion in a script? i have saved the login scipt in notepad. with extension .vbs. But when i am calling the function with the keyword CALL <Function Name>. its not working out. can any one give me a clue how to call the external functions. with example.  3
Can we continue functionality testing without framework?  4
How can we perfom Action and Component parameter.? EDS1
what is functions in qtp?i know the userdefind &bulit funation or i know that Private public function ?plz tell me what is funations in qtp?how to create a funation in qtp NIIT3
what is defination of system testing? Omax1
does test plan is in test strategy or test strategy is in test plan. TCS6
How do you learn the object in QTP?  1
how much space occupies in object respository by default? VSoft5
how to get font size of a "WebEdit" L&T3
what is smart identification?  1
How can i Save the snapshots in a specified folders using Scripting in QTP?  1
Tell when we call the function? tell with example.  1
what are the design objects in qtp Wipro2
What kind of errors can b handled in QTP in real time scenario?  1
When to use Descriptive programing? Wipro2
suppose u hav a dialog or window which contains 10 buttons with same name & value. now how to check each button? i.e. how qtp indetifies these objects separately?  2
What is meant by Step Generator in Qtp How is it used? pls gimme in detail  3
Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in the below string "john" could any one explain me? Is there any function for that? Livetek2
what are the qtp tester responsibilities?  2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com