What is descriptive programming in QTP? How can be done?
A. Descriptive programming in QTP means whenever qtp facing difficulty with object identification then we will go with regular expression
or descriptive programming it means identifying object unique properties from the script itself. Ex: vbwindow("").vbedit("attached text:=username").set cdbjd
Descriptive programming in QTP means when there is no object in object repository for that object we have to write descriptive programming to add the properties of the object which is not there in the object repository.
You can describe an object directly in a test statement by specifying property := value pairs describing the object instead of specifying an object's logical name.
Syntax:
testobject("propertyname1 :=propertyvalue1","...","propertynamex :=propertyvaluex").
Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?
A. As the call is to an Action, the data in the Global sheet will not be available. Only which
are necessary for the Action like repository, action's sheet will be imported. So the test's global sheet
and its data will not be available in the calling test.
Types of output value in details.
A. Types of output values in Qtp are as follows: 1. Standard output value. 2. Text output value. 3. Data base output value. 4. xml output value (from application). 5. xml output value (from resources).
How do you handle XML exceptions in QTP (Here it is Exception, not the checkpoint)
A. Using recovery scenario in QTP we can handle any type of Exceptions
What is the use of "FUNCTION GENERATOR" in QTP?
A. 1. The use of functional generator in qtp is which lists out the all the built
in functions in qtp and helps you to write the vb script for unknown objects. 2. It is also used to reduce the typing mistakes & syntax errors.
How many types of Recordings are there in QTP and what are they?
A. There are 3 types of Recording modes available in QTP.
They are 1. Standard Recording mode: It is default mode 2. Analog Recording mode 3. Low Level Recording mode
They are three types of recording modes in QTP. They are three types General Recording: In this Mode QTP is Recording mouse and key board operation with respective object and windows in our application. Analog Recording: In this Mode QTP is Recording mouse pointer movement with respective desktop coordinates. Low Recording: In this Mode QTP is Recording mouse pointer movement on the desktop with respective time.
Explain the check points in QTP?
A. A checkpoint verifies that expected information is displayed in a Application while the test is running. You can add eight types of checkpoints to your test for standard web objects using QTP.
A page checkpoint checks the characteristics of a Application.
A text checkpoint checks that a text string is displayed in the appropriate place on a Application.
An object checkpoint (Standard) checks the values of an object on a Application.
An image checkpoint checks the values of an image on a Application.
A table checkpoint checks information within a table on a Application.
An Accessiblity checkpoint checks the web page for Section 508 compliance.
An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your Web application.
A database checkpoint checks the contents of databases accessed by your web site.
Per Action repository Vs Shared repository?
A. Differences are as follows:
1. Shared repository objects can be used for the entire test where as Per action repository objects can be used for that particular action only. 2. Shared repository occupies less memory compare to per action repository. 3. If any change occurs in application we need to make changes only once in shared repository where as per action repository needs change in every action respository.