Learning Objectives
To allow the student to successfully use Quality Center immediately following the end of the class. The student will have a comprehensive understanding of tool use and potential.
Audience
Those who will be developing QTP scripts as part of their daily activities.
Prerequisites
Minimum: Completion of Introductory Training for QTP 9.x or 10.x or 11.x
Recommended: Minimum one month hands on experience with QTP
Some experience with VBScript programming or experience with another procedural programming language.
.
NOTE: Without some experience or an understanding of programming, many will find this course excessively challenging. QTP is a development environment; we treat it like that.
Duration
This is a two day course
Course outline
Review of QTP
- Record and playback
- Synchronization
- Regular Expressions
- Basic Checkpoints
- Parameterization
- Output Values
- The Object Repository
Using the Expert View
- Description of the Expert View
- Translation between Keyword and Expert View
- Examination of Objects and Methods
- Retrieving Dynamic Information from Test Objects
- Using the Step Generator
- Manually entering code
- Using the Debugger
Introduction to VBScript Programming
- Variables and Constants
- Literals
- Operators
- Commenting
- Control Statements and Programming Logic
- Built-in Functions
- String Manipulation
- Date Manipulation
- Type Conversion
- Outputting Data to the Screen
Dynamic Objects
- Descriptive Programming
- Description Object and Child Objects
- Managing Tables
- Revisit Previous Techniques
- Using Looping Statements
Creating Functions and Subroutines in VBScript
- Functions and Subroutines
- Libraries, Building and Associating
- Associating Procedures to Test Objects
- Registering a Procedure to an Object Class
- A routine or a reusable action?
External Data: Excel Data Tables
- Advantages of Importing and Exporting Data Tables
- Process for Importing and Exporting Data Tables
External Data: Databases
- Review: Simple Database Checkpoints
- Importing from Databases using the Record Set
External Data: Text Files
- Advantages of Using Text Files
- Reading from Text Files using the File System Object
- Writing to Text Files using the File System Object
Managing Selected QTP Issues
- Recovery Scenarios
- Inline Code
- Optional Steps
- Negative and Positive Data
- Exit Statements
External Data: The Excel.Application Object (Optional)
- Excel.Application Object
- Counting Rows
- Reading from Multiple Workbooks
- Writing to Excel
The Extern Object - Accessing External Routines (Optional)
- Using the Extern object
- Extern.Declare
- Examples
Lesson Schedule
- Day 1
- Review of QTP
- Using the Expert View
- Introduction to VBScript Programming
- Dynamic Objects
- Creating Functions and Subroutines in VBScript
- Day 2
- External Data: Excel Data Tables
- External Data: Databases
- External Data: Text Files
- Managing Selected QTP Issues
- External Data: The Excel.Application Object (Optional)
- The Extern Object - Accessing External Routines (Optional)
|