background image
<< Part 5 - Testing IDE Applications | Rational ActiveX Test Control >>
<< Part 5 - Testing IDE Applications | Rational ActiveX Test Control >>

Chapter 11 - Testing Visual Basic Applications

Testing Visual Basic Applications
This chapter explains how to test 32-bit Visual Basic applications with Rational
Robot. It includes the following topics:
About Robot support for Visual Basic applications
Verifying that the Visual Basic extension is loaded
About Robot Support for Visual Basic Applications
Rational Robot provides comprehensive support for testing 32-bit applications built
with Visual Basic version 4.0 through 6.0. Robot supports the testing of applications
that you migrate from one Visual Basic version to another and allows for the reuse of
scripts between Windows NT 4.0, Windows XP, Windows Me, Windows 2000, and
Windows 98.
With its Object Testing technology, Robot examines data and properties that are not
visible to the user. This means that Robot can do the following:
Recognize all Visual Basic objects, including objects that have windows
associated with them (such as EditBoxes) and objects that are "painted" on the
containing form (such as Labels).
Determine the names of objects in your program (as given in the Visual Basic
source code) and use those names for object recognition.
Capture properties of Visual Basic objects, using the Object Properties
verification point.
Capture the data underlying a Visual Basic data control, using the Object Data
verification point.
As an example, suppose you have a label in a Visual Basic form. If you click the label
during Robot recording, the label's name appears in the Robot script. If you create
an Object Properties verification point on the label, the label's name is captured. The
name by which Robot identifies the object is the same as its Visual Basic name, as
shown in the Visual Basic Properties window.