Add-ins, Web Services »

[5 Nov 2009 | No Comment | 3,474 views]

QTP supports keyword-driven testing on your Web services. This means that in QTP; after you add a WebService test object to your object repository, you can access all of the operations that the Web service supports from the Operation column of the Keyword View, the Operation box in the Step Generator, or by using IntelliSense in the Expert View.
You can add a WebService test object using the Web Service Add Object Wizard or the Web Service Testing Wizard.

The Web Service Add Object Wizard enables you …

Basics »

[28 Oct 2009 | No Comment | 2,599 views]

You can add checkpoints while creating or editing your QTP test script. It is generally more convenient to define checkpoints after creating the initial test.
To add new checkpoints while editing or recording your test: Use the commands in the Insert > Checkpoint menu, or click the Insert Checkpoint buttonĀ  in the toolbar. This displays a menu of checkpoint options that are relevant to the selected step.
To add new checkpoints while editing only:

Right-click the step where you want to add the checkpoint and select the relevant checkpoint option.
Select the step …

Basics »

[28 Oct 2009 | 2 Comments | 5,908 views]

In QTP, there are multiple ways to create Regular Expressions. Below are most common 15 different ways to create Regular Expressions:
1. Using the Backslash Character: A backslash (\) can serve two purposes. It can be used in conjunction with a special character to indicate that the next character be treated as a literal character. For example, \. would be treated as period (.) instead of a wildcard. Alternatively, if the backslash (\) is used in conjunction with some characters that would otherwise be treated as literal …

Basics »

[28 Oct 2009 | No Comment | 1,315 views]

Before start writing the main post, I would like to tell you first that in QTP, you can use regular expressions only for values of type string.
In QTP, you can define a regular expression for a constant value, a Data Table parameter value, an Environment parameter value, or a property value in a programmatic description.
You can define a regular expression by entering the regular expression syntax for the string in the Value box in the Constant Value Options dialog box or the Parameter Options dialog box. …

Basics »

[28 Oct 2009 | No Comment | 1,438 views]

You can use a formula in a checkpoint to confirm that an object created on-the-fly or another variable object in your Web page or application contains the value it should for a given context. For example, suppose a shopping cart Web site displays a price total. You can create a text checkpoint on the displayed total value and use a Data Table formula to check whether the site properly computes the total, based on the individual prices of the products selected for purchase in …