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                      
tip   SiteMap shows list of All Categories in this site.
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,
I want to write the script for a webpage. But i didn't 
added the properties of the objects to the object 
repository. Without adding the object properties to the 
object repository, how to write the script. 
When i am writing the script, Let us say i typed as Browser
("").
after selecting ".", if the object is added to the object 
repository it will display atomatically. But in my case it 
is not as i didn't added the object properties. How to 
proceed further in the above mentioned case to write the 
script manually. Pls let me know if you didn't understand 
the question.
 Question Submitted By :: Babu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hi, I want to write the script for a webpage. But i didn't added the properties of the objects to the object repository. Without adding the object properties to the object repository, how to write the script. When i am writing the script, Let us say i typed as Browser (""). after selecting ".", if the object is added to the object repository it will display atomatically. But in my case it is not as i didn't added the object properties. How to proceed further in the above mentioned case to write the script manually. Pls let me know if you didn't understand the question.
Answer
# 1
You gotcha use Descriptive Programming , thats the only way 
to write the scripts without "learning the Objects in the 
repository". 

Eg 

Browser("name:Google").Page("Name: Google")......

use object Spy for taking information about the properties 
of the objects.
 
Is This Answer Correct ?    2 Yes 0 No
Puneet
 
  Re: Hi, I want to write the script for a webpage. But i didn't added the properties of the objects to the object repository. Without adding the object properties to the object repository, how to write the script. When i am writing the script, Let us say i typed as Browser (""). after selecting ".", if the object is added to the object repository it will display atomatically. But in my case it is not as i didn't added the object properties. How to proceed further in the above mentioned case to write the script manually. Pls let me know if you didn't understand the question.
Answer
# 2
Hi Puneet,
Thanks for the information. I written the scirpt as you 
mentioned above. But while running the script it is 
displaying the message that the "Object" is not existed in 
the object repository.
I want to execute the script without adding the properties 
of the objects to the object repository.
Anyone can help me in this ....
 
Is This Answer Correct ?    0 Yes 0 No
Babu
 
 
 
  Re: Hi, I want to write the script for a webpage. But i didn't added the properties of the objects to the object repository. Without adding the object properties to the object repository, how to write the script. When i am writing the script, Let us say i typed as Browser (""). after selecting ".", if the object is added to the object repository it will display atomatically. But in my case it is not as i didn't added the object properties. How to proceed further in the above mentioned case to write the script manually. Pls let me know if you didn't understand the question.
Answer
# 3
Hi Babu,
Try this way
Browser("name:=Google").Page("name:=Google"). and so on.If 
not as puneet suggested identify unique properties using 
Object Spy.Still if the prolem persits one more way is to 
add the objects to repository .Modify the script into 
descriptive programming and finally delete the objec 
Repository.
 
Is This Answer Correct ?    0 Yes 0 No
Latha
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance.. Sony3
How to retrive XML file data in QTP ? using Script(Chandana) Wipro5
what is the main use of reviews Ordain-Solutions1
How can we retrieve the links from a web page where links are dynamically changing(for eg take a online shopping website) and then we have to click on all the links present in the webpage and go to the repective pages and again come back to the first page..  2
how i can delete the excel process for the task manager using QTP  2
How can we use the "CreateObject ("Scripting.FileSystemObject")" in QTP and what is the definition and purpose of it?  1
What is keyword driven testing..what is the use of this in Automated testing IBM2
Explain in brief about the QTP Automation Object Model.  1
what is framework in QTP? any one give me answer Wipro3
Is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?  1
WE ARE PLANING TO DESIGN AUTOMATION FRAME WORK. HOW TO CALL CONFIGURATION SCRIPT FILE(.VBS) FROM DRIVE SCRIPT FILE(.VBS)  1
your doing one project testing then how u know itis wheather web based application or windows based application?  2
How to do Batch run in qtp? provide the steps?  4
can we call a test in another test? how? explain with one example? iFocus1
hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c  5
we have 10 automation scripts. how to call them from one main script.  2
does qtp runs on internet explorer 7.0 BeBo-Technologies5
1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent  8
How many types of Actions are there in QTP?  3
How to Compare the 2 xl-sheets in QTP? ple write the vb Script for the comparison?  1
 
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