Wednesday 27 November 2013

Brief about QTP

If you are going for a position related to QTP, you could expect this as the first question in the interview. The first step on the part of an interviewer is to make you comfortable with a basic question.

Hence try to remember maximum portion from the following content that shouldbe presented to the interviewer if situation arises.

QTP is a graphical interface record-playback automation tool. It is able to work with any web, Java or windows client application. QTP 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 applications and .NET framework applications...

QTP is Mercury Interactive Functional Testing Tool.
Mercury QTP provides the industry's best solution for functional test and regression test automation - addressing every major software application and environment. This next-generation automated testing solution deploys the concept of Keyword-driven testing to radically simplify test creation and maintenance. Unique to QTP’s Keyword-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 Keyword View.

QTP enables you to test standard Windows applications, Web objects, ActiveX controls, and Visual Basic applications. You can also acquire additional QTP add-ins for a number of special environments (such as Java, Oracle, SAP Solutions, .NET Windows and Web Forms, Siebel, PeopleSoft, Web services, and terminal emulator applications).

QTP is based on two concepts like: a) Recording b) Playback

QTP uses VB scripting.


QTP provides three types of recording methods like:
a) Context Recording (Normal)
b) Analog Recording
c) Low Level Recording


QTP provides three types ofParameters like:
a) Method Argument
b) Data Driven
c) Dynamic



QTP testing process consist of sevensteps like: 1) Preparing to recording
2) Recording
3) Enhancing your script
4) Debugging
5) Run
6) Analyze
7) Report Defects etc.

How to Start recording using QTP?
Choose Test > Record or click the Record button.
When the Record and Run Settings dialog box opens, to do this;
1) In the Web tab, select Open the following browser when a record or run session begins.
2) In the Windows Applications tab, confirm that Record and run on these applications
(opened on session start) is selected, and that there are no applications listed.

1: If all images are like push button than you can check the property enabled or disabled. If you are not able to find that property than go to object repository for that object and click on add remove to add the available properties to that object. And if you take it as image than you need to check visible or invisible property, there are no enable or disable properties for the image object.

The Image Checkpoint does not have any property to verify the enable/disable property.

Important aspects that needs to be checked are:
a) Find out form the Developer if he is showing different images for activating/deactivating i.e. grayed out image. That is the only way a developer can show deactivate/activate if he is using an "image". Else he might be using a button having a headsup with an image.

b) If it is a button used to display with the headsup as an image you would need to use the object Properties as a checkpoint.


Select File > Save or click the Save button.
The Save dialog box opens to the Tests folder.
Create a folder which you want to save to, select it, and click Open.
Type your test name in the File name field.
Confirm that Save Active Screen files is selected.
Click Save.
Your test name is displayed in the title bar of the main QTP window.

Step-1: Start QTP and open your test.
If QTP is not already open, choose Start > Programs > QuickTest Professional > QuickTest Professional.
# If the Welcome window opens, click Open Existing.
# If QTP opens without displaying the Welcome window, choose File > Open or click the Open button.
In the Open Test dialog box, locate and select your test, then click Open.

Step-2: Confirm that all images are saved to the test results.
QTP allows you to determine when to save images to the test results.
Choose Tools > Options and select the Run tab. In the Save step screen capture to test results option, select Always.
Click OK to close the Options dialog box.

Step-3: Start running your test.
Click Run or choose Test > Run. The Run dialog box opens.
Select New run results folder.
Accept the default results folder name. Click OK to close the Run dialog box.

No comments:

Post a Comment