Scripting QTP Basic

QTP0101

Overview

This core course provides comprehensive knowledge of the programming language used by QTP: VBScript.

The course covers the basic principles of OOP and the difference between VBScript and other languages.

The course teaches how to manipulate your applications using QTP and VBScript.

You will learn the VBScript programming language fundamentals, Data Types used by VBScript.

Control the flow code using conditional statements and loops.

You will learn how to create your own functions and subroutines, and how to use the VBScript pre-defined functions.

Note: All topics are supported by hands-on exercises based on real-life examples.

Duration

2 days

Also
Recommended

Scripting QTP Advanced QTP0102

Intended
Audience

New and intermediate users of QTP who need to get familiar with QTP’s programming language. The course covers both Windows and Web environments.

Professional
Prerequisites

First Steps Windows QTP0100  Or

First Steps Web QTP0200 Or

at least 2 months of QTP experience

Technical
Prerequisites

Valid QTP license and Internet access.

Career Track
Relevancy

All programmer tracks

Topics

a    Introduction to VBScript

o                Variables

o                Data Types

o                VBScript Constants

o                VBScript pre-defined constants

a    VBScript operators.

o                Working with Operators

o                Arithmetic operators.

o                Comparison operators.

o                Logical operators.

o                String Operators

o                Operator Precedence

a    Working with arrays.

o                Creating Arrays

o                Array Variables

o                Resizing Arrays

o                Array Functions

a    Controlling the Flow Code

o                Control Structures to Make Decisions

o                Using Control Structures to Make Code Repeat

o                Exit Statement

o                Putting All Together

a    Subroutines and Functions Procedures

o                About Subroutines and Functions Procedures

o                Declaring Sub/Functions

o                Calling a Sub/Function

o                Exiting a Sub/Function

o                Passing Arguments into Procedures

o                QuickTest Function Libraries

o                Using the Function Definition Generator

a    VBScript Pre-defined Functions

o                Interaction Functions

o                String Manipulation Functions

o                Math Manipulation Functions

o                Date/Time Manipulation Functions

o                String Formatting Functions