Scripting QTP Advanced

QTP0102

Overview

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

The course covers usage of the file system using FSO, Shell32 and WSH.

The course also delves into how to workaround VBScript’s limitations by making advanced uses of the Dictionary object and by including reserved objects with QuickTest.

The course teaches how to manipulate data using regular expressions, ADO and MSXML.

The student will learn how to use .NET classes available for VBScript, Custom Classes and Regular Expressions.

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

Duration

3 days

Also
Recommended

Mastering QTP QTP0103

XML Data Suite QTP0400

Intended
Audience

Intermediate and advanced users will learn a wide array of different advanced coding techniques using the world of automation COM via VBScript.

Professional
Prerequisites

First Steps Windows QTP0100  Or

First Steps Web QTP0200

Scripting QTP - Basic QTP0101 Or

Basic VBScript Knowledge

Technical
Prerequisites

Valid QTP license and Internet access.

MS-Access

Career Track
Relevancy

QTP Java Programmer

QTP Web Programmer

QTP .NET/.NET Web Programmer

QTP SAP/SAP Web Programmer

QTP TE Programmer

Topics

a    Introduction to OOP

o                The OOP Model

o                The Object Model

o                Introduction to COM

o                Using COM Objects

a    Working with the File System

o                FSO Object Model

o                Working with Disk Drives

o                Managing Folders

o                Managing Files

o                Reading and Writing Text Files

a    Dictionary Object

o                Configure Dictionary Properties

o                Adding Keys to a Dictionary

o                Sharing Values Using dictionary Object

o                Use Dictionary Object for Generic Functions

a    Mastering Regular Expressions

o                About Regular Expressions

o                Patterns

o                Matches Collection and Match Object

o                SubMatches object

o                Useful Regular Expressions

a    Windows Script Host

o                WSH Objects and Services

o                The WSH Object Model

o                Managing Network Drives

o                Managing Network Printers

o                WSH Network Object

a    WSH Shell Object

o                Working with Shortcuts

o                Working with Special Folders

o                Working with Environment Variables

o                Reading From and Writing to the Local Registry

o                Sending Keystrokes to a Program

o                Running Programs

a    ActiveX Data Objects

o                ADODB Object Model

o                Connecting to a Data Source

o                Creating  a New DSN

o                Connecting to a Database

o                ADO Cursors and Lock Types

o                Retrieving Data

a    MSXML Parser

o                About XML

o                XML Documents

o                The XML Elements and Attributes

o                Using the MSXML Parser

o                Loading XML Documents

o                Handling XML Errors

o                Accessing Document Information

a    VBScript Classes

o                Class Object

o                Class Construct

o                Class Variables

o                Class Properties

o                Class Methods

o                Class Events

o                Introduction to Windows Script Components

a    Scripting QTP

o                Internationalization

o                Disconnected Recordset

o                Generating GUID's

o                Accessing to the .NET Framework

o                Keep QuickTest from Hanging

o                Working with Shell.Application