
VB Scripting for TestComplete
Introduction
During our many onsite and online TestComplete trainings we frequently encounter teams and individual's in need of VBScript training to enhance their test automation efforts. Falafel is proud to present a course focused on those individuals and customized to meet their specific needs. We've created the perfect mix of VBScript training coupled with TestComplete development to jump start you on your way to test automation success.
Course Outline
Day 1
- Overview of Scripting
Lessons
- Scripting Technologies
- VBScript Features
- Script Editors
- TestComplete’s Script Editor
Labs
- Getting to know TestComplete
- Create and Execute “Hello World” script
- Script Logic
Lessons
- Working with Constants, Variables and Strings
- Loops, the Do…Loop
- Built-ins, Creating Subs and Functions
Labs
- Do…Loop
- Call a Function from a Sub
- VBScript Objects and Object Models
Lessons
- Creating and Manipulating Objects in VBScript
- Common Object Models
- Validating Forms and Registering for Events
Labs
- Using the FileSystemObject
- Accessing Data Sources with ADO
- Handling Errors and Exceptions
Lessons
- Types of Errors (S.R.L.)
- Run-time Errors
- Using the Err Object
- Setting Error Traps
Labs
- Enabling Graceful Exits
- Logging Errors to the Event Log
- E-mail Error information
Day 2
- Debugging
Lessons
- Script Processing Cycle
- Microsoft Script Debugger
- Debugging Techniques
Labs
- Writing to the Windows Application Log
- Working with WMI and WMI Providers
Lessons
- Overview of WMI
- WMI Services
- WMI Objects and Collections
- Scripting Tasks with WMI
- WQL
- WMI Providers
Labs
- Connecting to a WMI Service
- Using the WMI Collection
- Working with the WMIPerfClass and WMIPerfInst (Vista Specific)
- VBScript Coding Conventions
Lessons
- Create Script Templates
- Use Code Snippets
Labs
- Create a Script based on a Template