UFT/QTP – Check Points

A checkpoint is one of the options provided by UFT to enhance the script.

Checkpoints are verification points used to compare actual value (actual value is present in the application) with the expected value (Expected value is supposed to be in the application) which can be inserted at any point of time in the script.

Types of Checkpoints

UFT provides the following types of checkpoints:

  1. Standard Checkpoint
  2. Image Checkpoint
  3. Bitmap Checkpoint
  4. Table Checkpoint
  5. Text Checkpoint
  6. Text Area Checkpoint
  7. Accessibility Checkpoint
  8. Page Checkpoint
  9. Database Checkpoint
  10. XML Checkpoint From Application
  11. XML Checkpoint From Source
  12. File Content Checkpoint

Note – Using Standard checkpoint other checkpoints image, page & table can be applied. Read More

UFT/QTP – Parameterization

UFT enables you to extend the scope of a basic test by replacing fixed values with parameters. This process is know as parameterization which increases the power and flexibility of test.

Types of Parameters

Depending upon the data, Parameterization is divided into 4 categories.

  1. Data Table Parameterization
  2. Test/Action Parameterization
  3. Environment variable Parameterization
  4. Random number Parameterization

Read More

UFT/QTP – Output Values

An Output value step, is step in which one or more values are captured at a specific point in your test and stored at a desired location. The stored values can be used as input at a different points in test script.

You can output a value to:

  • A test or action parameter
  • The run time data table
  • An environment variable

Read More

UFT/QTP – Synchronization

Synchronization is the time interface between tool (like QTP) and Application under test.

Synchronization is used to match the speed of UFT test script execution with the speed of the application under test.

UFT test can be synchronized in the following way : Read More

UFT/QTP – VBScript Tutorial Part -1

VBScript stands for Visual Basic Scripting. This Scripting language developed by Microsoft, supported by Internet Explorer. VBScript is the primary scripting language for Quick Test Professional (QTP), which is a test automation tool.

Data Types

VBScript has only one data type called a Variant. A Variant is a special kind of data type that can contain different kinds of information, depending on how it’s used.

Variant data types divided into sub data types according to behavior of data type.  Like – Empty, Null, Boolean, Byte, Integer, Currency, Long, Single, Double, Date, String Object Error. Read More

UFT/QTP – VBScript Tutorial Part -2

Operators

VBScript has a full range of operators, including arithmetic operators, comparison operators, concatenation operators, logical operators.

Operator Precedence
When several operations occur in an expression, each part is evaluated and resolved in a predetermined order called operator precedence. You can use parentheses to override the order of precedence and force some parts of an expression to be evaluated before others. Operations within parentheses are always performed before those outside. Within parentheses, however, standard operator precedence is maintained.
When expressions contain operators from more than one category, arithmetic operators are evaluated first, comparison operators are evaluated next, and logical operators are evaluated last. Comparison operators all have equal precedence; that is, they are evaluated in the left-to-right order in which they appear. Arithmetic and logical operators are evaluated in the following order of precedence. Read More

UFT/QTP – VBScript Tutorial Part -3

Array

A VBScript array is a special type of variable that allows you to store multiple values against a single variable.

Features of Arrays

  • Array in VBScript are Zero-Based.
  • Arrays in VBScript can have a maximum of 60 dimensions.
  • If no value is assigned for an array element it consists of Null value by default.
  • Arrays can not only hold similar kind of data but can have combinations of type of data.

Read More

UFT/QTP – VBScript Tutorial Solved Examples

Find whether the given number is an odd or even number
Dim n
n= inputbox(“enter the number”)
n =cint(n)
if (n mod 2 = 0) Then
print(n & “is even number”)
else
print(n & “is odd number”)
End If Read More

UFT/QTP – Debugging

Debugging is the process of locating and fixing errors in the program code. After you create a test, you should check that it runs smoothly, without error syntax or logic. Set the breakpoints in the program to stop program execution and to isolate defects.

There are various ways to perform debugging using break points in QTP. Break Points can be inserted just by pressing “F9” or by using the Menu option “Run” → “Inserting/Removing Break Point”.

After Inserting the Break point the “Red Colored” Dot and the line will be highlighted in RED as shown below:

How to Debug?

Step 1 –  Add/Delete Breakpoint Read More

UFT/QTP – Error Handling

There are several ways to handling errors in QTP. There are three possible kinds of error type one would encounter while working with QTP.

  • Syntax Errors
  • Logical Errors
  • Run Time Errors

Syntax Errors

Read More