<<

"Charting the Course ...

... to Your Success!"

Advanced VBScript for Testers

Course Summary

Description

This course will teach students who have experience with Windows scripting the advanced VBScript techniques, including 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 ™ 2003. The course will be taught based on over 14 years experience in scripting, testing, and programming.

Objectives the end of this course, students will be able to:  Code and advanced scripts  Schedule scripts  Work with COM objects  Troubleshoot complex scripts  Work with Properties, Methods, and Events  Use Regular Expressions  Use FileSystemObject  Develop complex testing scripts  Work with  Organize scripts for reuse  Build scripts to interact with Windows Management Instrumentation

Topics

 Data Types  Super-Charged Client-Side Scripting  Variables and Procedures  Windows Script Host  Control of Flow  Windows Script Components  Error Handling and Debugging  Script Encoding  The Scripting Runtime Objects  Remote Scripting  Classes in VBScript (Writing COM Objects)  HTML Applications  Regular Expressions  Server-Side Web Scripting  Client-Side Web Scripting  Adding VBScript to Your VB and .  Windows Sidebars and Gadgets Applications  Task Scheduler Scripting  Advanced Scripting Techniques, Tools, and  PowerShell Technologies

Audience

This course is designed for testers.

Prerequisites

Some VBScript experience is required.

Duration

Five days

Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the intent of ProTech Professional Technical Services, Inc. to use any of these names generically

PT1399_ADVANCEDVBSCRIPTFORTESTERS.DOC

"Charting the Course ...

... to Your Success!"

Advanced VBScript for Testers

Course Outline

I. Data Types D. A Few Examples A. Scripting Languages as Loosely Typed B. Why Data Types Are Important VIII. Client-Side Web Scripting . The Variant: VBScript's Only Data Type A. Tools of the Trade D. Arrays as Complex Data Types B. The Evolution of Scripting C. Different Scripting Languages II. Variables and Procedures D. Responding to Browser Events A. Option Explicit E. The Document in Action B. Naming Variables C. Procedures and Functions IX. Windows Sidebars and Gadgets D. Variable Scope, Declaration, and Lifetime A. Gadget E. Design Strategies for Scripts and B. Building a Gadget Procedures C. Auto-Refresh a Gadget F. ByRef and ByVal D. Packaging the Gadget G. Literals and Named Constants X. Task Scheduler Scripting III. Control of Flow A. Working with Task Scheduler A. Branching Constructs B. Task Scheduler 2.0 Scripting Objects B. Loop Constructs C. Sample Task Scheduler Script

IV. Error Handling and Debugging XI. PowerShell A. Types of Errors A. Requirements B. Error Visibility and Context B. Features C. Handling Errors C. Why a New ? D. Generating Custom Errors D. Getting Started E. Debugging E. Working with Scripts in PowerShell F. Creating and Calling Your First PowerShell V. The Scripting Runtime Objects Cmdlet Script A. What Are Runtime Objects? G. The Connection Between VBScript and B. Object Basics PowerShell? C. The Dictionary Object D. The FileSystemObject Library XII. Super-Charged Client-Side Scripting A. Requirements and VI. Classes in VBScript (Writing COM Objects) B. Scriptlets — Ancestors of Behaviors A. Objects, Classes, and Components C. Event Management B. The Class Statement D. Scriptlets Are Deprecated in IE5 C. Defining Properties E. HTML Components (HTCs) D. Defining Methods F. Windows Script Host E. Class Events G. Tools of the Trade F. Level Constants H. What Is WSH? G. Building and Using a Sample VBScript Class I. Types of Script Files J. Running Scripts with the Windows Script VII. Regular Expressions Host A. Introduction to Regular Expressions K. Using .WSH Files to Launch Scripts B. The RegExp Object L. Windows Script Host Intrinsic Objects C. The Matches Collection

Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the intent of ProTech Professional Technical Services, Inc. to use any of these names generically

PT1399_ADVANCEDVBSCRIPTFORTESTERS.DOC

"Charting the Course ...

... to Your Success!"

Advanced VBScript for Testers

Course Outline (cont’d)

XIII. Windows Script Components XVIII. Adding VBScript to Your VB and .NET A. What Are Windows Script Components? Applications B. What Tools Do You Need? A. Why Add Scripting to Your Application? C. The Script Component Runtime B. Macro and Scripting Concepts D. Script Component Files and Wizard C. Adding the Script Control to a VB 6 or .NET E. Exposing Properties, Methods, and Events Application F. Registration Information D. Script Control Reference G. Creating the Script Component Type E. Error Handling with the Script Control Libraries F. Debugging H. How to Reference Other Components G. Using Encoded Scripts I. Script Components for ASP H. Sample .NET Project J. Compile-Time Error Checking I. Sample 6 Project K. Using VBScript Classes in Script Components XIX. Advanced Scripting Techniques, Tools, and Technologies XIV. Script Encoding A. Remote Scripting A. Limitations of Script Encoding B. Advanced WMI Scripting B. Encoded Scripts — Dos and Don'ts C. WMI Events C. Encoding with the Script Encoder D. Better Scripting with WMI Tools D. Decoding the Script E. Scripting for the Enterprise E. Other Methods of Script Obfuscation F. Script Security

XV. Remote Scripting A. How Remote Scripting Works B. Using VBScript for Remote Scripting

XVI. HTML Applications A. The Advantage of an HTML Application B. How to Create a Basic HTA C. The HTA:APPLICATION Element D. HTAs and Security E. HTA Deployment Models F. What Isn't Supported with HTAs?

XVII. Server-Side Web Scripting A. Understanding the Anatomy of the HTTP Protocol B. Introducing C. Using the Active Server Pages Object Model D. Using Active Server Pages Effectively

Due to the nature of this material, this document refers to numerous hardware and software products by their trade names. References to other companies and their products are for informational purposes only, and all trademarks are the properties of their respective companies. It is not the intent of ProTech Professional Technical Services, Inc. to use any of these names generically

PT1399_ADVANCEDVBSCRIPTFORTESTERS.DOC