Thursday 28 November 2013

Basics of QTP

How to open a new test using QTP?
1) If QTP is not currently open:
Choose Start > Programs > QuickTest Professional > QuickTest Professional.
If the Welcome window opens, click Blank Test.
Otherwise, choose File > New, or click the New button.
A blank test opens.

2) If QTP is already open:
Check which add-ins are loaded by selecting Help > About QuickTest Professional. If the Web Add-in is not loaded, you must exit and restart QTP. When the Add-in Manager opens, select the Web Add-in, and clear all other add-ins. Choose File > New, or click the New button. A blank test opens.

How to do load testing for web based Application?
1) Recording a scenario in QTP of web based application.
2) Make 100 copies of that scenario and run the test (scenario run for 100 times)
3) In that case, do the load of application on server.
4) The basic logic of running the copy 100 times is to create same scenario as if 100 users were working.

What is the extension of script and object repository files?
Object Repository : .tsr , Script : .mts, Excel : Default.xls

How to suppress warnings from the "Test results page"?
From the Test results Viewer "Tools > Filters > Warnings"...must be "Unchecked".

When we try to use test run option "Run from Step", the browser is not launching automatically why?
This is default behavior.

What's the role of Checkpoints in QTP?
A checkpoint verifies that expected information is displayed in your application while the test is running. Checkpoint is basically a point in the test, which validates for truthfulness of a specific thing in the AUT. There are different types of checkpoints depending on the type of data that needs to be tested in the AUT. It can be text, image/bitmap, attributes, XML etc....

What types of checkpoints are offered by QTP?
There are 10 types of checkpoints you can insert in QTP: 1) Standard Checkpoint checks the property value of an object in your application or Web page. The standard checkpoint checks a variety of objects such as buttons, radio buttons, combo boxes, lists, etc.

2) Image Checkpoint checks the value of an image in your application or Web page. For example, you can check that a selected image’s source file is correct.

3) Bitmap Checkpoint checks an area of your Web page or application as a bitmap.

4) Table Checkpoint checks information within a table. For example, suppose your application or Web site contains a table listing all available flights from one place to another. You can add a table checkpoint to check that the time of the first flight in the table is correct.

5) Text Checkpoint checks that a text string is displayed in the appropriate place in your application or on a Web page.

6) Text Area Checkpoint checks that a text string is displayed within a defined area in a Windows application, according to specified criteria.

7) Accessibility Checkpoint identifies areas of your Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines.

8) Page Checkpoint checks the characteristics of a Web page. For example, you can check how long a Web page takes to load or whether a Web page contains broken links.

9) Database Checkpoint checks the contents of a database accessed by your application.

10) XML Checkpoint checks the data content of XML documents in XML files or XML documents in Web pages and frames.

How to add a standard checkpoint in your test?
1) Start QTP and open your test. In the Open Test dialog box, locate and select your test, then click Open.
2) Save the test as Checkpoint.
Select File > Save As. Save the test as Checkpoint.
3) Confirm that the Active Screen option is enabled.
If you do not see the Active Screen at the bottom of the QTP window, click the Active Screen button, or choose View > Active Screen.
4) Locate the page where you want to add a standard checkpoint.
5) Create a standard checkpoint.
In the Active Screen, right-click element in your application and choose Insert Standard Checkpoint.
6) Save the test.

How to add a page checkpoint to your test?
The page checkpoint checks that the number of links and images in the page when you run your test is the same as when you recorded your test.

1) Locate the page where you want to add a page checkpoint.

2) Create a page checkpoint. Right-click anywhere in the Active Screen, and choose Insert Standard Checkpoint.

The Object Selection - Checkpoint Properties dialog box opens.

Note that this dialog box may include different elements, depending on where you click in the Active Screen.

3) Save the test.

How run time data (Parameterization) is handled in QTP?

You can enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files. 

No comments:

Post a Comment