KabInfo.Net                                                  

Q. Explain the concept of object repository & how QTP recognises objects?
A. Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected).
we can view or modify the test object description of any test object in the repository or to add new objects to the repository.
Quicktest learns the default property values and determines in which test object class it fits.If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description.If no assistive properties are available, then it adds a special Ordianl identifier such as objects location onthe page or in the source code.
 

Q. What are the properties you would use for identifying a browser & page when using descriptive programming ?

A. "name" would be another property apart from "title" that we can use.  OR
We can also use the property "micClass".
ex: Browser("micClass:=browser").page("micClass:=page")....
Q. What are the different scripting languages you could use when working with QTP ?
A. Visual Basic (VB),XML,JavaScript,Java,HTML
Q. Few basic questions on commonly used Excel VBA functions.
A. common functions are:
Coloring the cell
Auto fit cell
setting navigation from link in one cell to other
saving
 

Q. Explain the keyword createobject with an example.

A. Creates and returns a reference to an Automation object
syntax: CreateObject(servername.typename [, location])
Arguments
servername:Required. The name of the application providing the object.
typename : Required. The type or class of the object to create.
location : Optional. The name of the network server where the object is to be created.