Wednesday, April 8, 2009

QTP Interview Questions 3

1.How does Run Time data ( Parameterization ) is handle in QTP?
You can then enter test data into data table, an integrated spreadsheet with the full functionality or excel, to manipulate test data sets and create multiple test iterations, with out programming, to expand test case coverage. Data can typed in or imported from data bases, spreadsheets or text files.

2. What is keyboard view and expert view in QTP?
Quick tests key board driven approach test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round trip synchronized with the key bored view. Advance testers can view and edit their tests in expert view, which reveals the underlying industry standards vb script that QTP automatically generates. Any changes made in expert view are automatically synchronized with the keyboard view.

3. Explain about the test fusion report of QTP?
Once a tester runs a test, a test fusion report displays all the aspects of the test run a high level results over view, an expandable tree view of the test specifying exactly where application failures occurred, the test data used , applications screen shots per every step that highlight any discrepancies, and detailed explanation of each check point pass and failure, by combining test fusion reports with QTP you can share reports across an entire QA and development team.

4.To which environments does QTP supports?
QTP supports functional testing of all enterprise environments, including Windows, Web, .Net, Java, j2EE, SAP, Sieble, Oracle, Peoplesoft, Visual Basic, ActiveX, Mainframe terminal emulators and Web services.

5.What is QTP?
Quick Test is a graphical interface record-playback automation tool. It is able to work with any web, java or windows client application. Quick Teat enables you to test standard web objects and ActiveX controls. In addition to these environments QTP also enables you to test java applets and applications and multimedia objects on applications as well as standard windows applications, Visual Basic 6 applications and .Net framework applications

6.How QTP recognizes Objects in AUT?
Quick Test stores the definitions for applications objects in a file called the Object Repository. As you record your test, Quick Test will add an entry for each item you interact with. Each Object Repository entry will be identified by a logical name ( determined automatically by Quick Test), and will contain a set of properties ( type, name etc ) that uniquely identify each object.
Each line in the Quick Test script will contain a reference to the object that you interacted with a call to the appropriate method ( set, click,check) and any parameters for method ( such as the valve for a call to the set method). The references to objects in the script will all be identified by the logical name, rather than any physical, descriptive properties.

7.What are the types of Object Repositories in QTP?
Quick Test has two types of object repositories for storing object information: shared object repositories and action object repositories. You can choose which type of object repository you want to use as the default type for new test.
The object repository per-action mode is the default setting.In this mode, Quick Test automatically creates an object repository file for each action in your test so
that you can create and run tests without creating, choosing, or modifying object repository files.However, if you do modify values in an object repository, your changes do not have any effect on other actions. Therefore, if the same test object exists in more than one action and you modify an object’s property values in one action, you may need to make the same change in every action (and any test) containing the object.

8.Explain the Check Points in Qtp?
A checkpoint verifies that expected information is displayed in application while the test is running. You can add eight types of checkpoints to your test for standard web objects using QTP.
1. A page checkpoint checks the characteristics of Application.
2. A text checkpoint checks that a text string is displayed in the appropriate place on a Application.
3.An object checkpoint ( standard) checks the values of an object on a Application.
4.An image checkpoint checks the values of an image on a Application.
5.A table checkpoint checks information with in a table an a Application.
6. An accessibility check point checks the web page per Section 508 compliance
7. An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your web applications.
8. A database checkpoint checks the contents of data bases accessed by you.

9. In how many ways we can add checkpoints to an application using QTP?
We can add check points while recording the application or we add after recording is completed using Active Screen (NOTE: to perform the second one the active screen must be enable while recording).

10. How does QTP identifies the object in the application?
QTP identifies the object in the application by logical name and class. For ex. the Edit box is identified by
Logical Name:PSOPTIONS_TIME20
Class:Web Edit

11.If an application name changes frequently that is while recording it has name “Window1″ and then while running it’s “Window2″, in this case how does QTP handles?
QTP handle those situations by “Regular Expressions”.

12.What is parameterizing tests?
When you test application, you may want to check how it performs the same operations with multiple set of data . For ex: suppose you want to check hoe your application responds to ten separate test of data. You could record ten separate tests, each with it’s own set of data. Alternatively you can create a parameterized test that runs ten times: each time the test run, it uses a different set of data.

13.what is test object model in QTP?
The object model is a large set of obkject types or classess that quick test uses to represent the objects in your applications. Each test object lcass has a list of properties that can uniquely identifiy objects of that class and a set of relevant methods that quick test can record for it .
A test object is an object that quick test creates in the test or component to represent the actual object in your application. Quick Test stores information about the object that will help it identify and checks the object during the run session. A run time object is the actual object in your websites or in the application on which methods are performed during the run session.
When you perform an operation on your application while you recording.

Identifies the quick test test object classes that represents the objects on which you performed the operation and creates the appropriate the test objects.

Reads the current value of the object properties in your application and stores the list of properties and values with the test object.

Choose a unique name for the object generally using the values of one of its prominent properties.

Records the operation that you performed on the object using the appropriate quick test test object method.



For Example, Suppose you click on a Find button with the following HTML source code:



Then quick test identified the objects that you clicks as a web button test object

It creates a web button object with the name find, and records the following properties and values for the find web button:

It also records that you performed a click method on the Web button.

Quick test displays your s step in the keyboard view like this:

Quick Test displays your step in the expert view like this:

Browser(”Mercury Interactive”) . Page(” Mercury Interactive”).Web button(”Find”).Click

14.What is Object Spy in QTP?
Using the object Spy you can view the properties of any object in open application. You can use the object spy pointer to pint to an object. The object spy displays the select object’s hierarchy tree and its properties and values in the properties tab of the object spy dialog box.

15. What is the difference between image check point and bitmap checkpoint?
Image check point enable due to check the properties of web page. You can check an area of a web page or application as a bitmap.
While creating a test of component, you specify the area you want to check by selecting an object you can check an entire object or an any area within an object. Quick Test captures the specified object as a bitmap, and inserts a checkpoint in the test or component.
You can also use to save the selected area of the object with your test or component in order to save disk space for example, suppose you have a website that can display a map of a city the user specify that map has control keys for zooming.
You can record the new map i.e displayed after one check on the control key that zooms in the map. Using the bitmap checkpoint, you can check that the map zooms in correctly.
You can create bitmap checkpoint, all supported testing environments (as long as the appropriate add-ins are loaded)

Note: The result of bitmap check point may be effected by factors such as OS, Screen Resolutions and color settings

No comments:

My Ad

.