Advanced VBScript for Testers

Course:  VBTEST
Duration:  5 Days
Level:  II
Course Summary

This course will teach students who have experience with Windows scripting the advanced VBScript techniques, including File System Objects and Windows Management Instrumentation (WMI) scripting, security scripting, building hypertext applications for script graphical interfaces, remote scripting and database scripting. It will also teach them how to create testing. It will include the latest scripting updates for Windows XP and Windows Server? 2003. The course will be taught based on over 14 years experience in scripting, testing, and programming.

« Hide The Details
Topics Covered In This Course

Data Types

  • Scripting Languages as Loosely Typed
  • Why Data Types Are Important
  • The Variant: VBScript's Only Data Type
  • Arrays as Complex Data Types

Variables and Procedures

  • Option Explicit
  • Naming Variables
  • Procedures and Functions
  • Variable Scope, Declaration, and Lifetime
  • Design Strategies for Scripts and Procedures
  • ByRef and ByVal
  • Literals and Named Constants

Control of Flow

  • Branching Constructs
  • Loop Constructs

Error Handling and Debugging

  • Types of Errors
  • Error Visibility and Context
  • Handling Errors
  • Generating Custom Errors
  • Debugging

The Scripting Runtime Objects

  • What Are Runtime Objects?
  • Object Basics
  • The Dictionary Object
  • The FileSystemObject Library

Classes in VBScript (Writing COM Objects)

  • Objects, Classes, and Components
  • The Class Statement
  • Defining Properties
  • Defining Methods
  • Class Events
  • Level Constants
  • Building and Using a Sample VBScript Class

Regular Expressions

  • Introduction to Regular Expressions
  • The RegExp Object
  • The Matches Collection
  • A Few Examples

Client-Side Web Scripting

  • Tools of the Trade
  • The Evolution of Scripting
  • Different Scripting Languages
  • Responding to Browser Events
  • The Document Object Model in Action

Windows Sidebars and Gadgets

  • Gadget Basics
  • Building a Gadget
  • Auto-Refresh a Gadget
  • Packaging the Gadget

Task Scheduler Scripting

  • Working with Task Scheduler
  • Task Scheduler 2.0 Scripting Objects
  • Sample Task Scheduler Script


  • Requirements
  • Features
  • Why a New Scripting Language?
  • Getting Started
  • Working with Scripts in PowerShell
  • Creating and Calling Your First PowerShell Cmdlet Script
  • The Connection Between VBScript and PowerShell?

Super-Charged Client-Side Scripting

  • Requirements and Browser Security
  • Scriptlets ? Ancestors of Behaviors
  • Event Management
  • Scriptlets Are Deprecated in IE5
  • HTML Components (HTCs)

Windows Script Host

  • Tools of the Trade
  • What Is WSH?
  • Types of Script Files
  • Running Scripts with the Windows Script Host
  • Using .WSH Files to Launch Scripts
  • Windows Script Host Intrinsic Objects

Windows Script Components

  • What Are Windows Script Components?
  • What Tools Do You Need?
  • The Script Component Runtime
  • Script Component Files and Wizard
  • Exposing Properties, Methods, and Events
  • Registration Information
  • Creating the Script Component Type Libraries
  • How to Reference Other Components
  • Script Components for ASP
  • Compile-Time Error Checking
  • Using VBScript Classes in Script Components

Script Encoding

  • Limitations of Script Encoding
  • Encoded Scripts ? Dos and Don'ts
  • Encoding with the Microsoft Script Encoder
  • Decoding the Script
  • Other Methods of Script Obfuscation

Remote Scripting

  • How Remote Scripting Works
  • Using VBScript for Remote Scripting

HTML Applications

  • The Advantage of an HTML Application
  • How to Create a Basic HTA
  • HTAs and Security
  • HTA Deployment Models
  • What Isn't Supported with HTAs?

Server-Side Web Scripting

  • Understanding the Anatomy of the HTTP Protocol
  • Introducing Active Server Pages
  • Using the Active Server Pages Object Model
  • Using Active Server Pages Effectively

Adding VBScript to Your VB and .NET Applications

  • Why Add Scripting to Your Application?
  • Macro and Scripting Concepts
  • Adding the Script Control to a VB 6 or .NET Application
  • Script Control Reference
  • Error Handling with the Script Control
  • Debugging
  • Using Encoded Scripts
  • Sample .NET Project
  • Sample Visual Basic 6 Project

Advanced Scripting Techniques, Tools, and Technologies

  • Remote Scripting
  • Advanced WMI Scripting
  • WMI Events
  • Better Scripting with WMI Tools
  • Scripting for the Enterprise
  • Script Security
What You Can Expect

At the end of this course, students will be able to:

  • Code and Debug advanced scripts
  • Work with COM objects
  • Work with Properties, Methods, and Events
  • Use FileSystemObject Library
  • Work with Windows Script Host
  • Build scripts to interact with Windows Management Instrumentation
  • Schedule scripts
  • Troubleshoot complex scripts
  • Use Regular Expressions
  • Develop complex testing scripts
  • Organize scripts for reuse
Who Should Take This Course

This course is designed for testers.

Recommended Prerequisites

Some VBScript experience is required.

Training Style

Instructor led with 50% lecture and 50% lab.

« Hide The Details

Every student attending a Verhoef Training class will receive a certificate good for $100 toward their next public class taken within a year.

You can also buy "Verhoef Vouchers" to get a discounted rate for a single student in any of our public or web-based classes. Contact your account manager or our sales office for details.

Schedule For This Course
There are currently no public sessions scheduled for this course. We can schedule a private class for your organization just a couple of weeks from now. Or we can let you know the next time we do schedule a public session.
Notify me the next time this course is confirmed!
Can't find the course you want?
Call us at 800.533.3893, or
email us at [email protected]