QTAddins Guide
QTAddins Guide
QTAddins Guide
Add-ins Guide
The only warranties for HP products and services are set forth in the express warranty
statements accompanying such products and services. Nothing herein should be construed as
constituting an additional warranty. HP shall not be liable for technical or editorial errors or
omissions contained herein.
The information contained herein is subject to change without notice.
Confidential computer software. Valid license from HP required for possession, use or copying.
Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software
Documentation, and Technical Data for Commercial Items are licensed to the U.S.
Government under vendor's standard commercial license.
HP provides links to external third-party Web sites to help you find supplemental
information. Site content and availability may change without notice. HP makes no
representations or warranties whatsoever as to site content or availability.
Copyright Notices
Trademark Notices
2
Documentation Updates
This guide’s title page contains the following identifying information:
• Software Version number, which indicates the software version.
• Document Release Date, which changes each time the document is updated.
• Software Release Date, which indicates the release date of this version of the software.
To check for recent updates, or to verify that you are using the most recent edition of a
document, go to:
http://h20230.www2.hp.com/selfsolve/manuals
This site requires that you register for an HP Passport and sign-in. To register for an HP
Passport ID, go to:
http://h20229.www2.hp.com/passport-registration.html
Or click the New users - please register link on the HP Passport login page.
You will also receive updated or new editions if you subscribe to the appropriate product
support service. Contact your HP sales representative for details.
3
Support
You can visit the HP Software Support web site at:
http://www.hp.com/go/hpsoftwaresupport
This web site provides contact information and details about the products, services, and
support that HP Software offers.
HP Software Support Online provides customer self-solve capabilities. It provides a fast and
efficient way to access interactive technical support tools needed to manage your business. As
a valued support customer, you can benefit by using the HP Software Support web site to:
• Search for knowledge documents of interest
• Submit and track support cases and enhancement requests
• Download software patches
• Manage support contracts
• Look up HP support contacts
• Review information about available services
• Enter into discussions with other software customers
• Research and register for software training
Most of the support areas require that you register as an HP Passport user and sign in. Many
also require a support contract.
To find more information about access levels, go to:
http://h20230.www2.hp.com/new_access_levels.jsp
To register for an HP Passport ID, go to:
http://h20229.www2.hp.com/passport-registration.html
4
Table of Contents
PA RT I : W O R K I N G W I T H QU IC K T E S T P R O F E S S I O N A L A D D - I N S
Chapter 1: Working with QuickTest Add-ins ......................................23
About Working with QuickTest Add-Ins.............................................24
Loading QuickTest Add-ins .................................................................28
The Record and Run Settings Dialog Box: Overview ..........................36
Tips for Working with QuickTest Add-ins ..........................................41
Chapter 2: Testing Windows-Based Applications...............................43
About Testing Windows-Based Applications ......................................43
Setting Windows Applications Record and Run Options ...................45
Defining Record and Run Variables for a Windows-Based
Environment ...................................................................................59
Setting Windows Application Testing Options ..................................61
Setting Advanced Windows Applications Options.............................65
Chapter 3: Testing Web-Based Applications ......................................75
About Testing Web-Based Applications ..............................................75
Setting Web Record and Run Options ................................................76
Defining Record and Run Variables for a Web Environment.............81
Setting Web Testing Options ..............................................................82
Defining Web Settings for Your Test...................................................98
Defining Web Settings for Your Application Area ............................100
Viewing Web Settings for Your Business Component......................102
Web Event Recording Configurations ..............................................103
5
Table of Contents
P A R T I I I: T H E A C T IV E X A D D - I N
Chapter 5: Using the ActiveX Add-in................................................115
About the ActiveX Add-in .................................................................115
Considerations for Working with the ActiveX Add-in .....................117
P A R T V : T H E JA V A A D D - I N
Chapter 7: Using the Java Add-in......................................................129
About the Java Add-in .......................................................................130
Considerations for Working with the Java Add-in ...........................131
Understanding Java Add-in Dependencies and Conflicts ................133
Chapter 8: Creating and Running Tests on Java Objects .................135
Defining Java Testing Options ..........................................................136
Defining Java Settings for Individual Tests and Components..........146
Defining Java Record and Run Options for Tests .............................152
Defining Application Details Environment Variables for Tests........158
Optimizing Settings for Other Record and Run Settings
Dialog Box Tabs ............................................................................159
Recording Tests and Components on Java Objects ..........................159
Chapter 9: Using Advanced Java Test Object Methods....................171
Creating Objects in Your Applet or Application (Advanced) ...........171
Working with Static Members...........................................................172
Firing Java Events ..............................................................................173
6
Table of Contents
7
Table of Contents
P A R T X : T H E A D D -I N F O R S A P SO L U T I O N S
Chapter 19: Setting Up Your SAP GUI for Windows
Environment .................................................................................259
About Setting Up Your SAP Windows Environment ........................260
Installing SAP GUI Scripting Support ...............................................261
Checking Package and Patch Versions Installed on the SAP
Application Server.........................................................................262
Checking the Patch Version Installed on your SAP GUI for
Windows Application ...................................................................267
Enabling Scripting on the SAP Application (Server-Side) .................268
Enabling Scripting on the SAP Application (Client-Side) .................273
Setting F4 Help to Use Dialog Display Mode ....................................276
Setting F1 Help to Use Modal Dialog Box Mode...............................278
Checking the Connection Speed on the SAP Server.........................279
8
Table of Contents
Chapter 20: Using the Add-in for SAP solutions on SAP GUI
for Windows Applications.............................................................281
About the Add-in for SAP solutions ..................................................282
Considerations for Working with the Add-in for SAP solutions ......284
Understanding QuickTest and the SAP GUI Scripting API ...............286
Setting Record and Run Settings for SAP GUI for Windows
Tests...............................................................................................289
Configuring Testing Options for SAP GUI for Windows
Applications ..................................................................................294
Understanding Low-Level or Analog Mode Recording on
SAP GUI for Windows...................................................................307
Using Standard Windows Recording Capabilities ............................308
Understanding QuickTest-eCATT Integration ..................................309
Configuring eCATT to Work with QuickTest ...................................312
Working with eCATT in Standalone Mode.......................................314
Working with eCATT in Integrated Mode ........................................339
Chapter 21: Enhancing Your SAP Windows Test..............................357
Considerations for Enhancing SAP Windows Tests..........................357
Checking SAP Windows Objects and Outputting Values.................358
Outputting SAP Windows Property and Table Cell Values ..............364
Chapter 22: Adding SAP Windows Statements to Your Test
or Component...............................................................................375
Working with SAP Windows Test Objects ........................................375
Accessing Native Operations and Properties in Your SAP GUI
for Windows Application..............................................................390
Chapter 23: Using the Add-in for SAP solutions on Web-based SAP
Applications ..................................................................................393
About the Add-in for SAP solutions ..................................................394
Recording Tests on Web-based SAP Applications .............................397
Chapter 24: Enhancing Your SAP Web Test .....................................403
Checking SAP Web Objects and Outputting Values.........................403
Chapter 25: Adding SAP Web Statements to Your Test
or Component...............................................................................407
Working with SAP Web Test Objects ................................................407
9
Table of Contents
P A R T X I : T H E S IE B E L A D D -I N
Chapter 26: Using the Siebel Add-in ................................................419
About the Siebel Add-In ....................................................................420
Considerations for Working with the Siebel Add-in ........................422
Setting Up Your Siebel 7.7.x or Later Environment..........................423
Chapter 27: Creating and Running Tests and Components
on Siebel Objects ..........................................................................427
Understanding the Siebel Test Object Model ...................................428
Setting Siebel Record and Run Options ............................................430
Setting Siebel Application Options for Components .......................436
Using Environment Variables to Specify Record and Run
or Applications Settings ....................................................................436
Recording Steps on Siebel Objects ....................................................438
Information for Users of Earlier Versions of the
QuickTest Professional Siebel Add-in ...........................................439
Chapter 28: Enhancing Your Siebel Test or Component .................441
Considerations for Checking Siebel Objects .....................................441
Accessing Native Operations and Properties in Siebel 7.0.x and
7.5.x Applications .........................................................................443
Spooling Data from a Siebel Table ....................................................444
Chapter 29: Generating an Object Repository Using Siebel
Test Express...................................................................................447
About Generating an Object Repository Using Siebel
Test Express ...................................................................................447
Siebel Test Express System Requirements and Supported
Environments ...............................................................................448
Using Siebel Test Express to Create an Object Repository ................449
Using Siebel Test Express to Update an Existing Object
Repository ....................................................................................457
P A R T X I I : T H E S T I N G R A Y A D D - IN
Chapter 30: Using the Stingray Add-in.............................................465
About the Stingray Add-in ................................................................466
Considerations for Working with the Stingray Add-in ....................467
Setting Up Stingray Object Support ..................................................468
Testing Stingray Applications ...........................................................482
10
Table of Contents
P A R T X I V : T H E V IS U A L B A S I C A D D - I N
Chapter 35: Using the Visual Basic Add-in........................................563
About the Visual Basic Add-in...........................................................564
11
Table of Contents
P A R T X V I : T H E W E B A D D - IN
Chapter 37: Using the Web Add-in...................................................577
About the Web Add-in ......................................................................579
Considerations for Working with the Web Add-in ..........................580
Working with Web Browsers.............................................................581
Checking Web Pages .........................................................................587
Checking Web Content Accessibility................................................599
Accessing Password-Protected Resources in the Active Screen .........603
Activating Methods Associated with a Web Object..........................609
Using Programmatic Descriptions for the WebElement Object .......610
Controlling How QuickTest Recognizes Web Table Elements
(Advanced) ....................................................................................611
Registering Browser Controls ............................................................613
Chapter 38: Configuring Web Event Recording for Web
Objects ..........................................................................................615
About Configuring Web Event Recording ........................................616
Selecting a Predefined Event Recording Configuration....................618
Customizing the Web Event Recording Configuration....................620
Recording Right Mouse Button Clicks ..............................................630
Saving and Loading Custom Event Configuration Files...................634
Resetting Event Recording Configuration Settings...........................636
P A R T X V I I : T H E W E B S E R V I C E S A D D - IN
Chapter 39: Using the Web Services Add-in.....................................641
About the Web Services Add-in.........................................................643
Considerations for Working with the Web Services Add-in.............644
Understanding the Web Service Testing Wizard ..............................646
Checking that Your WSDL Meets WS-I Standards............................664
Adding WebService Test Objects to the Object Repository ..............668
Specifying the Web Services Toolkit .................................................673
Setting Web Services Test Options ...................................................674
Defining Web Service Test or Component Settings..........................677
Working with Web Service Operations.............................................678
Working with Business Process Testing ............................................683
Analyzing the Results of a Web Service Test.....................................684
Introduction to HP Service Test and HP Service Test
Management .................................................................................687
12
Table of Contents
P A R T X V I I I : A P P E N D IX
Appendix A: Supported Checkpoints and Output Values
Per Add-In .....................................................................................709
Supported Checkpoints .....................................................................710
Supported Output Values ..................................................................712
Index ..................................................................................................715
13
Table of Contents
14
Welcome to This Guide
This guide assumes that you are familiar with QuickTest features and
options. It describes the functionality that is added or changes in QuickTest
when you work with specific QuickTest add-ins as well as other
add-in-specific considerations and best practices.
15
Welcome to This Guide
The information, examples, and screen captures in this guide often focus
specifically on working with QuickTest tests. However, much of the
information applies equally to business components and scripted
components. Information that is unique to using a specific
QuickTest Professional add-in with Business Process Testing is indicated as
such.
For users that work with QuickTest add-in extensibility, QuickTest also
provides developer guides that describe how to extend QuickTest support
for third-party and custom controls for supported environments, such as
Delphi, Java, .NET, or Web. For more information on where to find the
developer guides, see the section on the relevant add-in.
16
Welcome to This Guide
Readme provides the latest news and information about QuickTest. Select
Start > Programs > QuickTest Professional > Readme.
17
Welcome to This Guide
18
Welcome to This Guide
The HP Software Web site provides you with the most up-to-date
information on HP Software products. This includes new software releases,
seminars and trade shows, customer support, and more. The URL for this
Web site is www.hp.com/go/software.
HP Software Support accesses the HP Software Support Web site. This site
enables you to browse the Self-solve knowledge base. You can also post to
and search user discussion forums, submit support requests, download
patches and updated documentation, and more. Choose Help > HP Software
Support. The URL for this Web site is www.hp.com/go/hpsoftwaresupport.
Most of the support areas require that you register as an HP Passport user
and sign in. Many also require a support contract.
19
Welcome to This Guide
20
Part I
Working with QuickTest Professional
Add-ins
22
1
Working with QuickTest Add-ins
When you work with these add-ins, you can use special methods, properties,
and various special options to create the best possible test or component for
your application.
23
Chapter 1 • Working with QuickTest Add-ins
You can install QuickTest add-ins when you install QuickTest Professional,
or you can install the add-ins at a later time by running the installation
again in Modify mode.
Add-ins require a seat or concurrent license code. You install a seat add-in
license on your computer using the Add-in Manager dialog box. You install
a concurrent add-in license on the HP Functional Testing Concurrent
License Server computer and then client QuickTest computers can connect
to the concurrent license server to use an available license.
24
Chapter 1 • Working with QuickTest Add-ins
You can check whether a specific add-in is installed by choosing Help >
About QuickTest Professional. Loaded add-ins are indicated by a check mark
in the add-ins list.
When you load an add-in, QuickTest recognizes the objects you work with
on the corresponding environment. In many cases, loading the add-in also
adds new user interface options and capabilities to QuickTest, as well as
adding support for the add-in’s object model—the set of test objects,
methods, and properties specially designed for working with the objects in
your development environment. Details of these objects, methods, and
properties can be found in the relevant section of the HP QuickTest
Professional Object Model Reference (Select Help > QuickTest Professional
Help).
You can use the Keyword View and Expert View to activate
environment-specific test object and native (run-time object) operations,
retrieve and set the values of properties, and check that objects exist.
You can customize the Active Screen capture settings for some of the
QuickTest add-ins. When you apply custom Active Screen settings, you
override your previous capture-level settings with all of the settings in the
Custom Active Screen Capture Settings dialog box. If you want to customize
only specific settings, use the Reset to option to ensure that all other
settings are using the capture-level setting you prefer and then modify the
specific settings you need. For more information, see the section describing
Active Screen capture setting options in the HP QuickTest Professional User
Guide.
Several QuickTest Add-ins are designed to support special objects that are
generally available in Web applications, such as standard Web (HTML),
Siebel, .NET Web forms, and Web-based SAP objects. These add-ins are
known as Web-based Add-ins. The interface options, capabilities, and other
functionality that is available for the Web-based add-ins are often identical
or similar. These Web-specific features are described in Chapter 3, “Testing
Web-Based Applications.”
25
Chapter 1 • Working with QuickTest Add-ins
26
Chapter 1 • Working with QuickTest Add-ins
➤ If an add-in license has not yet been installed for a specific add-in, the
add-in is displayed as Not Licensed in the License column of the Add-in
Manager dialog box. An add-in may also be displayed as Not Licensed if no
concurrent license server within your subnet has a registered license for the
specific add-in, or if all concurrent licenses are in use (and are, therefore,
unavailable). In this case, you can use the LSFORCEHOST or LSHOST
variable to connect to a concurrent license server outside of the subnet that
has the relevant add-in license installed on it, if one is available. For more
information on connecting to concurrent license servers, see the
HP QuickTest Professional Installation Guide.
➤ You can view license details for all currently loaded licensed add-ins by
clicking License in the About QuickTest Professional dialog box (Help >
About QuickTest Professional).
➤ For seat licenses, the category for each license is displayed. The license
category may be Demo, Permanent, Commuter, or Time-Limited. For
Demo, Commuter (used with concurrent licenses), and Time-Limited
QuickTest seat licenses, the number of days and hours remaining until
the license expires is also displayed.
➤ For concurrent licenses, the URL or host name of the concurrent license
server used for each license is displayed.
27
Chapter 1 • Working with QuickTest Add-ins
When you start QuickTest, the Add-in Manager dialog box opens. It displays
a list of all installed add-ins and the license used for each add-in. If you are
using a seat add-in license, it also displays the time remaining for
time-limited licenses. For information on the details shown in the Add-in
Manager dialog box, see “The Add-in Manager Dialog Box” on page 31.
28
Chapter 1 • Working with QuickTest Add-ins
Tips:
➤ If the Add-in Manager dialog box is not displayed when you open
QuickTest, you can choose to display it the next time you open
QuickTest. To do so, select Display Add-in Manager on startup from the
General pane of the Options dialog box.
➤ If the Web Services Add-in is loaded, a message opens when you open
QuickTest that provides a link to more information on the SOA testing
capabilities available with HP Service Test and HP Service Test
Management. The Add-in Manager dialog box is displayed when you
click OK in the message box. Select the check box if you do not want the
message to open each time you open QuickTest with the Web Services
Add-in loaded.
If you have QuickTest add-ins installed, you can specify which add-ins to
load at the beginning of each QuickTest session. It is recommended to load
only the QuickTest add-ins you need for a particular QuickTest session, as
this improves performance and object identification reliability. You can also
load QuickTest without add-in support if you want to test only standard
Windows-based objects.
29
Chapter 1 • Working with QuickTest Add-ins
Notes:
➤ If you plan to test your application in a Web browser, select Web as well
as your required add-in.
➤ If you want to test .NET Windows Forms, select .NET and click OK. A
message is displayed stating that for full operation of the .NET Add-in
you must also load the Web Add-in. If you want to test only .NET
Windows Forms (and not .NET Web Forms), you can click Yes.
➤ If you load or unload an add-in that is displayed as a child of the Java
add-in in the Add-in Manager, only applications that are opened after
loading or unloading the add-in are affected.
3 Click OK.
30
Chapter 1 • Working with QuickTest Add-ins
31
Chapter 1 • Working with QuickTest Add-ins
32
Chapter 1 • Working with QuickTest Add-ins
Item Description
License Lists the license used by the add-in, if any, and the time
remaining until a time-limited license expires:
➤ Licensed. Applies to the add-ins that are provided with
QuickTest Professional. Add-ins use the same license as
QuickTest Professional. Therefore, if QuickTest uses a
Permanent license, the add-ins use the same Permanent
license; if QuickTest uses a Time-Limited license, the
add-ins use the same Time-Limited license.
➤ Not Licensed. Applies to an add-in that does not have an
installed seat license or access to a concurrent license (for
example, if all concurrent licenses are currently in use, or
if the required add-in license is not installed on the
concurrent license server on your subnet). To load the
add-in, you first need to install or access a license.
➤ Time Remaining. Specifies the number of days and hours
remaining until a time-limited add-in license expires.
(Displayed only when using a QuickTest seat license—not
a concurrent license.)
For more information, see the HP QuickTest Professional
Installation Guide.
33
Chapter 1 • Working with QuickTest Add-ins
Item Description
Additional References
34
Chapter 1 • Working with QuickTest Add-ins
If there are add-ins associated with your test or with your component’s
application area that are not currently loaded, you can:
➤ close and reopen QuickTest, and select the required add-ins in the Add-in
Manager dialog box.
➤ remove the add-ins from the list of associated add-ins for your test or
component. To change the list of add-ins associated with your test or
component, select File > Settings and click Modify in the Properties pane.
If add-ins are loaded but not associated with your test or with your
component’s application area, you can:
➤ close and reopen QuickTest, and clear the check boxes for the add-ins in the
Add-in Manager dialog box, if they are not required.
➤ add the add-ins to the list of associated add-ins for your test or for your
component’s application area. To change the list of add-ins associated with
your test or component, select File > Settings and click Modify in the
Properties pane.
35
Chapter 1 • Working with QuickTest Add-ins
For example, you can choose to have QuickTest open a specific application
when you start a record or run session. You can set your record and run
options in the Record and Run Settings dialog box, or you can set the
options using environment variables.
➤ For general information on the Record and Run Settings dialog box, see
“Using the Record and Run Settings Dialog Box” on page 36.
➤ For more information on setting preferences for recording and running tests
on Windows-based applications, see “Setting Windows Applications Record
and Run Options” on page 45.
➤ For more information on setting browser preferences for recording and
running tests on Web-based environments, see “Setting Web Record and
Run Options” on page 76.
➤ For more information on setting preferences for recording and running tests
for other environments, see the relevant add-in chapter.
➤ For more information on setting preferences for recording and running tests
using environment variables, see “Using Environment Variables to Specify
the Record and Run Details for Your Test” on page 39.
You can instruct QuickTest to open and record on applications from more
than one environment.
36
Chapter 1 • Working with QuickTest Add-ins
The Record and Run Settings dialog box opens automatically each time you
begin recording a new test and saves your settings with the test unless you
open the dialog box (Automation > Record and Run Settings) and set your
preferences manually before you begin recording the first step in your test.
The Record and Run Settings dialog box does not open when you perform
additional record sessions on an existing test or when you run the test.
QuickTest automatically applies the settings already in the Record and Run
Settings dialog box for that test.
The Record and Run Settings dialog box always contains the Windows
Applications tab. It may contain other tabs corresponding to add-ins that
are loaded. For more information on which tab of the Record and Run
Settings dialog box you should use with an add-in, see the relevant add-in
chapter.
37
Chapter 1 • Working with QuickTest Add-ins
➤ For most Web-based add-in environments, you use the Web tab. For more
information, see “Setting Web Record and Run Options” on page 76.
For more information on setting preferences for recording and running tests
for other environments, see the relevant add-in chapter.
➤ The setting of the Active Screen capture level (Tools > Options > Active
Screen pane) can significantly affect the recording time for your test and the
functionality of the Active Screen while editing your test. Confirm that the
level selected answers your testing needs. For more information, see the
section on setting active screen options in the HP QuickTest Professional User
Guide.
➤ You can set record and run options such that no applications open at the
beginning of record and run sessions. In this case, you may need to open the
application after you open QuickTest to ensure that QuickTest recognizes
the application. For more information, see the relevant add-in chapter.
➤ If you define environment variables to specify the record and run details,
those values override the values in the Record and Run Settings dialog box.
For more information, see “Using Environment Variables to Specify the
Record and Run Details for Your Test” on page 39.
➤ After you set the record and run settings for a test, the Record and Run
settings dialog box will not open the next time you record operations in
that test. If needed, you open the Record and Run Settings dialog box by
choosing Automation > Record and Run Settings.
You should set or modify your record and run preferences in the following
scenarios:
➤ You have already recorded one or more steps in the test and you want to
modify the settings before you continue recording.
➤ You want to run the test on a different application than the one you
previously set in the Record and Run Settings dialog box.
If you change the record and run settings for additional recording sessions,
confirm that you return the settings to match the needs of the first step in
your test before you run it.
38
Chapter 1 • Working with QuickTest Add-ins
When you define an environment variable for one (or more) of the
application details, the environment variable values override any values that
were added using these areas of the Record and Run Settings dialog box.
Note: If you select the option to Record and Run on any application (the
upper radio button in each tab of the Record and Run Settings dialog box),
QuickTest ignores any defined record and run environment variables.
You can set your Record and Run settings manually while recording your
test and then define the environment variables or load the environment
variable file only when you are ready to run the test (as described in the
procedure below).
Alternatively, you can define environment variables before you record your
test. In this case, QuickTest uses these values to determine which
applications or browsers to open when you begin recording—assuming that
the option to open an application when starting record and run sessions for
the particular environment is selected. (This option corresponds to the
lower radio button in each tab of the Record and Run Settings dialog box,
and the third check box in the Windows Applications tab.)
39
Chapter 1 • Working with QuickTest Add-ins
Note: If you already have environment variables set for one or more
application details, and you select the option to open an application when
the record session begins (the lower radio button in each tab of the Record
and Run Settings dialog box), QuickTest ignores the record settings you
enter in the dialog box.
40
Chapter 1 • Working with QuickTest Add-ins
➤ For the variable names required to define the Web browser and URL to open,
see “Defining Record and Run Variables for a Web Environment” on
page 81.
➤ For the variable names required to define the details for Windows
applications on which you want to record and run tests, see “Defining
Record and Run Variables for a Windows-Based Environment” on page 59.
➤ For the variable names required to define the details corresponding to the
options in other tabs in the Record and Run Settings dialog box, see the
relevant add-in chapter in this guide.
➤ If the Add-in Manager does not open when you start QuickTest, click the
Options button or select Tools > Options and click the General node. Select
the Display Add-in Manager on startup check box and click OK. Restart
QuickTest.
➤ You can view the list of add-ins that are currently installed or loaded by
choosing Help > About QuickTest Professional. The dialog box displays a list
of all add-ins installed on your computer. A check mark indicates that the
add-in is currently loaded.
➤ You can enhance your tests and components using environment-specific
checkpoints and output values. For more information, see the sections
describing checkpoints and output values in the HP QuickTest Professional
User Guide and the HP QuickTest Professional for Business Process Testing User
Guide.
➤ You can add additional steps to your test using the Step Generator, or you
can add them manually from the Expert View. For more information on the
objects, methods, and properties available for your application’s
environment, see the HP QuickTest Professional Object Model Reference.
41
Chapter 1 • Working with QuickTest Add-ins
➤ When you run a QuickTest test from Quality Center, Quality Center
instructs QuickTest to load the add-ins that are associated with the test. If
you created the test in Quality Center (and not in QuickTest), the test
contains the settings specified in the template test you chose when creating
the test. If you need to modify the associated add-ins, you can do so by
opening the test in QuickTest. For more information, see the template test
section in the HP QuickTest Professional User Guide.
➤ Before you run a QuickTest test from Quality Center, make sure that the
required QuickTest add-ins are installed on the computer on which you
want to run the QuickTest test.
42
2
Testing Windows-Based Applications
This chapter describes how to set QuickTest record and run options for
testing Windows-based applications, and how to define record and run
variables for a Windows Environment. It also describes how you can specify
the Windows-based applications on which the components associated with
this application area can record and run.
43
Chapter 2 • Testing Windows-Based Applications
For additional details on how to work with Windows-based add-ins, see the
specific sections describing these add-ins in the guide:
44
Chapter 2 • Testing Windows-Based Applications
➤ “The Record and Run Settings Dialog Box: Windows Applications Tab” on
page 46
➤ “The Application Details Dialog Box” on page 52
➤ “Record and Run Setting Guidelines for Windows-Based Add-ins” on
page 56
Note: The Record and Run Settings dialog box applies only to tests. Record
settings for components are specified in the Applications pane or
Applications dialog box of the relevant application area. However, specific
record and run settings do not need to be defined for components. For more
information on the Applications pane and Applications dialog box, see the
HP QuickTest Professional for Business Process Testing User Guide.
45
Chapter 2 • Testing Windows-Based Applications
46
Chapter 2 • Testing Windows-Based Applications
47
Chapter 2 • Testing Windows-Based Applications
48
Chapter 2 • Testing Windows-Based Applications
Option Description
Record and run Instructs QuickTest to record all operations performed on any
test on any open Windows-based application that is opened while recording
Windows-based your test (including e-mail applications, file management
application applications, and so on). QuickTest records and runs only on
applications that have a user interface, and it does not matter
how the applications are opened (as child processes of
Windows Explorer, child processes of QuickTest, and so on).
When selecting this option, make sure that all the
applications on which you want to record are currently
closed. For some environments, QuickTest can recognize and/
or record on the applications that you open manually only
after you select this option and click OK. Instances of these
applications that are already open when the Record and Run
Settings dialog box opens may be ignored or may not be
recognized or recorded correctly.
49
Chapter 2 • Testing Windows-Based Applications
Option Description
Record and run Restricts record and run (and in some cases pointing hand)
only on operations to selected applications. Additionally, you can
configure whether QuickTest should open these applications
for you at the beginning of a record or run session. The
following options are available:
➤ Applications opened by QuickTest. This option records,
recognizes, and runs only on applications invoked by
QuickTest (as child processes of QuickTest). For example,
applications opened during a record or run session using a
SystemUtil.Run statement, or using a statement such as
Set shell = createobject("wscript.shell") : shell.run
"notepad".
➤ Applications opened via the Desktop (by the Windows
shell). This option records, recognizes, and runs only on
applications that are opened via the Windows Desktop.
For example, applications opened from the Windows Start
menu, by double-clicking executable files in the Windows
Explorer, by double-clicking a shortcut on the Windows
Desktop, or by clicking icons on the Quick Launch bar.
➤ Applications specified below. This option records,
recognizes, and runs only on applications listed in the
Application details area.
Tips:
➤ If you do not want to record on any Windows-based
applications, select only the Applications specified below
check box, and ensure that there are no applications listed
in the Application details area.
➤ Make sure that all the applications listed in the Application
details area are currently closed. For some environments,
QuickTest can record only on the instances of the specified
applications that are opened after you select this option
and click OK. Instances of these applications that are
already open when the Record and Run Settings dialog box
opens may be ignored or may not be recognized or
recorded correctly.
50
Chapter 2 • Testing Windows-Based Applications
Option Description
Additional References
Related Tasks ➤ “Using the Record and Run Settings Dialog Box”
on page 36
➤ “Defining Record and Run Variables for a
Windows-Based Environment” on page 59
51
Chapter 2 • Testing Windows-Based Applications
52
Chapter 2 • Testing Windows-Based Applications
53
Chapter 2 • Testing Windows-Based Applications
Working folder Optional. Specifies the current working folder for the
application. The current working folder is used by the
application to search for related files. If a working folder is not
specified, the executable folder is used as the working folder.
Note: This parameter is used only when Launch application is
selected. If Launch application is not selected, its value has no
effect.
54
Chapter 2 • Testing Windows-Based Applications
Option Description
Additional References
Related User Interface ➤ “The Record and Run Settings Dialog Box:
Topics Windows Applications Tab” on page 46
➤ “The Options Dialog Box: Windows
Applications Pane” on page 61
➤ “The Windows Applications > Advanced Pane”
on page 65
55
Chapter 2 • Testing Windows-Based Applications
There may also be additional issues that you need to address to ensure that
QuickTest recognizes your objects properly during record, run, and/or
pointing hand operations.
These special considerations are detailed below for each QuickTest add-in
that is affected by the settings in the Windows Applications tab of the
Record and Run Settings dialog box.
ActiveX ➤ If you select the Record and Run only on radio button,
the settings also apply to (limit) the applications that
are recognized for Object Spy and other pointing hand
operations.
➤ QuickTest recognizes ActiveX objects only in
applications that are opened after changing the
settings in the Windows Applications tab of the
Record and Run Settings dialog box.
56
Chapter 2 • Testing Windows-Based Applications
.NET Windows Forms If you select the Record and Run only on radio button,
the settings also apply to (limit) the applications that are
recognized for the .NET Windows Forms Spy, the Object
Spy, and other pointing hand operations.
PowerBuilder If you select the Record and Run only on radio button,
the settings also apply to (limit) the applications that are
recognized for Object Spy and other pointing hand
operations.
Standard Windows ➤ The Record and Run only on radio button applies only
to record and run sessions. QuickTest recognizes all
standard Windows objects for Object Spy and pointing
hand operations, regardless of the settings in the
Record and Run Settings dialog box.
➤ It is recommended that applications are opened after
changing the settings in the Windows Applications
tab of the Record and Run Settings dialog box.
57
Chapter 2 • Testing Windows-Based Applications
Visual Basic ➤ If you select the Record and Run only on radio button,
the settings may also apply to (limit) the applications
that are recognized for Object Spy and other pointing
hand operations.
➤ QuickTest recognizes Visual Basic objects only in
applications that are opened after changing the
settings in the Windows Applications tab of the
Record and Run Settings dialog box.
58
Chapter 2 • Testing Windows-Based Applications
Note: For more information on environment variables and how to use them
in tests, see “Using Environment Variables to Specify the Record and Run
Details for Your Test” on page 39.
59
Chapter 2 • Testing Windows-Based Applications
60
Chapter 2 • Testing Windows-Based Applications
How to Access Tools menu > Options dialog box > Windows
Applications node
61
Chapter 2 • Testing Windows-Based Applications
62
Chapter 2 • Testing Windows-Based Applications
Option Description
Attached text Enables you to specify the search criteria that QuickTest uses to
retrieve an object’s attached text. An object’s attached text is
the closest static text within a specified radius from a specified
point. The retrieved attached text is saved in the object’s
corresponding text or attached text identification property.
Note: Sometimes the static text that you believe to be closest to
an object is not actually the closest static text. You may need to
use trial and error to make sure that the attached text is the
static text object of your choice.
I
63
Chapter 2 • Testing Windows-Based Applications
Option Description
Record non- Determines what QuickTest records when more than one item
unique list (in a list or tree) has an identical name.
items ➤ by name. Records the item’s name.
During a run session, QuickTest finds and selects the first
instance of the name, regardless of the item chosen during
recording. Select this option if the all items with the same
name have identical properties.
➤ by index. Records the item’s index number.
➤ check boxes
➤ radio buttons
➤ objects
Additional References
64
Chapter 2 • Testing Windows-Based Applications
How to Access Tools menu > Options item > Windows Applications
node > Advanced node
65
Chapter 2 • Testing Windows-Based Applications
66
Chapter 2 • Testing Windows-Based Applications
Option Description
The Windows Applications > Advanced pane includes the following Record
settings options:
Category Option
67
Chapter 2 • Testing Windows-Based Applications
Category Option
68
Chapter 2 • Testing Windows-Based Applications
Category Option
69
Chapter 2 • Testing Windows-Based Applications
Category Option
70
Chapter 2 • Testing Windows-Based Applications
Category Option
71
Chapter 2 • Testing Windows-Based Applications
Option Description
Advanced Information
The following information is intended for users with expertise in the Win32
API and the Windows messages model. It expands on the information
provided for some of the Windows Applications > Advanced options in the
previous section.
You should select this option if there is a window in your application that
does not have a WS_CHILD style but does have a parent (not an owner)
window.
72
Chapter 2 • Testing Windows-Based Applications
➤ Standard. Uses the GetKeyboardState API to detect the keyboard state. For
more information, see http://msdn2.microsoft.com/en-us/library/
ms646299.aspx.
➤ Alternate synchronous. Uses the GetKeyState API to detect the keyboard
state. For more information, see http://msdn2.microsoft.com/en-us/library/
ms646301.aspx.
➤ Alternate asynchronous. Uses the GetAsyncKeyState API to detect the
keyboard state. For more information, see http://msdn2.microsoft.com/en-us/
library/ms646293.aspx.
73
Chapter 2 • Testing Windows-Based Applications
74
3
Testing Web-Based Applications
For additional details on how to work with Web-based add-ins, see the
specific sections describing these add-ins in the guide:
75
Chapter 3 • Testing Web-Based Applications
The options in the Web tab instruct QuickTest which applications to open
when you begin to record or run your test. You can instruct QuickTest to
open and record on applications from more than one environment. You can
create steps on more than one browser tab, if your browser supports tabbed
browsing.
In addition to setting the appropriate settings in the Web tab, you should
confirm that the other tabs in the dialog box have the appropriate settings.
76
Chapter 3 • Testing Web-Based Applications
➤ Windows Applications tab. Select Record and run only on: and confirm that
all three check boxes are cleared, as shown below.
➤ Other tabs. (If displayed.) Select the option to record and run on any open
application (upper radio button of each tab).
While these settings do not directly affect your record or run sessions when
working with Web-based applications, they prevent you from inadvertently
recording operations performed on Windows applications (such as e-mail)
during your recording session. These settings also prevent QuickTest from
opening unnecessary applications when you record or run tests on Web-
based applications.
77
Chapter 3 • Testing Web-Based Applications
Note: You can also use special, predefined environment variables to specify
the applications or browsers you want to use for your test. For more
information, see “Using Environment Variables to Specify the Record and
Run Details for Your Test” on page 39.
The Web tab is available only when the Web add-in is installed and loaded.
QuickTest uses the settings in this tab when recording and running tests or
components on Web, .NET Web Forms, PeopleSoft, and Web-based SAP
objects. (For Siebel objects, QuickTest uses the settings in the Siebel tab,
available when the Siebel add-in is installed and loaded.) For more
information, see “Setting Siebel Record and Run Options” on page 430.
78
Chapter 3 • Testing Web-Based Applications
Note: You can record tests only on Microsoft Internet Explorer browsers.
You can run tests on any supported browser (Microsoft Internet Explorer,
Netscape Browser, Mozilla Firefox). For information on supported browser
versions, see the HP QuickTest Professional Readme.
Option Description
Record and run test on Instructs QuickTest to record on any open Microsoft
any open browser Internet Explorer browser and run on any open
supported Web browser (see the HP QuickTest
Professional Readme for information on supported
browsers).
You must open the Web browser after you open
QuickTest.
Tip: You can instruct QuickTest to ignore
Quality Center browsers or other browsers that are
open to a specified URL or have a specific title. For
more information, see “Setting Web Testing Options”
on page 82.
79
Chapter 3 • Testing Web-Based Applications
Option Description
Open the following Instructs QuickTest to open the specified browser type
browser when a run when running a test:
session begins Notes:
➤ Only those browsers currently installed on your
computer are available in the list.
➤ If you define a value for the BROWSER_ENV
environment variable, that value overrides the
value specified here during a run session. For more
information, see “Defining Record and Run
Variables for a Web Environment” on page 81 and
“Using Environment Variables to Specify the Record
and Run Details for Your Test” on page 39.
Do not record and run Instructs QuickTest not to record or run tests on any
on browsers that are browsers that are already open prior to the start of the
already open record or run session (and prior to opening QuickTest).
Selecting this option also prevents you from viewing
the properties of these browsers using the Object Spy.
Close the browser when Instructs QuickTest to close the browser window
the test closes specified in the Address box when the test closes.
80
Chapter 3 • Testing Web-Based Applications
For more information on the Record and Run Settings dialog box, see
“Using the Record and Run Settings Dialog Box” on page 36.
Note: For more information on environment variables and how to use them
in tests, see “Using Environment Variables to Specify the Record and Run
Details for Your Test” on page 39.
To use environment variables to define the Web browser and URL to open,
you must use the appropriate variable names as specified below:
81
Chapter 3 • Testing Web-Based Applications
82
Chapter 3 • Testing Web-Based Applications
Option Description
Broken links - check only Instructs QuickTest to check only for broken links
links to current host that are targeted to your current host.
You can also modify how QuickTest displays captured Web pages in the
Active Screen. You do this in the Active Screen pane of the Options dialog
box (Tools > Options > Active Screen node). For more information, see the
section describing the Web Page Appearance dialog box in the HP QuickTest
Professional User Guide.
83
Chapter 3 • Testing Web-Based Applications
Notes: QuickTest ignores browsers that match the defined criteria at the
start of a record or run session. However, browsers that do not match the
defined criteria at the start of a record or run session, but do match them
during the session, are not ignored.
Changes made to these settings apply to new tests or components and new
steps in existing tests or components only, but not to any other existing
steps.
You can also modify the properties that QuickTest uses to identify the
browsers to ignore, or delete them from the list of ignored browsers.
Tip: By default, QuickTest ignores all instances of Quality Center that were
opened during a record or run session, if the Ignore Quality Center check
box in the Web pane of the Options dialog box is selected. There is no need
to specify Quality Center in the list of browsers to ignore.
84
Chapter 3 • Testing Web-Based Applications
Note: When working with tests, QuickTest ignores these browsers only if
you selected Record and run test on any open Web browser in the Web tab
of the Record and Run Settings dialog box. For more information, see
“Setting Web Record and Run Options” on page 76.
2 Enter a name for the browser definition in the Name field. By default, the
name of the browser is Browser<number of browser in list>. The name you
specify is used only to identify the browser in the list, and is not used by
QuickTest.
85
Chapter 3 • Testing Web-Based Applications
Tip: You can use regular expressions when specifying the values of these
properties. For example, you can use .*finance.yahoo.com to specify all
finance.yahoo.com domains and Web sites starting with www., http://, or
https://. Note that you do not have to use a regular expression to include
child pages of a site, as QuickTest automatically ignores the entire domain or
site. For information on supported regular expressions, see the HP QuickTest
Professional User Guide.
Note: The Title and URL properties have an AND relationship, meaning that
a browser must match both property values (if defined) to be ignored by
QuickTest.
86
Chapter 3 • Testing Web-Based Applications
Tip: If a browser in the list is required for running a specific test, you can
temporarily remove it from the list by clearing the check mark next to its
name in the list of browsers.
87
Chapter 3 • Testing Web-Based Applications
Note: You can click the Reset button at any time to reset all options to their
default core settings. Some add-ins modify the default settings to optimize
page and frame recording. If you are using an add-in, it is recommended
that you keep the default add-in settings and do not use the Reset button.
88
Chapter 3 • Testing Web-Based Applications
Page Options
The Create a new Page test object for options instruct QuickTest when to
create a new Page object in the object repository while recording.
Note: These options only affect how Page test objects are created; Frame test
objects are created according to the Frame options you select. The Frame
options are similar to the Page options (except that the Every navigation
option is not available).
Note: The default test object description for Page objects includes only the
test object class. If you select this option, it is highly recommended that you
define object identification properties that uniquely identify different Page
objects. You should also ensure that the properties you define remain
constant over time, otherwise future runs may fail.
➤ Different URLs or a change in data transfer. Creates a new Page object only
when the page URL changes, or if the URL stays the same and data that is
transferred to the server changes, according to the data types and transfer
methods you select (below).
89
Chapter 3 • Testing Web-Based Applications
➤ Ignore non user-input data - Get. Instructs QuickTest to ignore non user-
input data if the Get method is used to transfer data to the server.
For example, suppose a user enters data on a Web page, and the data is
then inserted as a hidden field using the Get method. The user clicks
Submit (to send the data to the server). The new Web page is different,
according to the hidden field data. However, QuickTest does not create a
new Page test object.
➤ Ignore non user-input data - Post. Instructs QuickTest to ignore non
user-input data if the Post method is used to transfer data to the server.
For example, suppose a user enters data on a Web page, and the data is
then inserted as a hidden field using the Post method. The user clicks
Submit (to send the data to the server). The new Web page is different,
according to the hidden field data. However, QuickTest does not create a
new Page test object.
➤ Ignore user-input data - Get. Instructs QuickTest to ignore user-input
data if the Get method is used to transfer data to the server.
For example, suppose a user enters data in a form on a Web page and
clicks Submit (to send the data to the server) using the Get method. The
new Web page is different according to the data filled in by the user.
However, QuickTest does not create a new Page test object.
➤ Ignore user-input data - Post. Instructs QuickTest to ignore user-input
data if the Post method is used to transfer data to the server.
For example, suppose a user enters data in a form on a Web page and
clicks Submit (to send the data to the server) using the Post method. The
new Web page is different according to the data filled in by the user.
However, QuickTest does not create a new Page test object.
➤ Use additional Page information. Instructs QuickTest to use additional
properties of the test object to identify an existing Page test object.
90
Chapter 3 • Testing Web-Based Applications
Frame Options
The Create a new Frame test object for options instruct QuickTest when to
create a new Frame object in the object repository while recording. The
Frame options are similar to the Page options (except that the Every
navigation option is not available). For more information, see “Page
Options” on page 89.
91
Chapter 3 • Testing Web-Based Applications
The Web > Advanced pane includes the following Accessibility checkpoint
options:
92
Chapter 3 • Testing Web-Based Applications
➤ Create a checkpoint for each Web page while recording. Instructs QuickTest
to automatically add a Page checkpoint for each Web page navigated during
the recording process.
Note: If you are testing a Web page with dynamic content, using automatic
Page checkpoints may cause the test to fail as these checkpoints assume that
the page content is static between record and run sessions.
93
Chapter 3 • Testing Web-Based Applications
All automatic Page checkpoints include the checks that you select from
among the following options:
➤ Broken links. Displays the number of broken links contained in the page
during the run session.
Note: If the Broken links - check only links to current host option is
selected (see “Setting Web Testing Options” on page 82), this number
includes only those broken links that are targeted to the current host.
➤ HTML source. Checks that the expected source code is identical to the
source code during the run session.
➤ HTML tags. Checks that the expected HTML tags in the source code are
identical to those in the run session.
➤ Image source. Checks that the expected source paths of the images are
identical to the sources in the run session.
➤ Links URL. Checks that the expected URL addresses for the links are
identical to the URL addresses in the source code during the run session.
➤ Load time. Checks that the expected time it takes for the page to load
during the run session is less than or equal to the amount of time it took
during the record session PLUS the amount of time specified in the Add
seconds to page load time option (see “Setting Web Testing Options” on
page 82).
➤ Number of images. Checks that the expected number of images is
identical to the number displayed in the run session.
➤ Number of links. Checks that the expected number of links is identical to
the number displayed in the run session.
94
Chapter 3 • Testing Web-Based Applications
Record Settings
You can set preferences for recording Web objects. The Web > Advanced
pane includes the following Record settings:
Note: After modifying this setting, for the change to take effect, you must
close all instances of Microsoft Windows Explorer (confirm that all
explorer.exe processes are closed in the Windows Task Manager or restart
the computer) and then restart QuickTest.
➤ Record coordinates. Records the actual coordinates relative to the object for
each operation.
➤ Record MouseDown and MouseUp as Click. Records a Click method for
MouseUp and MouseDown events.
➤ Record Navigate for all navigation operations. Records a Navigate statement
each time a Frame URL changes.
➤ Use standard Windows mouse events. Instructs QuickTest to use standard
Windows mouse events instead of browser events for the following events:
➤ OnClick
➤ OnMouseDown
➤ OnMouseUp
Note: Use this option only if the events are not properly recorded using
browser events.
95
Chapter 3 • Testing Web-Based Applications
If QuickTest does not record Web events in a way that matches your needs,
you can also configure the events you want to record for each type of Web
object. For example, if you want to record events, such as a mouseover that
opens a sub-menu, you may need to modify your Web event configuration
to recognize such events. For more information, see Chapter 38,
“Configuring Web Event Recording for Web Objects.”
Run Settings
You can set preferences for working with Web objects during a run session.
The Web > Advanced pane includes the following Run settings:
➤ Browser cleanup. Closes all open browsers when the current test or
component closes.
When this option is selected, all currently open browsers are closed when
the current test or component closes, regardless of whether the browsers
were opened before or after QuickTest.
➤ Run only click. Runs Click events using the MouseDown event, the MouseUp
event, and the Click event, or using only the Click event.
➤ Replay type. Configures how to run mouse operations according to the
selected option:
➤ Event. Runs mouse operations using browser events.
➤ Mouse. Runs mouse operations using the mouse.
96
Chapter 3 • Testing Web-Based Applications
➤ Run using source index. Uses the source index property for better
performance.
➤ Resize browser on run if resized during a recording session. If this option is
selected and you resize the browser during a recording session, QuickTest
resizes the browser to this size when a subsequent run session begins. At the
end of a run session, the browser returns to its default size. It is
recommended that you select this option if your test performs drag and
drop operations.
Note: To use this option, select the Open the following browser option in
the Record and Run Settings dialog box before recording.
When this option is cleared, QuickTest does not change the browser size
when a run session begins.
97
Chapter 3 • Testing Web-Based Applications
Note: The Web pane is available only if the Web Add-in is installed and
loaded.
98
Chapter 3 • Testing Web-Based Applications
Option Description
Browser navigation Sets the maximum time (in seconds) that QuickTest
timeout waits for a Web page to load before running a step in
the test.
Tip: In addition to the options in this pane, you can also configure the
events you want to record for each type of Web object. For example, if you
want to record events, such as moving the pointer over an object to open a
sub-menu, you may need to modify your Web event configuration to
recognize such events. For more information, see “Web Event Recording
Configurations” on page 103.
99
Chapter 3 • Testing Web-Based Applications
Note: The Web pane is available only if the Web Add-in is installed and
loaded.
100
Chapter 3 • Testing Web-Based Applications
Option Description
Browser navigation Sets the maximum time (in seconds) that QuickTest
timeout waits for a Web page to load before running a step in
the test or component.
101
Chapter 3 • Testing Web-Based Applications
You define the Web pane settings for a component in its associated
application area settings. For more information, see “Defining Web Settings
for Your Application Area” on page 100.
Note: The Web pane is available only if the Web Add-in is installed and
loaded.
102
Chapter 3 • Testing Web-Based Applications
Setting Description
Tip: In addition to the options in this tab, you can also configure the events
you want to record for each type of Web object. For example, if you want to
record events, such as moving the pointer over an object to open a
sub-menu, you may need to modify your Web event configuration to
recognize such events. For more information, see “Web Event Recording
Configurations” on page 103.
103
Chapter 3 • Testing Web-Based Applications
Each Web-based add-in has its own XML file that defines the Web-event
recording configuration for objects in that environment.
Note: For the purposes of Web event recording, QuickTest treats Web test
objects that are child objects of a PSFrame test object as PeopleSoft objects
and thus applies the settings in the PeopleSoft event configuration XML file
when recording those objects.
For more information, see Chapter 38, “Configuring Web Event Recording
for Web Objects.”
104
Chapter 3 • Testing Web-Based Applications
105
Chapter 3 • Testing Web-Based Applications
106
Part II
Standard Windows Testing Support
108
4
Using Standard Windows Testing Support
You can use the standard Windows testing support provided by QuickTest to
test objects (controls) developed using the Win32 API or MFC platforms.
QuickTest standard Windows testing support is built-in and does not require
you to load any QuickTest add-in. You can create and run tests and
components on these objects, as well as check their properties. You create
and run tests and components on standard Windows objects in your
applications in much the same way as you do for other Windows-based
applications.
Note: QuickTest also uses built-in standard Windows testing support and
standard Windows test objects to identify objects from other environments
if the relevant add-in is not installed and loaded.
109
Chapter 4 • Using Standard Windows Testing Support
General Information
Prerequisites
Opening Your You can open your standard Windows application before
Application or after opening QuickTest.
Standard Windows testing support is always loaded in
QuickTest. It is therefore not an available option in the
Add-in Manager.
Add-in None
Dependencies
Setting Preferences
110
Chapter 4 • Using Standard Windows Testing Support
111
Chapter 4 • Using Standard Windows Testing Support
112
Part III
The ActiveX Add-in
114
5
Using the ActiveX Add-in
You can use the QuickTest Professional ActiveX Add-in to test objects
(controls) in ActiveX applications. You can create and run tests and
components on these objects, as well as check their properties. You create
and run tests and components on ActiveX applications in much the same
way as you do for other Windows-based applications.
The ActiveX Add-in provides test objects, methods, and properties that can
be used when testing objects in ActiveX applications. For more information,
see the ActiveX section of the HP QuickTest Professional Object Model
Reference.
General Information
115
Chapter 5 • Using the ActiveX Add-in
Prerequisites
Add-in None
Dependencies
Setting Preferences
116
Chapter 5 • Using the ActiveX Add-in
117
Chapter 5 • Using the ActiveX Add-in
118
Part IV
The Delphi Add-in
120
6
Using the Delphi Add-in
You can use the QuickTest Professional Delphi Add-in to test objects in
Delphi applications. You can create and run tests and components on these
objects, as well as check their properties. You create and run tests and
components on Delphi applications in much the same way as you do for
other Windows-based applications.
The Delphi Add-in provides test objects, methods, and properties that can
be used when testing objects in Delphi applications. For more information,
see the Delphi section of the HP QuickTest Professional Object Model Reference.
The Delphi Add-in supports testing on Delphi controls created in the Delphi
IDE and based on the Win32 VCL library. For information on specific
versions, see the HP QuickTest Professional Readme.
121
Chapter 6 • Using the Delphi Add-in
General Information
Prerequisites
Opening Your You can open your Delphi application before or after
Application opening QuickTest.
Add-in None
Dependencies
Setting Preferences
122
Chapter 6 • Using the Delphi Add-in
123
Chapter 6 • Using the Delphi Add-in
If your application includes the TwwDBGrid from InfoPower, you must also
configure support for the grid.
124
Chapter 6 • Using the Delphi Add-in
125
Chapter 6 • Using the Delphi Add-in
You are now ready to create and run tests on Delphi applications.
126
Part V
The Java Add-in
128
7
Using the Java Add-in
You can use the QuickTest Professional Java Add-in to create and run tests or
components on Java applets and applications. You create and run tests or
components containing Java test objects in the same way as you create and
run any other test or component. You can run steps on Java objects in
Internet Explorer, Netscape Browser, Mozilla Firefox, Java Web Start, Applet
Viewer, and in standalone Java applications.
The Java Add-in records user operations on applets and applications, and on
the standard Java objects within them. For information on supported Java
toolkits and versions, see the Java section of the HP QuickTest Professional
Readme.
The Java Add-in provides customized Java test objects, methods, and
properties that can be used when testing objects in Java Add-in applications.
For more information, see the Java section of the HP QuickTest Professional
Object Model Reference.
Note: Java Add-in Extensibility enables you to develop support for testing
third-party and custom Java controls that are not supported out-of-the-box
by the QuickTest Professional Java Add-in. For more information, see the
Java Add-in Extensibility Help, available from the QuickTest Professional
Extensibility Documentation program group (Start > Programs >
QuickTest Professional > Extensibility > Documentation). A printer-friendly
(PDF) version of the HP QuickTest Professional Java Add-in Extensibility
Developer Guide is available in the <QuickTest Professional installation
folder>\help\Extensibility folder.
129
Chapter 7 • Using the Java Add-in
Prerequisites
Opening Your You can open your Java application before or after opening
Application QuickTest.
General Information
Setting Preferences
130
Chapter 7 • Using the Java Add-in
➤ After installing the Java Add-in, Java applets and applications will always
open with Java support active. You can confirm that your Java environment
has opened properly by checking the Java console for a message similar to
the following confirmation message: "Loading QuickTest Professional Java
Support (version x.x.x.x) (<App> version x.x.x.x)." (where <App> is IE, IBM, or
SUN).
➤ You can use the Object test object property to activate only public methods
and to retrieve only public properties. A recommended alternative to using
the Object property is to extend QuickTest support for the required Java
object using QuickTest Java Add-in Extensibility. For more information, see
the HP QuickTest Professional Java Add-in Extensibility Developer Guide.
131
Chapter 7 • Using the Java Add-in
132
Chapter 7 • Using the Java Add-in
After you install this patch, you can work with the QuickTest Professional
Java and/or Oracle Add-in and the WinRunner Java and/or Oracle
Add-in 7.6 on the same computer and also load them simultaneously.
Note: Do not install WinRunner Java or Oracle Add-in versions earlier than
version 7.6 on a QuickTest Professional computer.
133
Chapter 7 • Using the Java Add-in
134
8
Creating and Running Tests on Java
Objects
This chapter explains how to use QuickTest to set testing preferences and to
record and run steps on Java applets and applications. The chapter assumes
basic knowledge of QuickTest features and capabilities. For more
information on working with QuickTest, see the HP QuickTest Professional
User Guide.
Note: Some of the features described in this chapter are relevant only for
tests (and scripted components). For information on the features that are
available when working with business components, see the HP QuickTest
Professional for Business Process Testing User Guide.
135
Chapter 8 • Creating and Running Tests on Java Objects
How to Access Tools menu > Options item > Java node
Important Information The Java pane is available only when the Java or
Oracle Add-ins are installed and loaded. If you are
using the Oracle Add-in, and you add steps to your
test for Java objects within your Oracle application,
the options in this pane are relevant for the Java
steps in your test.
136
Chapter 8 • Creating and Running Tests on Java Objects
137
Chapter 8 • Creating and Running Tests on Java Objects
Option Description
Notes:
➤ If you select the By index option for Tree view, do not
specify "#" as the default separator in the Tree view
path separator option below.
➤ This option corresponds to the
Setting.Java("record_by_num") variable.
Search radius for Sets the maximum distance in pixels to search for
attached text attached text.
Default value: 100
Notes:
➤ This option is relevant only when the label
identification property is unavailable.
➤ This option corresponds to the
Setting.Java("max_text_distance") variable.
138
Chapter 8 • Creating and Running Tests on Java Objects
Option Description
Tree view path Specifies the default separator used to separate entries in a
separator path to a node of a Tree view control.
➤ Default value: ;
➤ Possible value: One or more single-character separators
Notes:
➤ If you enter more than one character, QuickTest treats
each of the characters as a separator (but not both of
them in sequence). If a path contains two consecutive
separators, QuickTest interprets the path as if it
contains a node with no name between the two
separators. For example, if you specify %$ for this
option and a particular path contains
MyNode%$MySubNode, then QuickTest treats the %
character as a separator for a node with no name, and
the $ character as the separator for an additional node
named MySubNode.
➤ If you select the By index option for Tree View in the
Record Items mode area above, do not specify "#" as
the default separator.
➤ This option corresponds to the
Setting.Java("treeview_path_separator") variable.
Advanced Opens the Advanced Java Options dialog box. For more
information, see “The Advanced Java Options Dialog Box”
on page 141.
139
Chapter 8 • Creating and Running Tests on Java Objects
Additional References
140
Chapter 8 • Creating and Running Tests on Java Objects
How to Access Tools menu > Options item > Java node > Advanced
button
Important Information If you are using the Oracle Add-in, and you add
steps to your test for Java objects within your Oracle
application, the options in this dialog box are
relevant for the Java steps in your test.
141
Chapter 8 • Creating and Running Tests on Java Objects
Option Description
JavaTable record Sets the record mode for table objects. Select one of the
mode following modes:
➤ Context Sensitive. (Default) Records operations on
table objects in context-sensitive mode: SetCellData,
SelectRow, and so on.
➤ Analog. Records only low-level (analog) table
methods: ClickCell, DoubleClickCell, and Drag.
142
Chapter 8 • Creating and Running Tests on Java Objects
Option Description
Checkpoint and Sets preferences for checkpoint and output value steps on
output value options Java objects. It contains the following option:
Enable retrieving text data from the Java run-time object:
Enables QuickTest to retrieve text information from the
Java objects in the application for checkpoints and
output value steps. This option is not relevant if
QuickTest is configured to use the OCR mechanism for
text recognition (Tools > Options > General > Text
Recognition pane).
Notes:
➤ Retrieving text information from the run-time object
is supported only for Java objects that meet very
specific criteria. Therefore, this option is disabled by
default.
➤ Text checkpoints and output values are not supported
for business components.
143
Chapter 8 • Creating and Running Tests on Java Objects
Option Description
Table cell controls Sets preferences for the way that QuickTest identifies
controls inside table cells. It includes the following
options:
➤ Controls to identify as separate test objects: Specifies
the list of controls that you want QuickTest to identify
as separate test objects and not as part of a JavaTable
object. Use this option to access methods that are
specific to the object type or to otherwise improve the
functionality of steps that QuickTest would normally
record and run as operations on a JavaTable object.
Notes:
➤ This option is relevant for JTable Swing toolkit
tables.
➤ Specify control class names separated by a space,
tab, newline, or return character. Values are case
sensitive.
➤ This option corresponds to the
Setting.Java("table_internal_editors_list") variable.
➤ Controls to treat as part of the JavaTable test object:
Specifies the list of controls for which you want
QuickTest to record and run JavaTable operations. Use
this option to record and run JavaTable operations
(such as SetCellData and Select) on controls that
QuickTest would normally treat as separate test
objects.
Notes:
➤ This option is relevant for JTable Swing toolkit
tables.
➤ Specify editor class names separated by a space, tab,
newline, or return character. Values are case
sensitive.
➤ This option corresponds to the
Setting.Java("table_external_editors_list") variable.
144
Chapter 8 • Creating and Running Tests on Java Objects
Additional References
Related Tasks “Defining Java Record and Run Options for Tests”
on page 152
Note: Specify editor class names separated by a space, tab, newline, or return
character. Values are case sensitive.
4 When you finish editing the value, click another location in the dialog box
to set the value.
145
Chapter 8 • Creating and Running Tests on Java Objects
5 When you finish making all of the required changes in this dialog box,
click OK and close the dialog box.
Notes:
➤ Your changes are not applied to the currently open test or component. To
apply your changes, close your test or component and reopen it.
➤ You can restore the default settings in the Advanced Java Options dialog
box by clicking the Reset button.
146
Chapter 8 • Creating and Running Tests on Java Objects
How to Access File menu > Settings item > Java node
Important Information ➤ The Java pane is available only when the Java or
Oracle Add-ins are installed and loaded. If you
are using the Oracle Add-in, and you add steps to
your test for Java objects within your Oracle
application, the options in this pane are relevant
for the Java steps in your test.
➤ If an application area is associated with the
business component, the Business Component
Settings dialog box displays in read-only the
options selected in the Application Area Settings
dialog box.
147
Chapter 8 • Creating and Running Tests on Java Objects
148
Chapter 8 • Creating and Running Tests on Java Objects
Option Description
149
Chapter 8 • Creating and Running Tests on Java Objects
Option Description
Notes:
➤ This option is relevant only if the Use Java API check
box is selected in the upper section of this dialog box,
or if the value of the Setting.Java("edit_replay_mode")
variable is set to S.
➤ This setting corresponds to the
Setting.Java("exclude_control_chars") variable.
150
Chapter 8 • Creating and Running Tests on Java Objects
Additional References
Related User Interface “The Options Dialog Box: Java Pane” on page 136
Topics
Related Tasks ➤ “Defining Java Record and Run Options for Tests”
on page 152
➤ “Defining Application Details Environment
Variables for Tests” on page 158
➤ “Optimizing Settings for Other Record and Run
Settings Dialog Box Tabs” on page 159
151
Chapter 8 • Creating and Running Tests on Java Objects
Note: Components do not require specific record and run settings to work
with Java applets and applications. To record a component, you need to first
open the Java applet or application manually. Alternatively, you can include
steps in your component that connect to the Java applet or application, for
example, you can include a step that contains the OpenApp operation.
When you begin recording a new component, the Applications dialog box
opens (unless you previously specified a Windows environment in the
Application Area Settings or Business Component Settings dialog box). Click
OK in the dialog box without making modifications to begin recording. For
more information on the Applications tab and Applications dialog box, see
“Setting Windows Applications Record and Run Options” on page 45.
152
Chapter 8 • Creating and Running Tests on Java Objects
153
Chapter 8 • Creating and Running Tests on Java Objects
154
Chapter 8 • Creating and Running Tests on Java Objects
Option Description
Record and run test on Instructs QuickTest to record and run the test on
any open Java application any open Java application or applet.
155
Chapter 8 • Creating and Running Tests on Java Objects
Option Description
156
Chapter 8 • Creating and Running Tests on Java Objects
Additional References
157
Chapter 8 • Creating and Running Tests on Java Objects
Use the variable names listed in the table below to define Java application
details:
158
Chapter 8 • Creating and Running Tests on Java Objects
➤ Windows Applications tab. Select Record and run only on and confirm that
all check boxes are cleared.
➤ Other tabs. (If displayed.) Select the option to record and run on any open
application (upper radio button of each tab).
While these settings do not directly affect your record or run sessions when
working with Java applets and applications, these settings prevent you from
inadvertently recording operations performed on Windows applications
(such as e-mail) during your recording session. These settings also prevent
QuickTest from opening unnecessary applications when you record or run
tests on Java applets and applications.
For more information on the Record and Run Settings dialog box, see “The
Record and Run Settings Dialog Box: Overview” on page 36.
159
Chapter 8 • Creating and Running Tests on Java Objects
Note: The way in which QuickTest records operations depends on the type
of JTable cell editor in the table cell. For more information, see “Recording
on Table Objects” on page 162.
Even though the object on which you record may be embedded in several
levels of objects, the recorded hierarchy does not include these objects. For
example, if the JavaList object on which you record is actually contained in
several JPanel objects, which are all contained in a JavaWindow, the
recorded hierarchy is only JavaWindow.JavaList.
160
Chapter 8 • Creating and Running Tests on Java Objects
For example, in a test, if you record a click on a Java check box, the Keyword
View may be displayed as follows:
In a component, if you record a click on this same Java check box, the
Keyword View would displayed as follows:
You can view the recorded hierarchy of a test object in the object repository.
You can access the full hierarchy of an object when using the pointing hand
mechanism in the Step Generator (tests only), when inserting a checkpoint
or output value step while recording, or when using the Object Spy.
161
Chapter 8 • Creating and Running Tests on Java Objects
Browser("Periodic").Page("Periodic").JavaWindow("CoolJava").JavaDialog("Set
Options").JavaCheckBox("MyCheckBox").Set "ON"
instead of:
Browser("Periodic").Page("Periodic").JavaWindow("CoolJava").JavaDialog("Set
Options").JavaTable("MyTable").SetCellData "ON"
162
Chapter 8 • Creating and Running Tests on Java Objects
To do this, use the Table cell controls > Controls to identify as separate test
objects option in the Advanced Java Options dialog box and specify specific
cell editor types that should always be treated as separate objects, and not as
part of a JavaTable object. Alternatively, use a Setting.Java
("table_internal_editors_list") statement. For more information, see “The
Advanced Java Options Dialog Box” on page 141, and the HP QuickTest
Professional Object Model Reference.
To find the toolkit class of a JTable cell editor using the Object Spy:
1 Open the table and activate a cell in the cell editor column. For example,
make sure the cursor is blinking inside an edit field or display the
drop-down list of a combo box.
2 With the appropriate cell activated, use the Object Spy to point to the active
cell. For information on using the Object Spy, see the HP QuickTest
Professional User Guide.
163
Chapter 8 • Creating and Running Tests on Java Objects
3 Make sure the Properties tab of the Object Spy is displayed and select the
Identification Properties radio button.
164
Chapter 8 • Creating and Running Tests on Java Objects
6 Copy and paste the value from the Object Spy to the Table cell controls >
Controls to identify as separate test objects option or your Setting.Java
("table_internal_editors_list") statement.
' Sample test to retrieve the toolkit class of a table cell editor
' that cannot be made continuously active
Set table = JavaWindow("TableDemo").JavaTable("Left table").Object
Set JTableCS = table.mic_get_supp_class()
Set comp = JTableCS.getComponentAt(table, 0, 6) ‘row 0, col 6
MsgBox comp.getClass().getName()
' Set the value of TABLE_EXTERNAL_EDITORS_LIST
Setting.Java("TABLE_EXTERNAL_EDITORS_LIST") =
comp.getClass().getName()
165
Chapter 8 • Creating and Running Tests on Java Objects
The Table Checkpoint Properties dialog box displays the range you select,
and also enables you to modify this range after the checkpoint is created.
166
Chapter 8 • Creating and Running Tests on Java Objects
If the object you want to work with does not have an appropriate
identification property, or, if for any other reason, the above
recommendation does not answer your needs (for example, the text before
or after the selected text is important), you can consider inserting a
QuickTest text checkpoint or text output value step for a Java object if it
meets the following criteria:
➤ The object must draw the text itself (and not delegate the drawing task to
the underlying operating system, as is the case with most AWT
components).
➤ The object must draw text by overriding the paint() method and calling the
standard graphics.drawString() method to draw text. For example, the
object cannot use special drawing methods for writing text, such as using a
method that can draw oval circles to draw the letter O.
➤ The object cannot use the double (image) buffering drawing technique.
Note: Because many Java objects do not answer these criteria, the text
checkpoint and text output mechanism for Java objects is disabled by
default. You can enable it in the Advanced Java Options dialog box. For
more information, see “The Advanced Java Options Dialog Box” on
page 141.
167
Chapter 8 • Creating and Running Tests on Java Objects
JavaApplet JavaObject
JavaButton JavaRadioButton
JavaCalendar JavaSlider
JavaCheckBox JavaSpin
JavaDialog JavaStaticText
JavaEdit JavaTab
JavaExpandBar JavaTable
JavaInternalFrame JavaToolbar
JavaLink JavaTree
JavaList JavaWindow
JavaMenu
Note: The Object Spy is not supported for SWT-based JavaMenu objects.
168
Chapter 8 • Creating and Running Tests on Java Objects
The full object hierarchy enables you to view associated operations and
properties of non-recorded objects in the Object Spy. When working with
tests, you can also access non-recorded objects from the Object Selection
dialog box that opens when using the Step Generator (tests only) or when
inserting a checkpoint or output value step during a recording session.
The Object Spy and Object Selection dialog boxes enable you to view details,
insert statements, or perform operations even for elements of an object
(class components) that are not recorded, such as java.awt.Component.
For example, you can access the edit box, drop-down list, and button
elements of a combo box.
For more information on the Object Spy and Object Selection dialog boxes,
see the HP QuickTest Professional User Guide.
169
Chapter 8 • Creating and Running Tests on Java Objects
170
9
Using Advanced Java Test Object Methods
Java test object classes include test object methods that you can use in your
tests to enhance the interaction between QuickTest and the application
being tested.
You can activate the methods of an object you create in the same way as you
would activate the methods of any returned object from a prior call. Because
the CreateObject method returns an object reference, there is no need to use
the Object property when activating methods of the created object.
171
Chapter 9 • Using Advanced Java Test Object Methods
For example, you can use the CreateObject method to create a rectangle
object. The return value is an object reference.
Set Rect =
Browser("Periodic").Page("Periodic").JavaApplet("Periodic").JavaObject
("Panel").CreateObject ("java.awt.Rectangle", 10, 20)
Note: The CreateObject method can be performed on any Java test object.
The class loader of the Java test object on which the CreateObject method is
performed is used to load the class of the newly created Java object.
Browser("Browser").Page("Page").JavaApplet("mybuttonapplet.htm").
JavaObject("MyButton").GetStatics("java.lang.System").gc
172
Chapter 9 • Using Advanced Java Test Object Methods
To retrieve the value of the out property of the java.lang.System class, you
can insert a statement similar to the following:
Set OutStream=
Browser("Browser").Page("Page").JavaApplet("mybuttonapplet.htm").
JavaObject("MyButton").GetStatics("java.lang.System").out
To print a message to the Java console, you can insert a statement similar to
the following:
Set OutStream=
Browser("Browser").Page("Page").JavaApplet("mybuttonapplet.htm").
JavaObject("MyButton").GetStatics("java.lang.System").out
OutStream.println "Hello, World!"
For example, you can use the FireEvent method to fire a MouseClick event
on the JavaObject called MyButton_0.
Browser("Browser").Page("Page").Applet("mybuttonapplet.htm").JavaObject
("MyButton_0").FireEvent micMouseClick, 0, "BUTTON1_MASK", 4, 4, 1, "OFF"
173
Chapter 9 • Using Advanced Java Test Object Methods
Alternatively, you can use the FireEventEx method to fire the same event as
follows:
Browser("Browser").Page("Page").Applet("mybuttonapplet.htm").JavaObject
("MyButton_0").FireEventEx "java.awt.event.MouseEvent",
"MOUSE_CLICKED", 0, "BUTTON1_MASK", 4,4, 1, "False"
Note that you can pass any Java constant that is used as one of the event’s
constructor parameters using its string, rather than its value. In the example
above, the "java.awt.event.MouseEvent" Java constant MOUSE_CLICKED is
supplied as a string argument instead of its value (500 in this example).
174
10
Troubleshooting Testing Java Applets and
Applications
175
Chapter 10 • Troubleshooting Testing Java Applets and Applications
Indicator Solution
You cannot record or run Make sure that the Java Add-in is loaded with
tests on Java applets or QuickTest. To check this, select Help > About
applications, or the Object QuickTest Professional and verify that the Java
Spy identifies Java objects Add-in check box is selected.
as Standard Windows You load the Java Add-in using the Add-in Manager.
objects. For more information, see “Loading QuickTest
Add-ins” on page 28.
The Java console does not Check that the settings in your environment
display a line containing correspond to the environment settings defined in
text similar to "Loading this chapter, or check for a batch file that may
Java Support". override the settings.
For more information, see:
➤ “Checking Java Environment Variables Settings”
on page 178.
➤ “Locating the Java Console” on page 179.
A different applet or First check whether you can record and run tests if
application works with the you invoke the other Java applet or application
QuickTest Professional using exactly the same settings.
Java Add-in, but the Check that the settings in your environment
application you want to correspond to the environment settings defined in
test does not work. this chapter, or check for a batch file that may
override the settings.
For more information, see:
➤ “Running an Application or Applet with the
Same Settings” on page 182.
➤ “Checking Java Environment Variables Settings”
on page 178.
176
Chapter 10 • Troubleshooting Testing Java Applets and Applications
Indicator Solution
The add-in does not Either remove the -Xincgc option, or run without
function properly with dynamic transformation support.
applications that run with For more information, see:
the -Xincgc option.
➤ “Running the Java Add-in on Multiple
Environments” on page 182.
➤ “Disabling Dynamic Transformation Support
(Advanced)” on page 184.
Your Java console contains Check that the jvmhook.dll is located within your
the line: Could not find java.library.path For more information, see
-Xrun library: jvmhook.dll. “Running the Java Add-in on Multiple
Environments” on page 182.
If, after reviewing the above indicators and solutions, you are still unable to
record and run tests on your Java applet or application, see the HP Software
Support Web site.
177
Chapter 10 • Troubleshooting Testing Java Applets and Applications
The above settings should appear on one line (no newline separators).
Note: <program_files> denotes the short path of the Program Files folder.
For example, if the Program Files folder is located in C:\Program Files, then
the value for -Xbootclasspath is as follows:
-Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;
C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
Tip: If needed, you can temporarily remove Java support by renaming the
_JAVA_OPTIONS or IBM_JAVA_OPTIONS environment variable. (If you are
working with Java 6, you need to rename the JAVA_TOOL_OPTIONS
environment variable as well.) For example, you must remove Java support
if you want to test ActiveX controls that are embedded in SWT- or Eclipse-
based applications.
178
Chapter 10 • Troubleshooting Testing Java Applets and Applications
If you are working with Sun Java 6 (version 1.6), you must set an additional
environment variable, JAVA_TOOL_OPTIONS, with the following value:
-agentlib:jvmhook
Mozilla Firefox
Mozilla Firefox uses the Java 2, Java 5, or Java 6 Virtual Machine as an
external plug-in. For more information, see “Sun Java 2 or Later (Version 1.2
or Later) or IBM Java 2 or Later (Version 1.2 or Later)” on page 178.
➤ a standalone application
➤ run in an applet viewer
➤ an applet run in Microsoft Internet Explorer, Netscape Browser, or Mozilla
Firefox
179
Chapter 10 • Troubleshooting Testing Java Applets and Applications
Note: java.exe and javaw.exe are nearly identical, as are jre.exe and
jrew.exe. The only difference between them is whether they launch a
console window.
180
Chapter 10 • Troubleshooting Testing Java Applets and Applications
If you do not see the Java (plug-in) icon in your taskbar tray, select Start >
Settings > Control Panel and double-click the Java icon or option (select the
Java version used by your application). Then, in the displayed dialog box,
select the option to show the Java console (for example, Show console). Note
that the actual name of the option, and its location in the dialog box,
depend on the Java version used by your application.) Confirm the change
(for example, by clicking Apply). Restart the browser.
Note: To find out whether your Microsoft Internet Explorer works with the
Sun Java plug-in, select Tools > Internet Options > Advanced. Under Java
(Sun) verify that Use Java is selected. Java plug-in version 1.3 or later
automatically configures Internet Explorer to work with the Sun Java
plug-in.
➤ If your applet runs using the Microsoft Internet Explorer internal Virtual
Machine:
In Microsoft Internet Explorer, select Tools > Internet Options. In the
Advanced tab, look for Microsoft VM. Select Java console enabled (requires
restart) and click OK. Restart the browser and invoke your application.
Select View > Java Console.
➤ If your applet runs in Mozilla Firefox:
In Mozilla Firefox, select Tools > Java Console.
If you do not see the Java Console option in the Tools menu, install the
Open Java Console extension from https://addons.mozilla.org/firefox/141/.
This extension provides the menu option on the Tools menu for opening
the Java Console from Mozilla Firefox. It also provides a toolbar button in
the JavaScript Console for opening Java Console.
181
Chapter 10 • Troubleshooting Testing Java Applets and Applications
Note: If the classpath must also be changed, add only the new items needed.
Do not remove any of the items from the original application or applet
classpath.
182
Chapter 10 • Troubleshooting Testing Java Applets and Applications
When you run the Java Add-in on Java 6 environments, the dynamic
transformation support mechanism is invoked by the -agentlib:jvmhook,
which is defined in the JAVA_TOOL_OPTIONS environment variable.
183
Chapter 10 • Troubleshooting Testing Java Applets and Applications
Note: If the ClassesDumpFolder string value already exists, you can modify
its value data to an existing folder on your computer.
184
Chapter 10 • Troubleshooting Testing Java Applets and Applications
2 If you are using the -Xincgc option, temporarily remove it from the
command line to enable the JVM hook profiler to transform and save the
necessary classes.
3 Launch your applet or application and perform some basic operations on it.
This ensures that all of the necessary classes are transformed and saved.
Close your applet or application. All of the dynamically transformed classes
are now saved in the folder you specified in the previous step (for example,
C:\JavaSupportClasses).
4 If you temporarily removed the -Xincgc option from the command line in
step 2, you can restore it now.
Now that you have saved the transformed classes, you are ready to disable
dynamic transformation support.
185
Chapter 10 • Troubleshooting Testing Java Applets and Applications
186
Part VI
The .NET Add-in
188
11
Testing .NET Windows Forms Applications
You can use the QuickTest Professional .NET Add-in to test objects in .NET
Windows Forms applications. You can create and run tests and components
on these objects, as well as check their properties. You create and run tests
and components on .NET Windows Forms applications in much the same
way as you do for other Windows-based applications.
The .NET Add-in provides test objects, methods, and properties that can be
used when testing objects in .NET Windows Forms applications. For more
information, see the .NET Windows Forms section of the HP QuickTest
Professional Object Model Reference.
You can also test most custom .NET controls inherited from the
System.Windows.Forms.Control regardless of which language was used to
create the application (for example, VisualBasic .NET, C#, and so on).
189
Chapter 11 • Testing .NET Windows Forms Applications
General Information
Add-in Type The .NET Windows Forms testing support functions like a
Windows-based add-in. Much of its functionality is the
same as other Windows-based add-ins.
See “Testing Windows-Based Applications” on page 43.
Prerequisites
Opening Your You can open your .NET Windows Forms application
Application before or after opening QuickTest.
190
Chapter 11 • Testing .NET Windows Forms Applications
Setting Preferences
191
Chapter 11 • Testing .NET Windows Forms Applications
For tables with more than 100 rows, you can specify the rows you want to
include in the checkpoint or output value in the Define Row Range dialog
box. If you do not specify the rows to include, the table checkpoint or
output value captures all data in the current level or view as follows:
Microsoft Data Grid and The currently displayed table (parent or child).
DataGrid View
192
Chapter 11 • Testing .NET Windows Forms Applications
Notes:
For a list of supported .NET Windows Forms grid control versions, see the
HP QuickTest Professional Readme.
.NET Windows Forms table checkpoints and output value steps can be
created only for objects that QuickTest recognizes as SwfTable objects.
QuickTest does not treat SwfPropertyGrid test objects as table objects.
193
Chapter 11 • Testing .NET Windows Forms Applications
For example, you can set the focus to a particular button and change its
caption using statements similar to the following:
The Object property is also useful for verifying the value of properties that
are not available using a standard checkpoint.
When you use the Object property to retrieve arrays of structures, the Object
property returns the COM wrapper of the system.array object. In your
VBScript test or component steps, you can then use the system.array object
to access the array members.
SwfWindow("Form1").SwfButton("button1").Object.PointArray.GetValue1(0)
If the same object had an IntArray property, which was an array of integers,
you would use the following expression to access the first item in the
IntArray property:
SwfWindow("Form1").SwfButton("button1").Object.IntArray(0)
194
Chapter 11 • Testing .NET Windows Forms Applications
You can use the .NET Windows Forms Spy to help you develop extensibility
for .NET Windows Forms controls.
The .NET Windows Forms Spy is intended for advanced QuickTest users,
especially those who are using .NET Add-in Extensibility to create support
for custom .NET Windows Forms controls. The .NET Windows Forms Spy
can assist you in examining .NET Windows Forms controls within your
application and seeing which events cause it to change (to facilitate
recording and running) and how the changes manifest themselves in the
control’s state.
Note: The .NET Windows Forms Spy runs in the context of your .NET
application, not in the QuickTest context. The objects and run-time object
properties on which you are spying are the raw .NET controls in your
application, and not the .NET test objects used in QuickTest. Since the .NET
Windows Forms Spy runs in the context of your .NET application, you can
close QuickTest while you use the .NET Windows Forms Spy. However,
QuickTest must be open if you want to use the pointing hand mechanism to
spy on additional objects. If you close the .NET application on which you
are spying, the QuickTest .NET Windows Forms Spy window is closed
automatically.
195
Chapter 11 • Testing .NET Windows Forms Applications
196
Chapter 11 • Testing .NET Windows Forms Applications
4 In the QuickTest .NET Windows Forms Spy window, click the pointing
hand. Both QuickTest and the .NET Windows Forms Spy are minimized so
that you can point to, and click on, any object in the open application.
For more information on using the pointing hand feature, see “Tips for
Working with the Pointing Hand” on page 199.
5 Click the object whose properties you want to view. If the location you
clicked in your application is associated with more than one object, the
Object Selection dialog box opens. The objects associated with the location
you clicked are displayed in hierarchical order.
6 Select the .NET Windows Forms object on which you want to spy and click
OK. The QuickTest .NET Windows Forms Spy window opens showing the
properties and values for the selected object.
197
Chapter 11 • Testing .NET Windows Forms Applications
The QuickTest .NET Windows Forms Spy window includes the following:
Item Description
Pointing hand button Enables you to select a .NET Windows Forms object on
which to spy. You can spy on as many objects within a
single .NET application as you want. Each object that
you select is added to the Objects pane.
Note: If you select an object from a different .NET
application, an additional QuickTest .NET Windows
Forms Spy window opens, showing the information for
the selected object.
status bar Displays the class name of the object that is selected in
the Objects pane, and the event handling status.
7 You can repeat steps 4 to 6 to spy on additional objects and add them to the
Objects pane in the QuickTest .NET Windows Forms Spy window.
Note: QuickTest must be open if you want to use the pointing hand
mechanism to spy on additional objects.
You can now view and modify values of the run-time object’s properties. In
addition, you can view, listen to, and fire events on the object.
198
Chapter 11 • Testing .NET Windows Forms Applications
199
Chapter 11 • Testing .NET Windows Forms Applications
The Objects pane also contains any embedded objects that you added from
the Properties tab. Each time you add an embedded object to the Objects
pane, it is added below its parent object, in a hierarchical format. For more
information on viewing properties for embedded objects, see “Working with
the Properties Tab” on page 201.
You can select an object in the Objects pane and view or modify its
properties and property values, and listen to and fire its events.
You can remove objects from the Objects pane if you no longer need them.
You cannot delete the last remaining parent object from the Objects pane.
When you remove an object, its descendants (if any) are also removed.
200
Chapter 11 • Testing .NET Windows Forms Applications
You can change property values in the .NET Windows Forms Spy and apply
those changes to your .NET application in run-time.
You can also add embedded objects from the Properties tab to the Objects
pane to view their properties.
201
Chapter 11 • Testing .NET Windows Forms Applications
Note: Any changes you make to the values of run-time object properties in
the .NET application remain in effect only for the current instance of the
.NET application. The next time you run the .NET application, the
properties will return to their original run-time values.
202
Chapter 11 • Testing .NET Windows Forms Applications
Note: The Add Selected Property button is disabled if the property’s value is
null, or the property is an object with no properties of its own.
➤ Categorized. Lists all properties and property values for the selected object,
by category. Categories are listed alphabetically. You can collapse a category
to reduce the number of visible properties. When you expand or collapse a
category, a plus (+) or minus (-) is displayed to the left of the category name.
➤ Alphabetical. Alphabetically sorts all run-time object properties for the
selected object.
203
Chapter 11 • Testing .NET Windows Forms Applications
This is especially useful if you are using .NET Add-in Extensibility to create
support for custom .NET Windows Forms controls. You can see which events
cause your .NET application to change, so you can implement extensibility
for recording operations on specific controls, and also check which events
need to be fired to make your .NET application behave the way you want.
204
Chapter 11 • Testing .NET Windows Forms Applications
Note: The events that you select affect only the events that are listened to
and logged by QuickTest. If you select or clear a check box for an event type
after listening to events for an object, the events in the Fired Events list are
not changed.
Tip: You can click the Select All Events or Clear All Events buttons to select
or clear all the event check boxes. You can also right-click the Events list and
select Select All or Clear All.
3 Click the Listen to Selected Events button. QuickTest starts listening to the
specified events on the selected object, and Listening is displayed in the
status bar.
4 In your .NET application, perform the operations on the object to whose
events you want to listen. The specified events are logged as they occur and
are shown in the Fired Events list.
5 When you want to stop listening to events, click the Stop Listening to
Events button. QuickTest stops listening to and logging the specified events.
205
Chapter 11 • Testing .NET Windows Forms Applications
Tip: The selected events are fired in the order in which they appear in the
Fired Events list. If the events do not appear in the Fired Events list in the
order in which you want to fire them, listen to more events on the object
until the events you want are added to the Fired Events list in the required
order.
3 If the events you selected have editable arguments, you can change their
argument values in the Event Arguments list if needed before firing the
events. When the events are fired, they will be fired with the modified
argument values.
4 Click the Fire Selected Events button. The selected events are fired in the
order in which they appear in the Fired Events list. You can view the effect
that firing these events has on the relevant object in your .NET application.
The status bar displays that the event firing is in progress, and when it ends.
206
12
Using the Windows Presentation
Foundation Add-in
You can use the QuickTest WPF Add-in to test objects in WPF (Windows
Presentation Foundation) applications. You can create and run tests and
components on these objects, as well as check their properties. You create
and run tests and components on WPF applications in much the same way
as you do for other Windows-based applications.
The WPF Add-in provides test objects, methods, and properties that can be
used when testing objects in WPF applications. For more information, see
the NET Windows Presentation Foundation section of the HP QuickTest
Professional Object Model Reference.
207
Chapter 12 • Using the Windows Presentation Foundation Add-in
General Information
Prerequisites
Opening Your You can open your WPF application before or after
Application opening QuickTest.
Setting Preferences
208
Chapter 12 • Using the Windows Presentation Foundation Add-in
209
Chapter 12 • Using the Windows Presentation Foundation Add-in
Automation Elements
UI Automation exposes every element in the UI as an Automation Element.
Automation Elements expose common properties of the UI elements they
represent.
Control Patterns
Control patterns represent discrete pieces of functionality that a control in
the UI can perform. The total set of control patterns for a control type define
the functionality of that control type.
210
Chapter 12 • Using the Windows Presentation Foundation Add-in
Some controls types, such as Image controls do not support any control
patterns.
211
Chapter 12 • Using the Windows Presentation Foundation Add-in
212
Chapter 12 • Using the Windows Presentation Foundation Add-in
Note: Because WPF Automation Elements of the same control type may
support a different set of control patterns, the test object methods or
properties that QuickTest supports for a specific test object may be different
from the standard set of methods and properties listed in the NET Windows
Presentation Foundation section of the HP QuickTest Professional Object
Model Reference. For example, although the WpfButton test object generally
does not support the Set method, QuickTest may record a Set step when
clicking a toggle button if the control pattern that was activated during the
record session corresponds to the Set method.
213
Chapter 12 • Using the Windows Presentation Foundation Add-in
214
13
Testing .NET Web Forms Applications
You can use the .NET Add-in to test objects in .NET Web Forms applications.
You can create and run tests and components on these objects, as well as
check their properties. You create and run tests and components on .NET
Web Forms applications in much the same way as you do for other Web-
based applications.
The .NET Add-in provides test objects, methods, and properties that can be
used when testing objects in .NET Web Forms applications. For more
information, see the .NET Web Forms section of the HP QuickTest
Professional Object Model Reference.
Note: You can use Web Add-in Extensibility to develop support for testing
third-party and custom .NET Web Forms controls that are not supported
out-of-the-box by the QuickTest Professional .NET Add-in. For more
information, see the HP QuickTest Professional Web Add-in Extensibility
Developer Guide, available from the QuickTest Professional Extensibility
Documentation program group (Start > Programs > QuickTest Professional >
Extensibility > Documentation).
215
Chapter 13 • Testing .NET Web Forms Applications
General Information
Add-in Type The .NET Add-in functions like a Web-based add-in when
testing .NET Web Forms controls. Much of its functionality
is the same as other Web-based add-ins.
See “Testing Web-Based Applications” on page 75.
Prerequisites
Opening Your You must open QuickTest and set the Record and Run
Application options before opening your .NET Web Forms application.
Open your application only after you begin the recording
session.
Setting Preferences
216
Chapter 13 • Testing .NET Web Forms Applications
➤ When QuickTest learns .NET Web Forms objects, it does not learn the HTML
elements that comprise the test objects. For example, when QuickTest learns
the WbfGrid test object, the WbfGrid object is the bottommost object in the
hierarchy, and the HTML elements used to create the grid’s cells are not
learned.
➤ When you load the .NET Add-in, the Web event recording configurations
designed for this add-in are loaded and are used whenever you record on a
.NET Web Forms object. The.NET Web Forms Web event recording
configurations do not affect the way QuickTest behaves when you record on
other non-.NET Web Forms Web objects. For more information, see “Web
Event Recording Configurations” on page 103.
➤ For more information on QuickTest functionality, see the HP QuickTest
Professional User Guide and the HP QuickTest Professional for Business Process
Testing User Guide.
217
Chapter 13 • Testing .NET Web Forms Applications
MsgBox Browser("WebControls:").Page("Page").WbfTabStrip("WbfTabStrip").
Object.Orientation
The Object property is also useful for verifying the value of properties that
are not available using a standard checkpoint.
For more information on the Object property and for information on .NET
Web Forms test objects, methods, and properties see the .NET Web Forms
section of the HP QuickTest Professional Object Model Reference.
218
Part VII
The Oracle Add-in
220
14
Using the Oracle Add-in
You can use the QuickTest Professional Oracle Add-in to test objects
(controls) in Oracle applications. You can create and run tests and
components on these objects, as well as check their properties. You create
and run tests and components on Oracle applications in much the same
way as you create and run any other test or component.
The Oracle Add-in provides test objects, methods, and properties that can be
used when testing objects in Oracle applications. For more information, see
the Oracle section of the HP QuickTest Professional Object Model Reference.
221
Chapter 14 • Using the Oracle Add-in
Prerequisites
Opening Your You can open your Oracle application before or after
Application opening QuickTest.
General Information
Setting Preferences
Options Dialog Box Use the Java pane if your Oracle test or component
includes Java test objects.
(Tools > Options > Java node)
See “The Options Dialog Box: Java Pane” on page 136
222
Chapter 14 • Using the Oracle Add-in
Application Area ➤ Use the Web pane if your test includes Web test objects.
Settings Dialog Box (File > Settings)
(components only) See “Defining Web Settings for Your Application Area”
on page 100
➤ Use the Java pane if your Oracle test or component
includes Java test objects. (File > Settings)
See “The Settings Dialog Box: Java Pane” on page 147
(The options shown in the Java pane of the Test Settings
dialog box are the same options that are available in the
Application Area Settings dialog box.)
Note: The QuickTest Professional Oracle Add-in supports only Oracle clients
that are Java-based. Oracle Developer/2000 is not supported.
223
Chapter 14 • Using the Oracle Add-in
➤ Before using the Oracle Add-in to test Oracle Applications, you must first
enable the Name attribute supplied by the Oracle Applications server. For
more information, see “Enabling the Oracle Name Attribute” on page 225.
➤ The Oracle Applications server supplies a unique Name attribute for many
application objects. You can also find the Oracle Applications server Name
attribute in the Oracle Add-in developer name identification property. The
developer name identification property is used by QuickTest in most test
object descriptions to identify Oracle objects.
➤ In QuickTest, table data is always loaded from the application itself, even if
the Active Screen contains an image of the table. For this reason, you must
first open the table in the application before creating a table checkpoint in a
test.
➤ In some cases you may have to scroll to the last row of the table to make
sure that all the data is loaded.
➤ If the table object is not open in your application when you create the
checkpoint, the Table Checkpoint Properties dialog box contains only
the Properties tab, and the option to select which type of information to
check (content or properties) is disabled.
➤ It is not necessary to open the table in your application to edit an
existing table checkpoint.
➤ For more information on QuickTest functionality, see the HP QuickTest
Professional User Guide and the HP QuickTest Professional for Business Process
Testing User Guide.
224
Chapter 14 • Using the Oracle Add-in
If the developer name value is empty, then the server does not supply
unique Name attributes. To use the Oracle Add-in to test Oracle
Applications, your Oracle server must supply unique Name attributes.
Your Oracle server administrator can assist you in enabling unique Name
attributes.
225
Chapter 14 • Using the Oracle Add-in
To enable the Name attribute when using HTML to launch the Oracle
application:
1 In the startup HTML file that is used to launch the application, locate the
line: <PARAM name="serverArgs ............ fndnam= APPS">
2 Add the Oracle key: record=names.
For example:
<PARAM name="serverArgs" value="module=f:\FNDSCSGN userid=XYZ
fndnam=apps record=names">
To enable the Name attribute when using the Personal Home Page to
launch your Forms 6 application:
Set up the following system profile option at (your) user level to enable the
Name attribute:
4 Copy the value from the Site box of the ICX: Forms Launcher profile and
paste it in the User box. Add &play=&record=names to the end of the URL in
the User box.
5 Save your transaction.
6 Sign on again using your user name.
Note: If the ICX: Forms Launcher profile option is not updatable at the user
level, access Application Developer and select the Updatable check box for
the ICX_FORMS_LAUNCHER profile.
226
15
Troubleshooting Testing Oracle
Applications
This chapter is intended to help pinpoint and resolve problems that may
occur when testing Oracle applications.
227
Chapter 15 • Troubleshooting Testing Oracle Applications
Indicator Solution
You cannot record or run Ensure that the Oracle Add-in is loaded. For more
tests on Oracle information, see “Loading QuickTest Add-ins” on
Applications. page 28.
The Java console does not Check that the settings in your environment
display a line containing correspond to the environment settings defined in
the text similar to: this chapter, or check for a batch file that may
Loading Oracle Support. override the settings.
For more information, see:
➤ “Checking Oracle Environment Settings” on
page 229.
➤ “Locating the Java Console” on page 229.
Your Java console contains Check that you have jvmhook.dll in your system
the line Could not find – folder (WINNT\system32 or windows\system).
Xrun library: jvmhook.dll.
You cannot use QuickTest The version of Oracle JInitiator 1.1.X on which your
to record on Oracle Oracle Application runs must be installed before
Applications running on you install the QuickTest Professional Oracle
Oracle JInitiator versions Add-in.
1.1.X. If you installed Oracle JInitiator versions 1.1.X on
your computer after you installed the Oracle
Add-in, you should repair the Oracle Add-in
installation. For more information, see the section
on repairing your QuickTest Professional
installation in the HP QuickTest Professional
Installation Guide.
If, after reviewing the above indicators and solutions, you are still unable to
record and run tests on your Oracle application, contact HP Software
Support.
228
Chapter 15 • Troubleshooting Testing Oracle Applications
-Xrunjvmhook
-Xbootclasspath/a:C:\PROGRA~2\HP\QUICKT~1\bin\JAVA_S~1\classes;
C:\PROGRA~2\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
The above settings should appear on one line (no newline separators).
Note that common_files denotes the short path of the Common Files folder
located in the Program Files folder. For example, if the Common Files folder
is in C:\Program Files\Common Files, then the value for -Xbootclasspath is
as follows:
-Xbootclasspath/a:C:\Programme\HP\QuickTest Professional\bin\java_shared\
classes;
C:\Programme\HP\QuickTest Professional\bin\java_shared\classes\jasmine.jar
229
Chapter 15 • Troubleshooting Testing Oracle Applications
230
Chapter 15 • Troubleshooting Testing Oracle Applications
➤ Launching the application you are testing and saving the dynamically
transformed classes, as described on page 232.
➤ Disabling dynamic transformation support in Sun Plug-in 1.4.1 or
JInitiator 1.3.1.x, as described on page 233.
or
Disabling dynamic transformation support in JInitiator 1.1.x, as described
on page 233.
231
Chapter 15 • Troubleshooting Testing Oracle Applications
Note: If the ClassesDumpFolder string value already exists, you can modify
its value data to an existing folder on your computer.
2 If you are using the -Xincgc option, temporarily remove it from the
command line to enable the JVM hook profiler to transform and save the
necessary classes. You can add it back to the command line after performing
the following step.
3 Launch your applet or application and perform some basic operations on it.
This ensures that all of the necessary classes are transformed and saved.
Close your application. All of the dynamically transformed classes are now
saved in the folder you specified in the previous step (for example,
C:\JavaSupportClasses).
Now that you have saved the transformed classes, you are ready to disable
dynamic transformation support.
232
Chapter 15 • Troubleshooting Testing Oracle Applications
233
Chapter 15 • Troubleshooting Testing Oracle Applications
234
16
Creating and Running Steps on Oracle
Applications
This chapter explains how to use QuickTest to set testing preferences and to
create and run steps on Oracle Applications sessions.
Note: QuickTest Professional does not record the selection of Oracle tabs.
Each object in an Oracle tab is included in the object repository within the
tab hierarchy. QuickTest then uses this hierarchy when the test or
component is run, switching to the appropriate tab if needed.
235
Chapter 16 • Creating and Running Steps on Oracle Applications
Components do not require specific record and run settings to work with
Oracle applications. To record a component on an Oracle Applications
session, you need to first open the Oracle Applications session manually or
include steps in your component (using the SystemUtil utility object and
OracleLogon test object) that connect to the Oracle Applications server.
When you begin recording a new component, the Applications dialog box
opens (unless you previously specified a Windows environment in the
Application Area Settings or Business Component Settings dialog box). Click
OK to close the dialog box and begin recording. For more information on
the Applications pane and Applications dialog box, see the HP QuickTest
Professional User Guide.
236
Chapter 16 • Creating and Running Steps on Oracle Applications
237
Chapter 16 • Creating and Running Steps on Oracle Applications
Option Description
Record and run test on any open Instructs QuickTest to record and run the test
Oracle Application on any open Oracle application.
238
Chapter 16 • Creating and Running Steps on Oracle Applications
Option Description
Log out of the application when Instructs QuickTest to log out of the Oracle
the test closes Applications session specified in the Record
and Run Settings dialog box when the test is
closed.
Enabled only when Auto-login is selected.
Close the browser when the test Instructs QuickTest to close the browser on
closes which the test is recorded when the test is
closed.
Enabled only when Open the following
application when a record or run session
begins is selected.
239
Chapter 16 • Creating and Running Steps on Oracle Applications
Additional References
For more information on the Record and Run Settings dialog box, see
“Using the Record and Run Settings Dialog Box” on page 36.
If you define any of these record and run environment variables, they
override the values in the corresponding boxes in the Oracle tab of the
Record and Run Settings dialog box. For more information on the Oracle
tab, see “Defining Record and Run Settings for Oracle Tests” on page 236.
240
Chapter 16 • Creating and Running Steps on Oracle Applications
Use the variable names listed in the table below to define Oracle record and
run variables:
241
Chapter 16 • Creating and Running Steps on Oracle Applications
Note: If you installed a version of JInitiator 1.1.x after installing the Oracle
Add-in, a warning is displayed when you start recording your test or
component. Versions of JInitiator 1.1.x installed after you install the Oracle
Add-in are not supported by QuickTest. In this case, you can repair the
Oracle Add-in to enable full support of all currently installed versions of
JInitiator 1.1.x. For more information, see the section on repairing your
QuickTest Professional installation in the HP QuickTest Professional
Installation Guide.
242
Chapter 16 • Creating and Running Steps on Oracle Applications
Even though the object on which you record may be embedded in several
levels of objects, the recorded hierarchy does not include these objects. For
example, even if the OracleListOfValues object in which you select an item
is actually within an Oracle form, which is contained within an Oracle
Applications session window, the recorded hierarchy is only
OracleListOfValues. Select (without the OracleFormWindow and
OracleApplications test objects in the hierarchy).
You may have a combination of Oracle and Java test objects in your Oracle
test or component. This occurs when QuickTest encounters a Java applet
within your Oracle Applications session and records it using the Java test
object hierarchy.
You can edit steps that use Java test objects, methods, and properties in the
same way as you edit other standard steps. You can add new steps to existing
tests or components using the new Oracle test object model. For
information on Java objects, methods, and properties, see the Java section of
the HP QuickTest Professional Object Model Reference, installed together with
the Oracle Add-in. For information on Oracle objects, methods, and
properties, see the Oracle section of the HP QuickTest Professional Object
Model Reference.
There are specific options and settings you can use in your test or
component that apply only to steps that use Java test objects. These options
and settings are located in the Java pane of the Test Settings dialog box (File
> Settings > Java node) and the Java pane of the Options dialog box (Tools >
Options > Java node). For more information, click the Help button in the
relevant Java pane. Note that the options in the Java panes do not have any
effect on Oracle object steps in your test or component.
243
Chapter 16 • Creating and Running Steps on Oracle Applications
244
Part VIII
The PeopleSoft Add-in
246
17
Using the PeopleSoft Add-in
You can use the QuickTest Professional PeopleSoft Add-in to test objects
(controls) in PeopleSoft applications. You can create and run tests and
components on these controls, as well as check their properties. You create
and run tests and components on PeopleSoft applications in much the same
way as you do for other Web-based applications.
The PeopleSoft Add-in provides test objects, methods, and properties that
can be used when testing objects in PeopleSoft applications. For more
information, see the PeopleSoft section of the HP QuickTest Professional
Object Model Reference.
247
Chapter 17 • Using the PeopleSoft Add-in
General Information
Prerequisites
Opening Your You must open QuickTest before opening your PeopleSoft
Application application.
Setting Preferences
248
Chapter 17 • Using the PeopleSoft Add-in
249
Chapter 17 • Using the PeopleSoft Add-in
250
Part IX
The PowerBuilder Add-in
252
18
Using the PowerBuilder Add-in
You can use the QuickTest Professional PowerBuilder Add-in to test objects
(controls) in PowerBuilder applications. You can create and run tests and
components on these objects, as well as check their properties. You create
and run tests and components on PowerBuilder applications in much the
same way as you do for other Windows-based applications.
The PowerBuilder Add-in provides test objects, methods, and properties that
can be used when testing objects in PowerBuilder applications. You can
check the properties of a PowerBuilder control as you check the properties of
any other Windows object. For more information, see the PowerBuilder
section of the HP QuickTest Professional Object Model Reference.
253
Chapter 18 • Using the PowerBuilder Add-in
General Information
Prerequisites
Add-in None
Dependencies
Setting Preferences
254
Chapter 18 • Using the PowerBuilder Add-in
255
Chapter 18 • Using the PowerBuilder Add-in
The set of DataWindow inner attributes available in the dialog box is the
same as the list of properties that would be returned if you run a
DataWindow.Describe ("DataWindow.attributes") statement. Properties of the
inner objects of the table (objects that can be retrieved using a
DataWindow.Describe ("DataWindow.objects") statement) are not available in
this list.
➤ When you insert a checkpoint or output value step on a DataWindow
control while editing (from the Active Screen, or on a step for which Active
Screen data was captured), only the identification properties are available in
the list.
For more information on the DataWindow test object, see the PowerBuilder
section of the HP QuickTest Professional Object Model Reference.
256
Part X
The Add-in for SAP solutions
258
19
Setting Up Your SAP GUI for Windows
Environment
Before you can start testing your SAP GUI for Windows applications, you
must make sure that your server and client are installed and configured with
the correct versions and support options. This chapter provides the specific
setup information that you need to successfully use the QuickTest
Professional Add-in for SAP solutions. This chapter is relevant only if you
test SAP GUI for Windows applications.
259
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
To test your SAP GUI for Windows application using the QuickTest
Professional Add-in for SAP solutions, you must confirm that:
Note: If you plan to use the QuickTest-eCATT integration features, you must
also install the appropriate support package and configure the eCATT server
to work with QuickTest. For more information, see “Configuring eCATT to
Work with QuickTest” on page 312.
260
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
SAP GUI
Scripting option
If you did not select this option when you installed the SAP GUI for
Windows application, it is essential that you reinstall it and select this
option before setting the other configuration options described in this
chapter.
261
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
Software
Release Support Package Kernel Patch Level
Component
262
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
3 In the Directory section, select All Support Packages and click the Display
button.
263
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
4 The All packages window opens. Verify that the correct package is installed
for the SAP release you are using (see “Checking Package and Patch Versions
Installed on the SAP Application Server” on page 262).
264
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
265
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
3 Click the Other kernel information button. The System: Kernel information
dialog box opens.
4 In the Kernel information section, check the value of the Sup. Pkg. lvl.
If the level is lower than the required level for the SAP release you are using
(see “Checking Package and Patch Versions Installed on the SAP Application
Server” on page 262), you must download the latest kernel version and
upgrade your existing one.
For more information on downloading and installing the required kernel
patch level, see SAP OSS note #480149.
266
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
Note: If the minimum required patch level is not installed, an error message
displays when you try to record on your SAP GUI for Windows application.
To check the patch level on your SAP GUI for Windows application:
1 Open the SAP Logon dialog box and click the button on the left side of
the SAP Logon dialog box’s title bar. Then select About SAP Logon from the
menu.
267
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
2 In the SAP Version Information dialog box, confirm that the minimum
required patch level is installed.
268
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
To enable scripting for all users, set this parameter on all application servers.
To enable scripting for a specific group of users, set the parameter only on
application servers with the appropriate access restriction settings.
269
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
270
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
3 If ProfileVal is FALSE, you must modify its value. To modify it, click the
Change value button. The Change Parameter Value window opens.
4 Enter TRUE in the New value box and click the Save button.
Note: You must enter TRUE in all capital letters. Entering True or true has no
effect.
When you save the change, the window closes and the value of the
parameter is displayed as TRUE. However, this change takes effect only when
you log on to the system. Therefore, before beginning to work with the
QuickTest Professional Add-in for SAP solutions, you must log off and log on
again. You may also need to restart the SAP Service from the SAP Console.
271
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
If you find that even after restarting the SAP Service from the SAP Console
and logging on again to the client, your change to the ProfileVal parameter
was not saved, you may have an outdated kernel version. In this case, either
restart the application server or download and import the required kernel
patch, as specified below.
Kernel
Release Patch Level
Version
For more information and download guidelines, see SAP OSS note # 480149.
272
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
To ensure that scripting is enabled on the SAP GUI for Windows client:
1 Log on to your SAP server.
2 Click the Customize Local Layout SAP toolbar button and then select
Options. The Options dialog box opens.
3 Click the Scripting tab.
4 Confirm that the Enable Scripting check box is selected. If the Enable
Scripting check box is cleared, select it.
273
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
274
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
4 Clear the Notify When a Script Attaches to a Running GUI and Notify When
a Script Opens a Connection check boxes and click OK.
275
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
Note: This is a per-user setting. You must set this option on each client that
you want to test using the QuickTest Professional Add-in for SAP solutions.
Alternatively, the system default can be changed by the SAP system
administrator.
276
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
4 In the System defaults section on the right side of the tab, view the Display
setting. This setting indicates the default server setting for all clients.
➤ If the Display setting is Dialog, then you can set your Display settings in
the User-specific settings section on the left side of the tab to System
defaults or Dialog (modal).
➤ If the Display setting is Control (as in the example above), then you must
change the Display setting in the User-specific settings section on the left
side of the tab to Dialog (modal).
5 Click the Copy (Ctrl + S) button to save your changes and close the dialog
box.
277
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
278
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
Note: Depending on the SAP GUI for Windows version you are working
with, the dialog boxes shown in this section may or may not appear the
same as those on your screen. However the instructions in this section are
the same for all supported SAP GUI for Windows versions.
To check the connection speed setting on your SAP GUI for Windows client:
1 Open the SAP Logon dialog box and select the server to which you want to
connect.
2 According to the version you are using, either click the Properties button or
right-click a server and select Properties. The Properties dialog box for the
selected server opens.
279
Chapter 19 • Setting Up Your SAP GUI for Windows Environment
3 Click the Advanced button. The Advanced Options dialog box opens.
4 In the Connection speed section, confirm that the Low speed connection
check box is cleared.
5 Repeat steps 1 to 4 for each server you want to use in conjunction with
QuickTest.
280
20
Using the Add-in for SAP solutions on
SAP GUI for Windows Applications
You can use the QuickTest Professional Add-in for SAP solutions to test
objects (controls) in SAP GUI for Windows applications. You can create and
run tests and components on these objects, as well as check their properties.
You create and run tests and components on SAP GUI for Windows
applications in much the same way as you do for other Windows-based
applications.
The QuickTest Professional Add-in for SAP solutions has been certified by
SAP AG.
The Add-in for SAP solutions provides test objects, methods, and properties
that can be used when testing objects in SAP GUI for Windows applications.
For more information, see the SAP GUI for Windows section of the
HP QuickTest Professional Object Model Reference.
When the Add-in for SAP solutions is loaded, QuickTest can learn objects
and run steps on both Web-based and Windows-based SAP applications. For
information on recording and running tests and components on Web-based
SAP applications, see “Using the Add-in for SAP solutions on Web-based SAP
Applications” on page 393.
281
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
General Information
282
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Prerequisites
Opening Your You must open QuickTest and set the Record and Run
Application options before opening your SAP GUI for Windows
application. Open your application only after you begin
the recording session.
Setting Preferences
283
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
➤ When working in tests, the Record and Run Settings dialog box in QuickTest
enables you to specify a server and client to open at the beginning of every
test record and run session. The servers available in the dialog box are the
same as those available in the SAP Logon Pad and SAP Logon dialog box.
➤ When you record a component on an SAP GUI for Windows session, the
Record and Run Settings dialog box is not available. Instead, you need to
open the SAP session manually or include statements in your component
that connect to the SAP server (using the SAPGuiUtil test object).
➤ You can also record specific operations in your SAP GUI for Windows
Application in Standard Windows Recording mode, if required. For more
information, see “Using Standard Windows Recording Capabilities” on
page 308.
➤ As you record a test or component on your SAP GUI for Windows
application, QuickTest records the operations you perform. QuickTest works
directly with the SAP GUI Scripting API to record your operations.
Therefore, although QuickTest records a step for each operation you
perform, it adds the steps to your test only when API events are sent to
QuickTest (when information is sent to the SAP server).
284
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
285
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Example 1
Suppose you record the steps of filling in a Price Simulation for Material
form. You select the three check boxes in the form (Incl. cash discount,
Delivery costs, and Effective price) and click Continue. When you click the
Continue button, information is sent to the SAP server, and the steps in
which you select the check boxes and click the Continue button are added
to your test at once. In the Keyword View, the process described above is
displayed as follows.
286
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Example 2
Suppose you select a radio button in the My worklist tab of your SAP GUI for
Windows application. This radio button is labeled In my role as....
QuickTest uses the SAP GUI component type (41) to identify the object as an
SAPGuiRadioButton object. It creates an SAPGuiRadioButton test object
with the name In my role as... and records the following properties and
values as the description for the radio button.
Note: The guicomponenttype and name property values are supplied by the
SAP GUI Scripting API.
QuickTest also records that you performed a Set method to turn ON the
radio button.
287
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
SAPGuiSession("Session").SAPGuiWindow("Worklist: Notifications").
SAPGuiRadioButton("In my role as ...").Set
When you run a test or component, QuickTest identifies each object in your
application by its test object class and its description—the set of
identification properties and values used to uniquely identify the object. In
the above example, during the run session, QuickTest looks up the
description for the SAPGuiRadioButton object with the name In my role as...
by searching the object repository. QuickTest finds the following
description:
guicomponenttype = 41
name = MEL_ROL
text = In my role as...
For more information on the test object model, the object repository, and
the Object Spy, see the HP QuickTest Professional User Guide.
288
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Setting Record and Run Settings for SAP GUI for Windows
Tests
You can use the SAP tab of the Record and Run Settings dialog box to
instruct QuickTest to connect to a particular SAP server and open your SAP
GUI for Windows application each time you begin a recording session for a
test. Alternatively, you can instruct QuickTest to record on any open SAP
GUI for Windows application.
If you do not modify the Record and Run settings before you begin
recording, the Record and Run Settings dialog box opens automatically
when you begin recording a new test (by clicking Record (or choosing
Automation > Record). You can also open it by choosing Automation >
Record and Run Settings.
If you load only the QuickTest Professional Add-in for SAP solutions and the
Web Add-in, then only the SAP, Web, and Windows Applications tabs are
displayed in the Record and Run Settings dialog box. If other add-ins are
loaded, the corresponding tabs are also displayed (as shown above).
289
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
You can use the SAP tab to instruct QuickTest to connect to a specified SAP
server and open your SAP GUI for Windows application using specified user
settings. Alternatively, you can instruct QuickTest to record and run the test
on any open SAP GUI for Windows application. If you select to connect to a
specific server, you can specify details that will enable QuickTest to
automatically log on to the server each time a record or run session begins
(instead of recording the log on steps).
You can also use application details environment variables to specify these
parameters. For more information, see “Defining Application Details
Environment Variables” on page 293.
Option Description
Record and run tests on any Instructs QuickTest to use any open SAP GUI
open SAP GUI for Windows for Windows application to record and run
application the test.
This option supports sessions opened using
the SAP Logon dialog box or the SAP Logon
Pad.
290
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Option Description
291
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Option Description
Close the SAP GUI for Windows Instructs QuickTest to close the SAP GUI for
application when the test is Windows session specified in the Record and
closed Run Settings dialog box when the test is
closed.
Any other SAP GUI for Windows session that
was opened before, during, or after the run
session is not affected.
The Session cleanup option in the SAP pane
of the Options dialog box (Tools > Options >
SAP node) overrides this option. For more
information, see “Configuring Testing
Options for SAP GUI for Windows
Applications” on page 294.
Do not record and run on Instructs QuickTest not to record or run tests
sessions that are already open on any SAP GUI for Windows sessions that
were already open prior to the start of the
record or run session. This is to ensure that
steps are not inadvertently recorded on other
SAP GUI for Windows sessions that may also
be running on the same computer.
Wait for Web pages to load Instructs QuickTest to wait for Web pages to
before running steps synchronize completely before starting the
(This option is only for SAP Web test run.
applications) Note: This option is selected by default. The
option should be cleared only when working
with IC WebClient.
Note: In addition to saving all values set in the Record and Run Settings
dialog box with the test, the values you enter for the User, Client, Password,
and Language in the Auto-logon area of the dialog box are saved with the
selected server. If you select the same server in the Server description box for
a new test, the saved values are automatically displayed in the auto-logon
area.
292
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
For more information on the Record and Run Settings dialog box, see
“Using the Record and Run Settings Dialog Box” on page 36.
Use the variable names listed in the table below to define SAP application
details:
293
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Note: The SAP pane is available only when the QuickTest Professional
Add-in for SAP solutions is installed and loaded.
The options in this pane apply only to steps performed on SAP GUI for
Windows applications.
294
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Option Description
Record HTML elements Specifies whether QuickTest should use the SAP GUI
using SAPGui Scripting Scripting API when recording HTML elements within
interface SAP applications, or use the built-in Web support to
record these HTML elements. You can use this option
to handle synchronization issues that may arise from
recording on Web elements inside an SAP GUI for
Windows session.
Changes to this option take effect only after you start
recording a new test or component.
Record Reset Method Records a Reset method as the first step when
on SAP Gui Session recording a test or component. When the test or
component is run, the first step resets the application
session so that it starts at the initial SAP screen. This
ensures that the test or component starts with the
same application state each time it is run.
This option is applicable only if the Open the
following SAP Gui client when a record or run session
begins and the Auto-logon options are both selected in
the SAP tab of the Record and Run Settings dialog box.
295
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Option Description
296
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Option Description
297
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Option Description
Record only the Specifies that only the selected value is recorded when
selected value when using a Possible Entries list. Any other actions
using a Possible Entries performed on any windows opened after pressing F4
(F4) list (or after clicking the icon in the specific field) are
ignored, and only the actual change made to the field
is recorded.
Note: An event is received only on the field in focus
when F4 was pressed, and not on all the populated
fields in the screen. For this reason it may be preferable
not to select this option when recording.
Session cleanup Instructs QuickTest to close all SAP GUI for Windows
sessions opened by QuickTest during the current run
session when the test is closed. This includes all SAP
GUI for Windows sessions that were invoked from the
Record and Run Settings dialog box, as well as any
sessions that may have been invoked during the run
session using a SAPGuiUtil statement or the Open New
Session button in the SAP GUI for Windows
application that was being recorded.
SAP GUI for Windows sessions that were opened
during a previous run session, or opened manually
before or during the current run session are not
affected.
This option overrides the Close the SAP GUI for
Windows application when the test is closed option in
the SAP tab of the Record and Run Settings dialog box.
For more information, see “Setting Record and Run
Settings for SAP GUI for Windows Tests” on page 289.
298
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
299
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
➤ Creates a new data sheet to represent the table or grid. Each data sheet is a
sub-sheet of the action in which the table or grid operations were recorded.
The data sheet name is always the action name followed by a period (.) and
the internal name of the table or grid. For example: Action1.FLIGHT_TABLE
➤ Adds a column to the data sheet for each table or grid column in which you
record. (Columns in which you did not set any cell data are not added to the
data sheet.)
The name of the column in the data sheet is generally the same as the name
of the column in your application.
If a column in the application does not have a header, or more than one
column header has the same name, QuickTest inserts a column with a name
in the format: _ _<index>, where <index> represents the column number
according to its location when you record the Input step.
➤ Inserts the values you set during the recording session into the appropriate
cells in the data sheet. Each row in which you entered data is represented by
a row in the data sheet. Place-holder (empty) rows are added for rows above
the rows in which you recorded. For example, if you set data in rows 2, 4,
and 7, seven rows are added to the data sheet. The cells in rows 1, 3, 5, and 6
do not contain any data.
➤ Inserts an additional end row where the value of the first cell in the row is
.END.
End Row
300
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
SAPGuiSession("Session").SAPGuiWindow("SAP").SAPGuiTable("Table
control tc spfli").Input "Action1.Table control tc spfli_3"
SAPGuiSession("Session").SAPGuiWindow("SAP").SAPGuiTable("Table
control tc spfli").SelectCell 1,"Airline"
SAPGuiSession("Session").SAPGuiWindow("SAP").SendKey ENTER
The Input statement instructs QuickTest to enter values from the data sheet
into the table or grid corresponding to the data sheet name, similar to an
automatically parameterized statement referring to a special sheet in the
Data Table.
301
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
QuickTest inserts the following Input statement in your test to represent the
data input:
SAPGuiSession("Session").SAPGuiWindow("SAP R/3").SAPGuiTable("SPFLI").
Input "Action1.SPFLI"
Note: If you record on a table or grid that scrolls using the ENTER key rather
than the PAGEDOWN key, you may need to manually add the ScrollMethod
optional argument. For more information, see “Entering Data in Rows
Requiring Scrolling” on page 306.
The corresponding data sheet in your Data Table looks like this:
There are six rows in the data sheet, because data was modified in the first
six rows of the table or grid in the application. Note that the data sheet does
not contain columns for the Flight Number and Flight time columns,
because no values were modified in those columns during the recording
session.
302
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
As described above, when you record the Input statement, QuickTest records
the values you set in the appropriate rows and columns in the input data
sheet for that table or grid. Below the data it adds an end row (shaded in
blue) with the text .END in the first cell of the row. This row indicates the
end of the first set of data for the table or grid. This set of data and its
corresponding end row represents a single data set.
To supply different data values for each action iteration, you add new data
sets. You add a new data set for a table or grid by entering the values in the
appropriate rows and columns below the previous end row. To indicate the
end of the new data set, copy and paste the end row from the first set of data
to the row below the new set of data. You can include a different number of
rows in each data set.
Note: The Input statement can run successfully only if it can find the end
row. Therefore, the first cell of the end row must contain only the text .END.
You can enter text into other cells in that row, if needed. For example, you
can enter a number in the second cell of the end row to indicate the
iteration number corresponding to that set of data.
Because the input data sheets are added as a sub-sheet of the current action,
the Input statement uses the data set corresponding to the current action
iteration. For example, if you set the action to run on all iterations and your
action sheet includes five rows of data, then your input data sheet should
also include five data sets (and five .END rows).
303
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
The input data sheet below contains three sets of data. The first set contains
data for the top three rows of the table or grid. The second set contains data
for the top two rows of the table or grid. The third set contains data for
rows 2-5. The blank first row (row 8 in the data sheet), indicates that no data
should be entered or modified in the first row of the table or grid. Note that
a number was manually entered into the second cell of each END row to
make it easier to identify the action iteration to which each data set
corresponds.
Manually
added
numbers
indicate the
iteration that
corresponds
to each data
sheet
304
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
➤ QuickTest inserts an Input statement and a new input data sheet each time
information including modified table or grid cell data is sent to the server. If
you set data in the cells of a particular table or grid both before and after
sending information to the server, you will have more than one input data
sheet (and more than one Input statement) representing the same table or
grid.
➤ It is recommended to enter data only in the visible rows of the table or
grid while recording, especially if scrolling results in sending information
to the server. You can add additional rows to the recorded data set while
editing your test.
➤ It is recommended to perform sorting, calculations, and other such
operations either before beginning or after you finish entering data in a
table or grid.
➤ The end of each data set in the input table or grid must be indicated by an
end row with only the text .END in the first cell of the row.
➤ You can enter additional text, such as comments or an iteration number, in
other cells of the .END row.
➤ You can include a different number of rows in each data set.
If you enter data for rows that require scrolling to display them in your
application, you may need to modify your Input statement. For more
information, see “Entering Data in Rows Requiring Scrolling” on page 306.
➤ When recording, QuickTest adds a column to the input data sheet only for
table or grid columns in which you set data. You can add additional
columns from your table or grid to the data sheet while editing your test.
Double-click the column header in the data sheet to rename it. Enter the
name of your table or grid column. If the table or grid column name has
spaces, replace the spaces with underscores.
305
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
➤ In general, the columns in your data sheet can be in any order, as long as the
column names match the column names in your table or grid. However, if
you record data in a column without a column header name or if more than
one column in the table or grid has the same header name, QuickTest adds a
column to the data sheet in the format: _ _<index>, where <index> indicates
the number of the column in the table or grid when you record the Input
statement, for example, _ _1 or _ _2. You can also use this format for
columns in the data sheet if the column header names in your table or grid
may change from iteration to iteration.
➤ To use multiple sets of data from an input data sheet, you must have at least
one other Data Table parameter in your action that is set to use Current
action sheet (local). Also, confirm that the action is set to run multiple
iterations in the Run tab of the Action Properties dialog box.
➤ The number of data sets in your input data sheet should match the number
of rows in the corresponding action data sheet.
If your input data sheet contains fewer data sets than the number of rows in
the action sheet, no data will be inserted in the table or grid during those
action iterations. For example, if the action runs five iterations, and your
input data sheet contains only four data sets, during the fifth iteration no
data will be entered into the table or grid when the Input statement runs.
If your data sheet contains more data sets than the number of rows in the
action sheet, those data sets will not be used.
306
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
If you create an input data set for rows that are not visible on the table or
grid in your application, then QuickTest must scroll the table or grid during
the run session to insert the data for those rows. If you create an input data
set for a row that needs to be added to the table or grid, QuickTest must send
a command to add the row. By default, QuickTest sends a PAGEDOWN
command if the rows in the data sheet exceed those currently displayed in
the application. If QuickTest needs to use the ENTER key to add additional
rows to the table or grid, then you need to manually add the optional
ScrollMethod argument (with the value ENTER) to your Input statement
before running your test. For example:
SAPGuiSession("Session").SAPGuiWindow("Create Standard").
SAPGuiTable("SAPMV45ATCRTL_V_ERF_").
Input "Action1.All items", ENTER
When recording in one of these modes, your steps are added to your test (or
to the analog file) as you record them rather than when information is sent
to the server. If you begin recording in low-level or analog mode, do not
switch back to the normal recording mode until you perform a step that
results in communication with the SAP server. Switching between one of
these modes and the normal recording mode before the server
communication, may result in your steps being recorded twice (once in
low-level/analog mode and once in normal mode).
307
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
To record steps as SAP GUI for Windows objects again, click the Standard
Windows Recording Mode button in the Testing toolbar, or select
Automation > Standard Windows Recording to deselect the option.
308
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
QuickTest Professional Add-in for SAP solutions is integrated with the SAP
Extended Computer Aided Test Tool (SAP eCATT). This integration into SAP
eCATT, via SAP GUI for Windows 6.20, has been certified against the SAP
Web AS 6.20. Now, using SAP eCATT and QuickTest Professional, customers
can run quality tests in environments that span beyond Windows and SAP
environments including complex, multi-platform, highly-integrated
composite, legacy, and proprietary enterprise applications.
You can use the SAP eCATT integration feature only if you already have the
SAP GUI for Windows software installed on your computer, including
support for RFC libraries. You add support for RFC libraries by selecting the
Unicode RFC Libraries check box (under Development Tools) during the SAP
installation.
309
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
You must configure your eCATT server to work with QuickTest. After the
server is configured, you can connect to eCATT from QuickTest (standalone
mode) and you can connect to QuickTest from eCATT (integrated mode).
From QuickTest or from eCATT you can create QuickTest tests, store tests
and associated resource files in the eCATT database, edit tests, run tests, and
review test results. You can also call and pass values from an eCATT test
script to a QuickTest test.
Notes:
eCATT support is available only when the SAP Front End software is
installed on your computer (including support for Unicode), both the
Add-in for SAP solutions and SAP eCATT integration components are
installed, and the SAP Add-in is loaded. For more information, see the
HP QuickTest Professional Installation Guide.
You cannot connect to both eCATT and Quality Center simultaneously.
➤ Standalone mode. The test is stored in eCATT, but was opened from within
the QuickTest interface.
➤ Integrated mode. The test was opened for editing or running from within
the eCATT interface.
310
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
The table below describes the basic differences between these two modes.
Available All QuickTest features are You can work only with the
QuickTest features available. You can open and currently open test.
work with any test in eCATT File > Open, File > New, and
or in the file system. the Recent files list options
are disabled.
If you select File > Save As,
QuickTest warns you that it
will disconnect from eCATT
and switch QuickTest to
standalone mode.
Resource files When you open the test, you When you open the test, test
can also edit and save all the resources stored in eCATT
test’s resource files, are opened in read-only
including those stored in mode.
eCATT.
Save location Tests and uploaded files are You can save tests to any
automatically saved to the package (including non-
local package ($TMP) in local packages).
eCATT.
Test results All test results are stored in Test results are stored to the
the file system. They cannot network drive you specify in
be accessed from your the eCATT pane of the
eCATT log list. Options dialog box. You can
access the test results from
the eCATT log.
311
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
➤ Update the eCATT server with the appropriate support package. Contact SAP
or your SAP representative to receive the necessary support package.
➤ Set external tool parameters in the ECCUST_ET table.
➤ Apply the necessary roles or profiles to each user who wants to work with
QuickTest and eCATT.
For information on specific SAP server version and support package
requirements, see the SAP section in the HP QuickTest Professional Readme.
312
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Note: You can also use the function module SET_EXTERNAL_TOOL to create
entries in the customizing table. For more information, see your eCATT
documentation.
313
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Each of these tasks requires special roles or profiles. Before you begin
working with the QuickTest-eCATT integration, you should confirm with
your system administrator that the user name you use is assigned the
necessary roles or profiles to perform the above tasks. For example, to work
with QuickTest in standalone mode, you must be assigned the role S_ECET
or the profile SAP_ECET in the eCATT system.
For more information, contact your system administrator or see your SAP
and eCATT documentation.
314
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
You can also perform many of these operations from the eCATT interface
(integrated mode).
You can also download resource files already stored in eCATT and save them
in the file system.
315
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Note: You can pass values from an eCATT test script to a QuickTest test, or
vice versa, in the form of QuickTest test parameters. For more information
on parameters, see the HP QuickTest Professional User Guide.
316
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Option Description
317
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
The eCATT icon is displayed in the QuickTest status bar to indicate that
QuickTest is currently connected to an eCATT server.
Tip: To open the eCATT Connection dialog box, double-click the eCATT icon
in the QuickTest status bar.
Note: If a test or shared file (such as a shared object repository or Data Table
file) that is stored in eCATT is open when you disconnect from eCATT, then
QuickTest informs you that the test will be closed.
318
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
319
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
For more information on the Save QuickTest Test to eCATT dialog box, see
“Understanding the Save QuickTest Test to eCATT Dialog Box”.
Note: The Save QuickTest Test to eCATT dialog box opens when QuickTest is
connected to eCATT in standalone mode. To save a test directly in the file
system while you are connected to eCATT, click the File System button to
open the Save QuickTest Test dialog box.
3 In the Test name box, enter a valid name for the test. Use a descriptive name
that will help you easily identify the test. Ensure that the test name begins
with a prefix that matches your eCATT server naming conventions. For
example, your eCATT server may require all test names to begin with the
letter z.
4 In the Test version box, enter a version number. The version number can be
any number that you choose. For example, each time you open and modify
a test, you can increment the version number by 1, instead of overwriting
the existing version of the test if you want to keep a record of all versions of
a test. The test name and version number together form a unique ID for the
test.
5 Click OK to save the test and close the dialog box. Note that the words
Saving, and then Uploading, are displayed in the QuickTest status bar.
When QuickTest completes the save process, the status bar displays the word
Ready.
When the save process is complete, the QuickTest title bar displays the test
information in the following format:
For example:
320
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
321
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
The Save QuickTest Test to eCATT dialog box includes the following options:
Option Description
Test name The name for the test. Use a descriptive name that
will help you easily identify the test. Ensure that the
test name begins with a prefix that matches your
eCATT server naming conventions. For example,
your eCATT server may require all file names to
begin with the letter z.
When the Save Test in eCATT dialog box opens, it
displays the default test prefix in the Test name box.
You can define or modify this prefix in the eCATT
pane of the Options dialog box. For more
information, see “Setting Options for Working with
eCATT” on page 333.
Test version The version number of the test. The version number
can be any number that you choose. You can use
the version number option as a kind of manual
version control. For example, each time you open
and modify a test, you can increment the version
number by 1, instead of overwriting the existing
version of the test if you want to keep a record of all
versions of a test. The test name and version
number together form a unique ID for the test.
File System Opens the Save QuickTest Test dialog box, enabling
you to save the currently open test anywhere in the
file system.
322
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
For more information on Open QuickTest Test from eCATT dialog box, see
“Understanding the Open QuickTest Test from eCATT Dialog Box”.
Note: The Open QuickTest Test from eCATT dialog box opens only when
QuickTest is connected to an eCATT server. To open a test directly from the
file system while you are connected to eCATT, click the File System button
to open the Open Test dialog box.
3 In the Test name box, enter a valid test name or select one from the list of
recently opened eCATT tests. Do not specify a folder path or other location.
4 In the Test version box, select a version number from the list.
As QuickTest downloads and opens the test, the operations it performs are
displayed in the status bar.
323
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
5 If you want to open the test in read-only mode, select the Open in read-only
mode check box.
When the test opens, the QuickTest title bar displays the test information in
the following format:
[eCATT] TestName : VersionNumber (Mode)
For example:
The Open QuickTest Test from eCATT dialog box includes the following
options:
Option Description
Test version The version number of the test you want to open.
324
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Option Description
Open in read-only mode Opens the test in read-only mode. You can run the
test and save the results, but you cannot modify the
test or any external resources associated with the
test.
File System Opens the Save QuickTest Test dialog box, enabling
you to save the currently open test anywhere in the
file system.
The eCATT Connection dialog box also opens if you choose to open a test
that was last edited on your computer using a different eCATT user name.
You can either log on using the displayed User or you can click Cancel to
prevent the opening of the selected test and remain logged in with your
current user name.
Note: You must disconnect from eCATT before opening a Quality Center
test from the recent tests list.
Like test names, all test resource files stored in eCATT must begin with a
valid prefix. You can set the default prefix for files in the eCATT pane of the
QuickTest Options dialog box. For more information, see “Setting Options
for Working with eCATT” on page 333.
325
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
For files that you create outside QuickTest, such as Data Table files, library
files, and environment variable files, you upload the files to eCATT using
the eCATT Upload File option. You can also use this dialog box to upload
existing shared object repository or recovery files from the file system to
eCATT.
When you create a new shared object repository or recovery file, you can
create the file as you normally would in QuickTest and then save the file
directly to eCATT.
For information on the eCATT Upload File dialog box, see “Understanding
the eCATT Upload File Dialog Box”.
4 Browse or enter the file path of the Local file you want to upload.
326
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
5 Specify the eCATT name and Version number you want to assign to the
uploaded file.
6 Associate the uploaded file with your test in the appropriate QuickTest
dialog box. For more information on associating Data Table files, library
files, environment variable files, and shared object repositories with your
test, see the HP QuickTest Professional User Guide.
327
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
3 If the test is in object repository per action mode, click the Export button to
export the object repository to a shared object repository file in eCATT.
If the test is in shared object repository mode, click the arrow next to the
Save button and select Save As to save a copy of the object repository file
with a new name in eCATT.
The Save External File to eCATT dialog box opens.
For information on the Save External File to eCATT dialog box, see
“Understanding the Save External File to eCATT Dialog Box”.
4 Enter the File name and File version for the shared object repository.
5 Click OK to save the file.
For more information on exporting and saving object repository files, see
the HP QuickTest Professional User Guide.
328
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
2 Click the New Scenario button. The Recovery Scenario Wizard opens.
Follow the instructions in the wizard to create a new scenario. When you are
finished, the scenario is displayed in the Recovery Scenario Manager.
If you want to add more scenarios to the new scenario file, repeat step 2.
When you are ready to save the scenario file, click Save. The Save External
File to eCATT dialog box opens.
For information on the Save External File to eCATT dialog box, see
“Understanding the Save External File to eCATT Dialog Box”.
3 Enter the File name and File version for the recovery file.
4 Click OK to save the file.
For more information on creating and saving recovery files, see the
HP QuickTest Professional User Guide.
329
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
The eCATT Upload File dialog box includes the following options:
Option Description
Local file The complete path of the file you want to upload.
You can enter file path or browse to the file.
eCATT name The name under which to store the file in eCATT.
Ensure that the file name begins with a prefix that
matches your eCATT server naming conventions.
For example, you may have to prefix all file names
with the letter z.
When the eCATT Upload File dialog box opens, it
displays the default file prefix in the eCATT name
box. You can define or modify this prefix in the
eCATT pane of the QuickTest Options dialog box.
For more information, see “Setting Options for
Working with eCATT” on page 333.
330
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
The Save External File to eCATT dialog box includes the following options:
Option Description
File name The name under which to store the file in eCATT.
Ensure that the file name begins with a prefix that
matches your eCATT server naming conventions.
For example, you may have to prefix all file names
with the letter z.
When the eCATT Upload File dialog box opens, it
displays the default file prefix in the eCATT name
box. You can define or modify this prefix in the
eCATT pane of the QuickTest Options dialog box.
For more information, see “Setting Options for
Working with eCATT” on page 333.
File Version The version number of the file. The version number
can be any number that you choose. For example,
each time you open and modify a file, you can
increment the version number by 1, instead of
overwriting the existing version of the file if you
want to keep a record of all versions of a file. The
file name and version number together form a
unique ID for the file.
331
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
The eCATT Download File dialog box includes the following options:
Option Description
332
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Note: The eCATT pane is available only when the QuickTest Professional
Add-in for SAP solutions is installed and loaded.
333
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Option Description
Test results The location in which test results are stored when
the test is run from eCATT. This folder must be a
mapped network drive or a path in Universal
Naming Convention (UNC) format.
New test prefix The prefix that is displayed by default in the Save
QuickTest Test in eCATT dialog box.
eCATT test cache folder The location in which a test from eCATT is
temporarily stored when it is open for editing or
running in QuickTest.
Default location = C:\Documents and
Settings\<UserName>\Application Data\eCATT
Note: RunCache and EditCache folders are
automatically created under the specified folder.
Clear Cache Deletes all files from the eCATT test cache folder.
Modify Trace Options Opens the eCATT Trace Options dialog box, which
enables you to configure if and how QuickTest
generates the QuickTest-eCATT communication
trace log (used for troubleshooting communication
errors).
334
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
You use the eCATT Trace Options dialog box to configure whether and how
QuickTest generates the trace file.
335
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
The eCATT Trace Options dialog box contains the following options:
Option Description
Folder The folder path for storing the trace file. Required if
a trace file level other than None is specified in the
Level option.
Default location = C:\Documents and
Settings\<UserName>\Application
Data\Ecatt\Trace
Max size The maximum file size you want to allow for the
trace file.
Generate .xml file for Generates an .xml file each time you open or save a
debugging when opening test that is stored in eCATT. The files are saved in
and saving tests Open and Save folders under the trace folder.
Note: Selecting this option results in slower
response times for editing and saving tests in
QuickTest. In general, you should select this option
only when instructed to do so to debug eCATT
connectivity issues.
336
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
➤ Defining QuickTest test parameters and using them in your QuickTest Test.
For more information, see the HP QuickTest Professional User Guide.
➤ Calling a QuickTest Test and Specifying Arguments from eCATT (see
page 348)
337
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Notes:
The default results folder is created under the folder where the cache (local)
copy of your test is stored. You set the location of your eCATT test cache
folder in the eCATT pane of the QuickTest Options dialog box.
When running tests in standalone mode, no eCATT log is created. For more
information on the eCATT log for QuickTest run sessions, see “Viewing
Results of a QuickTest Test Run in Integrated Mode” on page 354.
To run the test and overwrite the previous run session results, select the
Temporary run results folder (overwriting older temporary results) option.
Note: QuickTest stores temporary run session results for all tests in <System
Drive>:\%Temp%\TempResults. The path in the text box of the Temporary
run results folder (overwriting older temporary results) option is read-only
and cannot be changed.
3 Click OK. The Run dialog box closes and QuickTest begins running the test.
When the run session ends, the Test Results window opens (unless the View
results when run session ends check box is cleared in the Run pane of the
QuickTest Options dialog box). For more information on running QuickTest
tests and analyzing test results, see the HP QuickTest Professional User Guide.
338
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
When you log on to an eCATT server that has been configured to integrate
with QuickTest, you can view, edit, and run QuickTest tests that are stored in
eCATT. You can also use the standard eCATT commands to copy, rename,
and delete QuickTest tests, just as you would with any other file stored in
eCATT.
When you open a QuickTest test from eCATT, QuickTest opens in integrated
mode. In this mode, you can use all QuickTest features that are associated
with the open test. You cannot open another test or save the open test with
another name.
You can run a test in integrated mode in any of the following ways. You can
use the Run option in QuickTest. You can use the Execute Test Script (F8)
option for a selected QuickTest test in eCATT. You can also execute an
eCATT test script (or blob—Binary Large Object) that calls a QuickTest test.
Creating eCATT scripts that call QuickTest tests is useful if you want to pass
or retrieve values to or from a QuickTest test. For more information on
configuring eCATT to work with QuickTest, see “Configuring eCATT to
Work with QuickTest” on page 312.
You can also work with tests stored in eCATT from the QuickTest interface
(standalone mode). For more information on working in standalone mode,
see “Working with eCATT in Standalone Mode” on page 314. For more
information on eCATT testing modes, see “Understanding eCATT Testing
Modes” on page 310.
339
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Alternatively, you can select to open the QuickTest test for editing. When
the test opens in integrated mode, you can use many QuickTest options. For
example, you can edit the test and run the test from the QuickTest interface.
However, any external resource files (for example, shared object repository
files or external Data Table files) open in read-only mode. Resource files that
are saved with the test (for example, a local repository or the test’s local Data
Table file) are editable. To edit external resource files, open the test in
standalone mode.
340
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
When you display or open a QuickTest test in integrated mode, you can
work only with the open test. You cannot open another test or save the
open test with another name.
Note: If you select the QuickTest File > Save As menu command when
working in integrated mode, QuickTest displays a warning message
indicating that you can save a test with a new name in the file system, but
doing so disconnects QuickTest from eCATT and switches QuickTest to
standalone mode.
341
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
6 To display the test in read-only mode, click the Display Object button. The
Display Test Script window opens.
To open the test for editing, click the Change Object button. The Change
Test Script window opens.
7 Click the Script (Call External Tool) button (SHIFT + F12). If QuickTest is not
already open, it opens. If the test has external resource files and/or if you
chose to open the test in read-only (Display) mode, QuickTest reminds you
that the resources and/or test will open in read-only mode.
8 Click OK on the message boxes. QuickTest displays the test.
9 If you opened the test for editing, you can use most QuickTest options. For
more information, see the HP QuickTest Professional User Guide.
10 Close QuickTest to return to eCATT.
342
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
3 The from Test Script box displays the current QuickTest test Name and
Version number.
4 In the to Test Script box, enter the Name and Version of the new copy of the
test.
5 Click Copy to save the copy of the test.
➤ If you modified only the version number, proceed to step 8.
➤ If you entered a new test name, the Create Object Directory Entry dialog
box opens.
343
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
6 In the Package box, specify the package in which you want to store the copy
of the test. Modify other edit boxes as necessary.
Note: If the test has external resource files, they are stored separately in the
$TMP (local) package.
3 The from Test Script box displays the current QuickTest test Name and
Version number.
4 In the to Test Script box, enter the new Name and/or Version for the test.
344
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
5 Click Rename.
➤ If you modified only the version number, proceed to step 8.
➤ If you entered a new test name, the Create Object Directory Entry dialog
box opens.
6 In the Package box, specify the package in which you want to store the test.
Modify other edit boxes as necessary.
Note: If the test has external resource files, they are stored separately in the
$TMP (local) package.
345
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
3 Click Yes to confirm that you want to delete the test. The test is deleted from
the database.
346
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
7 In QuickTest, click Save. The eCATT Create Object Directory Entry dialog
box opens.
8 In the Package box, specify the package in which you want to store the test.
Confirm that the other edit boxes contain correct values.
Note: If the test has external resource files, they are stored by default in the
$TMP (local) package. If you select another package for the test, you must
manually move any external resource files to the same package.
9 Click Save to close the dialog box and save the test. QuickTest is restored in
integrated mode and displays the saved test for additional editing.
10 When you are finished with the test, close QuickTest to return to eCATT.
347
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
➤ Defining QuickTest test parameters and using them in your QuickTest Test.
For more information, see the HP QuickTest Professional User Guide.
➤ Calling a QuickTest Test and Specifying Arguments from eCATT (see below).
After you have defined input and output arguments for your QuickTest test,
you can insert a call to that test from an eCATT script and specify argument
values for the input arguments.
To create an eCATT test script that calls and sends argument values to a
QuickTest test:
1 Log on to eCATT.
2 In the eCATT initial window, select Test Script.
3 Enter a test script name and version number. Do not specify an External
Tool.
4 Click the Create Object button. The Create Test Script window opens.
Ensure that the General Data tab is selected within the Attributes tab.
5 In the Title box, enter a title for your eCATT test script. The title is a short
description of your test script.
348
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
11 In the Test Script (External Tool) box, enter the name of the QuickTest test
you want to call.
12 Click the Continue (Enter) button. eCATT enters the default interface value
in the Interface box. Modify this value if necessary.
13 If you want to call a test version other than version 1, enter the version
number of the test you want to call in the Version box.
349
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
14 Click the Continue (Enter) button again to add the test to the Command
Interface.
15 Double-click the row header for the test in the Command Interface. The
External Command Interface table is displayed.
16 Double-click the Import folder. If input test arguments have been defined
for the test, they are displayed in the far-right grid.
Tip: You can also double-click the Export folder to view the output
arguments defined for the test.
17 Set the value of each input argument in the Value column of the far-right
grid.
350
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
Tip: You can enter the name of an eCATT parameter from the eCATT script
as the value of a QuickTest input parameter.
➤ Display the test in QuickTest and use the standard QuickTest Run option in
QuickTest. For more information on displaying the test, see “Displaying or
Editing a QuickTest Test from eCATT” on page 340. For information on
running a test using the QuickTest Run option, see the HP QuickTest
Professional User Guide.
➤ Create and run an eCATT test script that calls a QuickTest test. For
information on creating eCATT test scripts that call QuickTest tests, see
“Passing Values Between eCATT Test Scripts and QuickTest Tests” on
page 337. For information on running eCATT test scripts, see your eCATT
documentation.
➤ Use the Execute Test Script (F8) option for a selected QuickTest test in
eCATT. For more information, see the procedure below.
351
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
To run a QuickTest test from eCATT using the Execute Test Script option:
1 Log on to eCATT.
2 In the eCATT initial window, enter the test name in the Test Script box and
the version number in the Version box. Select QuickTest Professional as the
External Tool.
352
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
3 Click the Execute Test Script (F8) button. The Start Options window opens.
4 Select the options you want to use for the run session. For example, select
the Log Display check box if you want the test log to display when the run
session ends and select A With Surface of External Tool in the Mode for Ext.
Tool box, if you want QuickTest to be displayed during the run session. For
information on other options in this window, see your eCATT
documentation.
353
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
5 Click the Execute button to start the run session. If you selected the Log
Display check box in the Start Options window, then the eCATT log is
displayed when the run session ends.
➤ In the QuickTest Test Results window. Because all tests run from eCATT are
stored in a network drive, you can open QuickTest (or the QuickTest Test
Results Viewer application), and browse to the desired test results. You can
view the folder in which the results are saved in the UNCPathToLocalLog
line of the eCATT log.
354
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
➤ In the eCATT Log Display. You can expand the log to view the results of the
test or the results of a specific event, such as a checkpoint.
355
Chapter 20 • Using the Add-in for SAP solutions on SAP GUI for Windows Applications
356
21
Enhancing Your SAP Windows Test
After you create your test, you can enhance it by adding checkpoints,
retrieving output values, parameterizing values, and inserting SAP Windows
objects, methods, and properties.
Note: All of the information in this chapter is relevant for tests and scripted
components only.
357
Chapter 21 • Enhancing Your SAP Windows Test
358
Chapter 21 • Enhancing Your SAP Windows Test
359
Chapter 21 • Enhancing Your SAP Windows Test
➤ Table controls. The Define Row Range dialog box for table controls opens
as follows:
Note: The total number of rows indicated in the first sentence of the
dialog box for table controls is only an approximation. This is because
only the data from visible rows is actually available for SAP Windows
table controls.
➤ Grid and APOGrid controls. The Define Row Range dialog box for grid
controls and APOGrid controls opens as follows:
Note: The total number of rows indicated in the first sentence of the
dialog box for grid controls is exact. The Visible Rows option is not
available when checking grid controls.
360
Chapter 21 • Enhancing Your SAP Windows Test
4 Select the range of rows you want to include in your checkpoint. You can
include all the rows in the table, only the visible rows (for SAP GUI for
Windows table controls only), or another range that you specify.
5 Click OK. The Table Checkpoint Properties dialog box opens.
Note: If you selected All rows or you specified a large row range in the
Define Row Range dialog box, it may take a few moments for the Table
Checkpoint Properties dialog box to open.
361
Chapter 21 • Enhancing Your SAP Windows Test
Tips:
362
Chapter 21 • Enhancing Your SAP Windows Test
Note: The total number of rows indicated in the first sentence of the
dialog box for table controls is only an approximation. This is because
only the data from visible rows is actually available for SAP Windows
table controls.
➤ Grid and APOGrid controls. The Modify Row Range dialog box for grid
controls and APOGrid controls opens as follows:
Note: The total number of rows indicated in the first sentence of the
dialog box for grid controls is exact. The Visible Rows option is not
available when checking values for grid controls.
4 Select the range of rows you want to include in your checkpoint. You can
include all the rows in the table or grid, only the visible rows (for SAP table
controls only), or another range that you specify.
5 Click OK. The Modify Row Range dialog box closes, and the Table
Checkpoint Properties dialog box displays the rows you specified in the
Modify Row Range dialog box.
➤ If your modified row range includes new rows, QuickTest captures the
current values of the new rows from the open table in your SAP GUI for
Windows application.
363
Chapter 21 • Enhancing Your SAP Windows Test
➤ If your modified row range includes some or all of the rows that were
already included in the checkpoint, the expected values of those cells are
not changed. This enables you to modify the row range without losing
parameterization, regular expressions, or other changes you may have
made to the expected cell values in your checkpoint. Therefore, you
cannot use the Modify Row Range dialog box to update the expected
values of an existing table checkpoint. To update the expected values of
your checkpoint, use the Update Run option. For more information, see
the HP QuickTest Professional User Guide.
➤ If your modified row range excludes some or all of the rows that were
previously included in your checkpoint, those rows (and any
modifications you made to the expected values) are deleted from the
checkpoint.
364
Chapter 21 • Enhancing Your SAP Windows Test
To solve this problem, you create an output value for the unique number
that is generated when you create a new order and store it in an OrderID
column in the Data Table. Then you parameterize the step that specifies an
order ID to view. You use the Order ID Data Table column (created in the
output value step) as the parameter column.
When you run the test, QuickTest retrieves the unique order ID that was
generated for the new order and inserts it in the run-time Data Table as an
output value. When the test reaches the step for setting the value of the
Order ID edit box in the View Order Status window, QuickTest inserts the
unique order ID from the run-time Data Table into the Order ID edit box.
When creating an output value for ActiveX grid controls (these generally
have toolbars), QuickTest captures the data from all columns and all rows in
the grid. If you do not need to output data from all rows in your test, you
can specify the rows you want to include in the output value in the Define
Row Range dialog box. You can also increase or decrease the number of rows
included in the Table Output Value Properties dialog box at a later time.
Tip: You can also spool all of the available data from a table into an external
file. For more information, see “Spooling Data from a Table” on page 374.
365
Chapter 21 • Enhancing Your SAP Windows Test
366
Chapter 21 • Enhancing Your SAP Windows Test
Note: The total number of rows indicated in the first sentence of the
dialog box for table controls is only an approximation. This is because
only the data from visible rows is actually available for SAP Windows
table controls.
➤ Grid and APOGrid controls. The Define Row Range dialog box for grid
controls and APOGrid controls opens as follows:
Note: The total number of rows indicated in the first sentence of the
dialog box for grid controls is exact.
The Visible Rows option is not available when outputting values for grid
controls.
4 Select the range of rows from which you want to output values. You can
include all the rows in the table or grid, only the visible rows (for SAP table
controls only), or another range that you specify.
367
Chapter 21 • Enhancing Your SAP Windows Test
5 Click OK. The Table Output Value Properties dialog box opens.
Note: If you selected All Rows or you specified a large row range in the
Define Row Range dialog box, it may take a few moments for the Table
Output Value Properties dialog box to open.
6 If required, you can modify the output value name in the Name box.
7 Specify your preferences for the cells you want to output. For more
information on the Table Output Value Properties dialog box, see the
HP QuickTest Professional User Guide.
368
Chapter 21 • Enhancing Your SAP Windows Test
Note: The Table Output Value Properties dialog box also has a Change
button that enables you to modify the number of rows captured for the
output value. For more information, see “Modifying a Table Output Value”
on page 373.
8 Click the Modify button if you want to change the output type and/or
settings for the selected value. The Output Options dialog box opens and
displays the current output type and settings for the value. For more
information on the Output Options dialog box, see the HP QuickTest
Professional User Guide.
9 Click OK to close the dialog box. QuickTest inserts an output value step in
your test.
369
Chapter 21 • Enhancing Your SAP Windows Test
➤ Table controls. The Define Row Range dialog box opens as follows:
Note: The total number of rows indicated in the first sentence of the
dialog box for table controls is only an approximation. This is because
only the data from visible rows is actually available for SAP Windows
table controls.
➤ Grid and APOGrid controls. The Define Row Range dialog box for grid
controls and APOGrid controls opens as follows:
Note: The total number of rows indicated in the first sentence of the
dialog box for grid controls is exact.
370
Chapter 21 • Enhancing Your SAP Windows Test
6 Select the range of rows from which you want to output values. You can
include all the rows in the table or grid, only the visible rows (for SAP table
controls only), or another range that you specify.
Note: The Visible Rows option is not available when outputting values for
ActiveX grid controls.
7 Click OK. The Table Output Value Properties dialog box opens.
371
Chapter 21 • Enhancing Your SAP Windows Test
Note: If you selected All Rows or you specified a large row range in the
Define Row Range dialog box, it may take a few moments for the Table
Output Value Properties dialog box to open.
8 If required, you can modify the output value name in the Name box.
9 Specify your preferences for the cells you want to output. For more
information on the Table Output Value Properties dialog box, see the
HP QuickTest Professional User Guide.
Note: The Table Output Value Properties dialog box also has a Change
button that enables you to modify the number of rows captured for the
output value. For more information, see “Modifying a Table Output Value”
on page 373.
10 Click the Modify button if you want to change the output type and/or
settings for the selected value. The Output Options dialog box opens and
displays the current output type and settings for the value. For more
information on the Output Options dialog box, see the HP QuickTest
Professional User Guide.
11 Click OK to close the dialog box. QuickTest inserts an output value step in
your test.
372
Chapter 21 • Enhancing Your SAP Windows Test
373
Chapter 21 • Enhancing Your SAP Windows Test
The following example uses the GetCellData method to list the data of each
cell in a table of 10 rows and 10 columns:
For i=1 to 10
for j=1 to 10
col="#" & j
Dat=SAPGuiSession("Session").SAPGuiWindow("Create Standard").
SAPGuiTable("SAPMV45ATCTRL_U_ERF_").GetCellData (i, col)
‘Enter lines of code that use the value of the returned Dat variable
next
next
For more information on the GetCellData method, see the SAP GUI for
Windows section of the HP QuickTest Professional Object Model Reference.
374
22
Adding SAP Windows Statements to Your
Test or Component
In addition to recording the steps that you perform on your application, you
can add statements to your test or component using the Keyword View. You
can also add statements to your test using the Expert View or the Step
Generator. This enables you to create a more comprehensive test or
component for your SAP GUI for Windows application.
SAPGuiSession("Session").SAPGuiWindow("SAP R/3").
SAPGuiEdit("Fixed_cols").Set "4"
375
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
QuickTest has a set of SAP Windows test object classes that represent objects
in your application on which you can record operations. There are also
other objects that you can add to your test or component manually.
376
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
This section describes how QuickTest identifies the objects in an SAP GUI for
Windows application and provides information on each of the following
objects:
377
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
SAPGuiSession Object
The SAPGuiSession object represents the SAP GUI for Windows session on
which an operation is performed. For tests and components, you can record
on the SAPGuiSession object or add it manually using the Keyword View.
For tests, you can also insert SAPGuiSession statements using the Step
Generator or manually in the Expert View to create, reset, synchronize, or
close a session.
➤ SAPGuiMenubar. Represents the menu bar at the top of the main SAP
window.
➤ SAPGuiButton. Represents push-buttons in your application. The
SAPGuiButton object is also recorded when you perform operations on
buttons in the toolbar of the main SAP window.
Note that the SAPGuiToolbar object is used only for toolbar objects within
your SAP GUI for Windows application. For more information, see
“SAPGuiToolbar Object” on page 385.
➤ SAPGuiOKCode. Represents the edit box in which you enter commands to
navigate to the desired transaction.
➤ SAPGuiWindow. Represents the main SAP window and the dialog boxes in
your SAP GUI for Windows application.
➤ SAPGuiEdit. Represents fields in which you can enter a single line of text.
➤ SAPGuiCheckbox. Represents toggle check box objects in your application.
378
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
SAPGuiMenubar
SAPGuiButton
SAPGuiOKCode
SAPGuiWindow
SAPGuiEdit
SAPGuiCheckBox
SAPGuiButton
SAPGuiRadioButton
379
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
SAPGuiTree (Column
Tree) control
SAPGuiTextArea
SAPGuiComboBox
SAPGuiAPOGrid Object
The SAPGuiAPOGrid object represents APO Grid controls in your SAP GUI
for Windows application. APO Grid controls are similar to Grid controls,
with some additional functionality. The SAPGuiAPOGrid is available only in
the SAP APO module.
SAPGuiAPOGrid
for an APO grid
control
380
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
SAPGuiGrid Object
The SAPGuiGrid object represents ActiveX grid controls in your SAP GUI for
Windows application. Grid controls usually have toolbars that enable you to
manipulate or perform operations on the values in the grid. The following
image shows an SAPGuiGrid object after a row has been added to the grid as
a result of highlighting the Distance column and clicking the Total button
in the toolbar.
SAPGuiGrid for
a grid control
381
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
SAPGuiCalendar Object
The SAPGuiCalendar object represents a calendar control in your SAP GUI
for Windows application. The following image shows an SAPGuiCalendar
object with a date selected.
SAPGuiCalendar for
a calendar control
Date selected in a
calendar control
SAPGuiElement Object
The SAPGuiElement object can represent any SAP Windows object. This
object may be recorded if you insert a checkpoint or output value on an
unrecognized SAP Windows object. You can also enter this object into your
test manually to refer to any SAP Windows object that matches a specified
programmatic description. For more information on programmatic
descriptions, see the HP QuickTest Professional User Guide.
382
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
SAPGuiLabel Object
The following image shows a Possible Entries dialog box containing
SAPGuiLabel (static text) objects. When you record on an SAPGuiLabel
object, QuickTest always records the cursor position (SetCaretPos method)
within the label object.
SAPGuiLabel
SAPGuiStatusBar Object
The following image shows an SAPGuiStatusBar object. You cannot record
operations performed on a status bar, but you can check the entire text or
any reserved parameter within the status bar’s message text. When the
Record status bar messages option is selected in the SAP pane of the
Options dialog box, a step is automatically recorded each time a message is
sent from the server. If this option is not selected, you can add
SAPGuiStatusBar steps to the script only by inserting checkpoints or output
values while recording.
383
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
SAPGuiTable Object
The SAPGuiTable object represents table controls in your SAP GUI for
Windows application. SAPGuiTable objects are generally simple and may
not have toolbar buttons (other than the Table Settings button).
Table Settings
SAPGuiTable button
SAPGuiTabStrip Object
The following image shows an SAPGuiTabStrip object. Note that using the
tab navigation button to select a tab is recorded the same way as actually
clicking the tab in a tab strip. Clicks on the tab rotation buttons are not
recorded.
SAPGuiTabStrip
384
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
Note: In rare cases, a running test or component may need to find an object
in a tab strip that is not currently selected. In such an event, QuickTest finds
the correct tab strip in which the object is located, selects that tab strip, and
activates the object. Then the test or component continues to run. A
comment that summarizes this automatic selection of the correct tab strip
appears in the results.
SAPGuiToolbar Object
The SAPGuiToolbar object represents toolbar objects in your SAP GUI for
Windows application.
Note: The Object Spy does not locate SAPGuiToolbars that are part of grid
controls. They are treated as part of the SAPGuiGrid object.
The toolbar buttons on the main SAP window toolbar are recorded as
SAPGuiButton objects.
385
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
The example below shows a separate toolbar above a tree control that
enables operations on the tree control, but is not associated with it. It also
shows a toolbar inside a grid control.
Separate
SAPGuiToolbar
SAPGuiToolbar
for a grid control
386
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
SAPGuiTree Object
The SAPGuiTree object represents all tree controls in your application,
including simple tree controls, list tree controls, and column tree controls.
Based on information received from the SAP API, QuickTest recognizes the
elements in simple trees as nodes and the elements in list and column trees
as items. Therefore, you may record an ActivateItem step for one tree and an
ActivateNode step for another tree, for example.
The examples below show the three different SAPGuiTree object types:
Selected node
in a simple
SAPGuiTree
Selected item
in a list
SAPGuiTree
Selected item in
a multi-column
SAPGuiTree
The names of some nodes or items may change dynamically, for example,
the number of unread documents in an inbox may change as documents are
added or read. Therefore, when you run a step from a test or component on
an SAP tree control, the name of the node or item may have changed since
the step was recorded.
387
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
The tree below contains examples of elements whose names may change
over time.
For example, the Workplace: Mercury QA01 node may have a different
name at another time (when a different user logs in). Similarly, all the nodes
and items in the Inbox, whose names include quantities (numbers of
documents or table entries), are likely to change over time.
To enable QuickTest to identify these nodes and items when running a test
or component, you can use regular expressions when you specify the path of
the item or node.
The syntax when writing the value of the node or item name as a regular
expression is:
RegExp:=<regular expression>
For example, a value for the Unread documents node of the above tree (that
uses a regular expression) would look similar to this:
The majority of the value is simple text. The regular expression parts of the
value in this example are the two asterisks—one before Inbox and one at the
end of the line—that represent the Workplace name and the number of
unread documents respectively.
Each level of the tree can have its own RegExp:= value.
388
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
SAPGuiUtil Object
You can enter SAPGuiUtil statements that perform connection operations
on your SAP GUI for Windows application during the run session. The
SAPGuiUtil object is a reserved object and is not recorded.
SAPGuiSession("Session").SAPGuiWindow("SAP R/3").
SAPGuiElement("ImageCtrl").Object.doubleClickPictureArea "90","30"
389
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
The following SAP GUI for Windows objects are automatically recorded
using this mechanism:
Tip: You can use the Object Spy to view the native operations and properties
of an object in your application.
For example, you can use the grid’s setCurrentCell method to set a row
number to -1 (according to the SAP API).
SAPGuiSession("Session").SAPGuiWindow("Organization").
SAPGuiGrid("GridViewCtrl").Object.setCurrentCell -1, "ADD_FIELD3"
The Object property is also useful for checking the value of properties that
are not available using a standard checkpoint in your SAP GUI for Windows
application.
390
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
For example, you can use the grid control’s native selectionMode property
to determine the types of selections that the grid supports. If the property
returns the value RowsAndColumns, this indicates that the grid supports
multiple row selection. In this case, you can use the SelectRowsRange test
object method to select multiple rows in the grid.
GridMode = SAPGuiSession("Session").SAPGuiWindow("Vorg_nge").
SAPGuiGrid("GridViewCtrl").Object.selectionMode
msgbox GridMode
If GridMode = "RowsAndColumns" then
SAPGuiSession("Session").SAPGuiWindow("Vorg_nge").
SAPGuiGrid("GridViewCtrl").SelectRowsRange 2,6
SAPGuiSession("Session").SAPGuiWindow("Vorg_nge").
SAPGuiButton("Enter").Click
End If
For more information on using the Object property, see the HP QuickTest
Professional User Guide.
391
Chapter 22 • Adding SAP Windows Statements to Your Test or Component
392
23
Using the Add-in for SAP solutions on
Web-based SAP Applications
You can use the QuickTest Professional Add-in for SAP solutions to test
objects in Web-based SAP applications, including SAP GUI for HTML, SAP
Enterprise Portal (versions 5.0 to 7.0), Internet Transaction Server, and the
Interaction Centre Web Client. You can create and run tests and
components on these objects, as well as check their properties. You create
and run tests and components on Web-based SAP applications in much the
same way as you do for other Web-based applications.
The QuickTest Professional Add-in for SAP solutions has been certified by
SAP AG.
The Add-in for SAP solutions provides test objects, methods, and properties
that can be used when testing objects in Web-based SAP applications. For
more information, see the SAP Web section of the HP QuickTest Professional
Object Model Reference.
393
Chapter 23 • Using the Add-in for SAP solutions on Web-based SAP Applications
General Information
Other The Add-in for SAP solutions recognizes special SAP Web
objects such as frames, table controls, iViews, and portals.
See “Adding SAP Web Statements to Your Test or
Component” on page 407.
394
Chapter 23 • Using the Add-in for SAP solutions on Web-based SAP Applications
Prerequisites
Opening Your ➤ Open QuickTest before you open your Web-based SAP
Application Application.
➤ If you are working in a SAP GUI application with HTML
objects in it, you can log on to your application before
opening QuickTest, but you must open QuickTest before
navigating to the transaction containing the HTML
objects.
➤ For SAP GUI for HTML or Interaction Centre Web Client
(ICWC) applications, confirm that you have properly
configured your SAP server and client.
See “Setting Up Your SAP GUI for Windows
Environment” on page 259.
Setting Preferences
Record and Run ➤ Use the SAP tab (Automation > Record and Run
Settings Dialog Box Settings) to connect to the SAP GUI Client for SAP GUI
(tests only) for HTML or Interaction Centre Web Client (ICWC)
applications. This is because ICWC opens from inside
the SAP GUI Client.
See “Setting Up Your SAP GUI for Windows
Environment” on page 259.
➤ Use the Web tab (Automation > Record and Run
Settings) to instruct QuickTest to open an SAP
Web-based application, or the SAP Enterprise Portal, at
the beginning of each record and run session, by
specifying its URL. Alternatively, you can instruct
QuickTest to record on any open browser.
See “Setting Web Record and Run Options” on page 76.
395
Chapter 23 • Using the Add-in for SAP solutions on Web-based SAP Applications
396
Chapter 23 • Using the Add-in for SAP solutions on Web-based SAP Applications
397
Chapter 23 • Using the Add-in for SAP solutions on Web-based SAP Applications
398
Chapter 23 • Using the Add-in for SAP solutions on Web-based SAP Applications
Area Options
These Page and Frame settings are especially suited to testing Web-based SAP
applications. For more information on the Web > Page/Frame pane, see
“Page and Frame Options” on page 88.
399
Chapter 23 • Using the Add-in for SAP solutions on Web-based SAP Applications
400
Chapter 23 • Using the Add-in for SAP solutions on Web-based SAP Applications
Area Options
401
Chapter 23 • Using the Add-in for SAP solutions on Web-based SAP Applications
402
24
Enhancing Your SAP Web Test
After you create your test, you can enhance it by adding checkpoints,
retrieving output values, and parameterizing values.
403
Chapter 24 • Enhancing Your SAP Web Test
For more information on standard, table, text, and bitmap checkpoints and
output values, see the HP QuickTest Professional User Guide.
404
Chapter 24 • Enhancing Your SAP Web Test
Note: If the table object is not open in your SAP Web application when you
create the checkpoint, the Table Checkpoint Properties dialog box contains
only the Properties tab and the option to select the type of information to
check (content or properties) is disabled.
When working with tables in your SAP GUI for HTML application, note
that:
➤ You can add a table checkpoint while recording or editing your test.
➤ You can spool all of the available data from a table into an external file. For
more information, see “Spooling Data from an SAP GUI for HTML
Application Table” on page 406.
➤ If a table has a column header row, it is counted as the first row in the table.
➤ If you have not recorded a step on the table object you want to check, but
you have an Active Screen capture that displays the table object, you can
add a table checkpoint under the following conditions:
➤ The Active Screen Capture level was set to Complete when the object was
captured, and
➤ The Active Screen button is currently selected. (You set the Capture level
in the Active Screen pane of the Options dialog box (Tools > Options >
Active Screen node). For more information, see the HP QuickTest
Professional User Guide.)
405
Chapter 24 • Enhancing Your SAP Web Test
The following example uses the GetCellData method to list the data of each
cell in a table of 10 rows and 10 columns:
For i=1 to 10
For j=1 to 10
Dat=Browser("ITS System Informati").Page("Table control").
SAPTable("MySAPTable").GetCellData (i, j)
‘Enter lines of code that use the value of the returned Dat variable
Next
Next
For more information on the GetCellData method, see the SAP Web section
of the HP QuickTest Professional Object Model Reference.
406
25
Adding SAP Web Statements to Your Test
or Component
After you create your test or component, you can add SAP Web objects,
methods, and properties to it.
Tip: You can use the Object Spy to view the native operations and properties
of an object in your application.
SAP Web test objects are customized to make it easy for you to identify and
work with the objects in your test. As part of this customization, the
methods and properties recorded for these objects are somewhat different
from those recorded for comparable Web objects.
407
Chapter 25 • Adding SAP Web Statements to Your Test or Component
The example below shows a window containing several common SAP Web
objects:
SAPMenu
SAPButton
SAPDropDown
Menu
SAPEdit
SAPCheck
Box
SAPButton
SAPRadio
Group
408
Chapter 25 • Adding SAP Web Statements to Your Test or Component
SAPButton
The SAPButton test object represents SAP GUI for HTML and SAP Enterprise
Portal application buttons, including icons, toolbar buttons, regular
buttons, buttons with text, and buttons with text and an image.
SAPCalendar
The SAPCalendar test object represents the ICWC Web client calendar
control, which enables the user to select dates to appear in the date fields.
The test object’s main operation is SetDate.
409
Chapter 25 • Adding SAP Web Statements to Your Test or Component
SAPCheckBox
The SAPCheckBox test object represents SAP GUI for HTML and SAP
Enterprise Portal application toggle buttons, including check boxes and
images that can be pressed and released.
SAPDropDownMenu
The SAPDropDownMenu test object represents menus that are opened by
clicking a menu icon within an SAP GUI for HTML or SAP Enterprise Portal
application.
SAPEdit
The SAPEdit test object represents SAP GUI for HTML and SAP Enterprise
Portal application edit boxes, including single-line edit boxes and multi-line
edit boxes (text area).
SAPFrame
The SAPFrame test object represents SAP GUI for HTML application frames.
SAPiView
The SAPiView test object represents iView frame objects within SAP
Enterprise Portal desktops.
SAPiView
410
Chapter 25 • Adding SAP Web Statements to Your Test or Component
SAPList
The SAPList test object represents SAP GUI for HTML and SAP Enterprise
Portal application drop-down boxes and multiple selection lists.
SAPMenu
The SAPMenu test object represents SAP GUI for HTML application top-level
menus. When you click a menu item, the SAPMenu test object records the
full path of the selected item.
411
Chapter 25 • Adding SAP Web Statements to Your Test or Component
SAPNavigationBar
The SAPNavigationBar test object represents an iPanel—the navigation pane
displayed in an SAP Enterprise Portal 5.0 desktop. An iPanel is divided into
sections, represented by expandable strips. Each strip contains a hierarchical
tree of items. When you record an operation on the SAPNavigationBar test
object, it records the strip as part of the path, for example,
SAPNavigationBar("SAPNavigationBar").Select "R3 4.6C - Calderone;MI6
System - GUI Client Roles;Transaction PA30".
SAPNavigation
Bar
Strip
Tree
SAPOKCode
The SAPOKCode test object represents the edit box in a SAP GUI for HTML
application in which you enter commands to navigate to the desired
transaction.
412
Chapter 25 • Adding SAP Web Statements to Your Test or Component
SAPPortal
The SAPPortal test object represents the SAP Enterprise Portal desktop
objects—top-level navigation bar and Detailed Navigation bar.
Top-level
navigation bar
Detailed
Navigation bar
SAPRadioGroup
The SAPRadioGroup test object represents SAP GUI for HTML and SAP
Enterprise Portal application radio button groups.
When possible, QuickTest records radio button selections using the attached
text property of the selected radio button. If two or more radio buttons in
the group have identical attached text values (or no attached text),
QuickTest records the radio button index instead. For example:
SAPStatusBar
The SAPStatusBar test object represents a status bar in an SAP GUI for HTML
application.
413
Chapter 25 • Adding SAP Web Statements to Your Test or Component
SAPTable
The SAPTable test object represents SAP GUI for HTML application table
objects. Each cell can contain an SAP Web or Web object, such as a check
box or combo box. The value of this object determines the value in the cell.
For example, if you select a table cell containing the text San Francisco from
a list of departure cities (in the Depart.city column), QuickTest records a
SetCellData method for the table cell, indicating the data that was set in the
cell. If the object in the cell is later changed to an edit object, QuickTest
enters the data (San Francisco) into the cell (in the edit object) during the
run session. Thus, you do not need to modify your test even when the
object inside the cell changes.
Note: You perform operations on a table object and not on the inner objects
contained in the table object, for example, a check box or edit box.
414
Chapter 25 • Adding SAP Web Statements to Your Test or Component
SAPTabStrip
The SAPTabStrip test object represents SAP GUI for HTML tab strip objects
(objects that enable switching between multiple tabs). You choose the
required tab by clicking its title. If a tab is not visible, you can display it by
clicking the left or right arrows.
SAPTabStrip
Note: While recording a test, arrow clicks are ignored. However, while
running a test, a tab that is not visible will still be selected correctly by
QuickTest.
Selecting a tab through the drop-down menu (the rightmost button on the
tab strip) is handled exclusively via the SAPButton.SelectMenuItem
method.
415
Chapter 25 • Adding SAP Web Statements to Your Test or Component
SAPTreeView
The SAPTreeView test object represents SAP GUI for HTML and SAP
Enterprise Portal application tree objects.
For more information on all the SAP Web test objects, methods, and
properties see the SAP Web section of the HP QuickTest Professional Object
Model Reference.
416
Part XI
The Siebel Add-in
418
26
Using the Siebel Add-in
You can use the QuickTest Professional Siebel Add-in to test objects
(controls) in Siebel applications. You can create and run tests and
components on these objects, as well as check their properties. You create
and run tests and components on Siebel applications in much the same way
as you do for other Web-based applications.
The Siebel Add-in provides test objects, methods, and properties that can be
used when testing objects in Siebel applications. For more information, see
the Siebel section of the HP QuickTest Professional Object Model Reference.
419
Chapter 26 • Using the Siebel Add-in
General Information
Prerequisites
Opening Your You must open QuickTest and set Record and Run options
Application before opening your Siebel application. Open the
application only after you begin the recording session.
Add-in None
Dependencies
420
Chapter 26 • Using the Siebel Add-in
Setting Preferences
421
Chapter 26 • Using the Siebel Add-in
422
Chapter 26 • Using the Siebel Add-in
Siebel 7.0.x/7.5.x
The Siebel Add-in can also identify Siebel objects by the siebel attached text
property (the static text displayed with a Siebel object), rather than by the
HTML name of the object. This enables you to maintain the test or
component with dynamically created pages.
Note: You do not need to make any configuration changes in Siebel 7.0.x
and 7.5.x applications to create and run tests or components on these Siebel
application versions.
423
Chapter 26 • Using the Siebel Add-in
If you select the Open the following application when a record or run
session begins option in the Siebel tab of the Record and Run Settings dialog
box, QuickTest automatically appends the Siebel Test Automation
information to the URL (you do not need to specify it manually in the URL).
For more information on the Record and Run Settings dialog box options,
see “Setting Siebel Record and Run Options” on page 430.
424
Chapter 26 • Using the Siebel Add-in
If a password is defined for the Siebel Server and you do not append this
token to the URL, the SWE does not generate test automation information.
If you select the Open the following application when a record or run
session begins option in the Siebel tab of the Record and Run Settings dialog
box, click the Advanced button, and specify the password in the Siebel
automation access code box in the Advanced Siebel Record and Run
Settings dialog box, QuickTest automatically appends the password
information to the URL (you do not need to specify it manually in the URL).
For more information on the Record and Run Settings dialog box options,
see “Setting Siebel Record and Run Options” on page 430.
425
Chapter 26 • Using the Siebel Add-in
426
27
Creating and Running Tests and
Components on Siebel Objects
The Siebel eBusiness platform is widely used in many organizations for their
business process applications. QuickTest can create and run tests and
components on these applications using special test objects and operations
(methods and properties) that are customized for Siebel.
The customized Siebel test objects, methods, and properties make scripts
simpler to read, maintain, enhance, and parameterize, enabling both
advanced and novice users to create sophisticated tests and components on
Siebel applications.
427
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
For more information on each of the Siebel test objects, see the Siebel
section of the HP QuickTest Professional Object Model Reference.
➤ identifies the object on which you performed the operation and creates the
appropriate test object in the test or component.
➤ reads the current value of the object’s properties in your application and
stores them in the object repository as the test object’s property values.
➤ chooses a unique name for the object, generally using the value of one of its
prominent properties.
➤ records the operation (method) that you performed on the object and
displays the operation as a step in the Keyword View and as a statement in
the Expert View.
For example, suppose you select a check box for a specific account on a page
of your Siebel application. This check box has the label Competitor.
428
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
When you run a test or component, QuickTest identifies each object in your
application by its test object class and its description: the set of identification
properties and values used to uniquely identify the object. In the above
example, during the run session, QuickTest searches the object repository
for the SiebCheckbox object named Competitor to look up its description.
Based on the description it finds (repositoryname = Competitor and
classname = SiebCheckbox), QuickTest searches the application for a
SiebCheckbox object named Competitor. When it finds the object, QuickTest
performs the SetOn method on the object to select the check box.
429
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
The Record and Run Settings dialog box opens automatically each time you
begin recording a new test (unless you open the dialog box and set your
preferences manually before you begin recording).
430
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
Notes:
The Record and Run Settings dialog box applies only to tests. Record settings
for components are specified in the Applications tab of the Application Area
Settings dialog box. For more information, see “Setting Siebel Application
Options for Components” on page 436.
If you have tests that were last modified using the Siebel Add-in, version 6.5,
you need to convert your Record and Run Settings to use the Siebel tab
instead of the Web tab. For more information, see “Information for Users of
Earlier Versions of the QuickTest Professional Siebel Add-in” on page 439.
For more information on testing a Siebel 7.7.x or later application, see
“Additional Information for Siebel 7.7.x and Later Applications” on
page 435.
If you specify an application, you can supply a user name and password for
QuickTest to use to log in to your Siebel application automatically, and you
can select whether to log out of the application and/or close the browser
when the test closes.
You can also use the Advanced option to change the default connection
timeout setting and, if necessary, specify the password required to access
Siebel Test Automation.
431
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
Option Description
Record and run tests on any Instructs QuickTest to use any Internet
open browser Explorer browser to record and run the test.
QuickTest can record and run only browsers
that are opened after QuickTest is opened. If
you are using Siebel 7.7.x or later, make sure
you specify the required test automation
parameters, as described in “Generating Test
Automation Information for Your Siebel
Application” on page 424.
432
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
Option Description
Log out of the application when Instructs QuickTest to log out of the specified
the test closes application automatically when the test
(Enabled only when Auto-login closes. Any other Siebel sessions that were
is selected) opened before, during, or after the test run
are not affected.
You can use an environment variable to
specify the Log out setting. For more
information, see “Using Environment
Variables to Specify Record and Run or
Applications Settings” on page 436.
433
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
Option Description
Close the browser when the test Instructs QuickTest to close the opened
closes browser when the test closes. Any other
(Enabled only when Open the browsers that were opened before, during, or
following application when a after the test run are not affected.
record or run session begins
is selected)
For more information on the Record and Run Settings dialog box, see
“Using the Record and Run Settings Dialog Box” on page 36.
434
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
If you select the Open the following application when a record or run
session begins option in the Siebel tab of the Record and Run Settings dialog
box, QuickTest automatically appends the Siebel Test Automation
information to the URL (you do not need to specify it manually in the URL).
If you select to record and run on any open browser, you must specify the
required parameter values as part of the application URL when you open the
application.
If you select the Open the following application when a record or run
session begins option in the Siebel tab of the Record and Run Settings dialog
box, and specify the password in the Siebel automation access code box in
the Advanced Siebel Record and Run Settings dialog box, QuickTest
automatically appends the password information to the URL (you do not
need to specify it manually in the URL). If you select to record and run on
any open browser, or do not specify the password in the Advanced Siebel
Record and Run Settings dialog box, you must specify the required password
values as part of the application URL when you open the application.
If a session timeout error occurs in your Siebel 7.7.x or later application, the
Siebel Test Automation URL parameter values are not saved. After you log
out and log in again, you must navigate to the correct URL that contains the
required Siebel Test Automation parameter values.
435
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
In the Siebel version box, specify the Siebel version for the applications on
which you want to record your component. The version that you choose
remains selected for all subsequent components.
Note: You can use an environment variable to specify the Siebel version. For
more information, see “Using Environment Variables to Specify Record and
Run or Applications Settings”, below.
436
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
You can use the variable names listed in the table below to define Siebel
application details:
437
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
For example, if you select an item from a list, the Keyword View may be
displayed as follows:
Tip: It is recommended to log out of your Siebel application at the end of the
recording session before closing the browser.
If you have the Siebel Add-in installed on QuickTest Professional, you can
use QuickTest Professional to generate an object repository for your
application. For more details, see Chapter 29, “Generating an Object
Repository Using Siebel Test Express.”
438
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
Click Yes to convert the record and run settings for the test automatically, or
click No to leave the settings as they are. If you click Yes, the following
settings are modified in the Siebel tab of the Record and Run Settings dialog
box:
439
Chapter 27 • Creating and Running Tests and Components on Siebel Objects
➤ The Web Add-in is removed from the list of add-ins associated with the test.
440
28
Enhancing Your Siebel Test or Component
After you create your test or component, you can enhance it by adding
checkpoints, retrieving output values, parameterizing values, and inserting
Siebel objects, methods and properties.
441
Chapter 28 • Enhancing Your Siebel Test or Component
➤ You check SblTable objects and output their values in the same way as you
do for other table objects supported by QuickTest—using the Table
Checkpoint Properties dialog box or Table Output Value Properties dialog
box—with the following differences:
➤ In Siebel 7.0.x or 7.5.x high-interactivity applications, you must have
your Siebel application open to the page that contains the table while
creating a table checkpoint or output value.
When creating table checkpoints or output values, do not include the
header line of the SblTable object when selecting cells to check or output.
To clear the selection in this first row of cells, double-click row heading 1
to the left of the table.
Double-click to
clear all cells in
the row
Tip: When working with SblTable objects, you can spool all of the visible
data from a table into an external file. For more information, see
“Spooling Data from a Siebel Table” on page 444.
➤ Specific test objects in Siebel 7.7.x applications (with Sieb prefixes) have
tabular characteristics. QuickTest treats Sieb tabular test objects as table-
type objects and enables you to check both their content and/or their
identification properties. You can also output content and/or
identification property values for use in your test or component. The
following Sieb test objects have tabular characteristics:
SiebCommunicationsToolbar, SiebList, SiebMenu, SiebPageTabs,
SiebPDQ, SiebPicklist, SiebScreenViews, SiebThreadbar, SiebToolbar, and
SiebViewApplets.
Tip: When working with Sieb tabular objects, you can spool all of the
visible data from the object into an external file. For more information,
see “Spooling Data from a Siebel Table” on page 444.
442
Chapter 28 • Enhancing Your Siebel Test or Component
Tip: You can use the Object Spy to view the native operations and properties
of an object in your application.
The Object property is also useful for checking the value of properties that
are not available using a standard Siebel checkpoint.
443
Chapter 28 • Enhancing Your Siebel Test or Component
The following example uses the Object property to access the raw HTML
element that represents the SblTabStrip object, retrieve its HTML tag name
and size, and display this information in message boxes.
For more information on using the Object property, see the HP QuickTest
Professional User Guide.
The following example uses the GetCellData method to list the data of each
cell in a SblTable object with 10 rows and 10 columns:
For i=0 to 10
For j=0 to 10
Dat=Browser("Siebel eChannel").Page("Siebel eChannel_8").
Frame("Campaign Explorer").SblTable("Campaign").
GetCellData (i, j)
SaveToExternalFile (Dat)
Next
Next
444
Chapter 28 • Enhancing Your Siebel Test or Component
445
Chapter 28 • Enhancing Your Siebel Test or Component
446
29
Generating an Object Repository Using
Siebel Test Express
You can create new object repositories using the Create Object Repository
Wizard. Using the wizard you can select the applications or top-level
application objects for which to create an object repository. Siebel Test
Express scans the Siebel application and creates test objects for every child
object contained in the applications or top-level objects that you specify.
After you have created the object repository, you can save it to the file
system or to a Quality Center project using the Object Repository Manager.
447
Chapter 29 • Generating an Object Repository Using Siebel Test Express
You can also use Siebel Test Express to update an existing object repository.
The Update Object Repository Wizard enables you to select the applications
or top-level objects to include in the update, as well as the date from which
to search for and include new or modified objects. The date refers to when
the objects were last added or modified in the object repository.
After you have updated an object repository, the Object Repository Merge
Tool merges the new and modified objects with objects from your existing
object repository.
Note: To work with Siebel Test Express in QuickTest, ensure that the Siebel
Test Automation API version installed on your server is one that supports
Siebel Test Express.
448
Chapter 29 • Generating an Object Repository Using Siebel Test Express
Note: You can run only one instance of the Siebel Test Express Object
Repository Wizard on a computer at any given time.
For more information on using the Create Object Repository Wizard, see:
449
Chapter 29 • Generating an Object Repository Using Siebel Test Express
Note:
➤ If you are creating a new repository, the information that was entered in
this screen the last time you used the wizard is automatically entered.
➤ If you are updating the repository, the information that was saved as
meta data with the repository file is entered in this screen.
The data required in this screen is not necessarily the same as the data you
use to log into the Siebel application as a user. You should request the
information for this screen from your Siebel server administrator.
450
Chapter 29 • Generating an Object Repository Using Siebel Test Express
Table owner The table owner you want to use for the specified Siebel
database.
451
Chapter 29 • Generating an Object Repository Using Siebel Test Express
You can select the applications for which to create the object repository or
you can expand the application node and then select one or more top-level
objects. It is recommended to select only the top-level objects that you
need. Importing an entire application may take a very long time.
When Siebel Test Express creates the object repository, it imports the
information and creates test objects for all children (descendants) of the
applications or top-level objects you select in this screen.
452
Chapter 29 • Generating an Object Repository Using Siebel Test Express
If the last used profile from a previous import operation was saved, the
profile is loaded, and you can edit the selected options, as required. The new
selections are saved in the profile to be used for future import operations on
the same object repository.
Note: While the Screen Selection screen is displayed, you cannot make the
Object Repository Manager or QuickTest windows active. Once you click
Next in this screen, you will be able to switch the focus to the Object
Repository Manager or QuickTest, and you can work in either of these
windows while the wizard is generating the object repository. However, do
not close the Object Repository Manager or QuickTest. If you do try closing
either window, a message is displayed, warning that the object repository
generation process will be stopped and all data will be lost. Click No to
continue creating the object repository.
453
Chapter 29 • Generating an Object Repository Using Siebel Test Express
454
Chapter 29 • Generating an Object Repository Using Siebel Test Express
During the import process, you can cancel the operation if required. If you
cancel the operation, a message is displayed notifying you that stopping the
import process will result in an incomplete object repository.
Notes:
455
Chapter 29 • Generating an Object Repository Using Siebel Test Express
Note: If any errors occur during the import process, a warning and an Error
Log button are displayed in the Object Repository Created screen. The log
contains error and exception data from the Siebel server listing the failed
calls and the object that caused the error. Click the Error Log button to save
the error log. By default, the error log is called TestExpressErrorLog.xml, and
it is saved in the <QuickTest Professional>\Tests folder.
Click Finish to close the wizard and display the new object repository in the
Object Repository Manager. This can take a few minutes.
456
Chapter 29 • Generating an Object Repository Using Siebel Test Express
You connect to a Quality Center project either from QuickTest or from the
Object Repository Manager by choosing File > Quality Center Connection or
clicking the Quality Center Connection button.
457
Chapter 29 • Generating an Object Repository Using Siebel Test Express
4 Select Tools > Siebel Test Express > Update Object Repository or click the
Update Object Repository button on the Object Repository Manager
toolbar. The Update Object Repository Wizard opens to the Connection
Information screen. For more information on the Connection Information
screen, see “Understanding the Connection Information Screen” on
page 450.
5 Click Next. The Screen Selection screen opens. The Screen Selection screen
displays the filter of selected objects that was stored when the object
repository was created (or last updated), as well as the date on which the
object repository was created or last updated.
458
Chapter 29 • Generating an Object Repository Using Siebel Test Express
Keep the displayed date or select a new date by clicking the arrow next to
the Import only objects modified since box, and select the date from the
displayed calendar. All objects modified before the selected date are ignored
during the import process. Using this option can speed up the importing
process.
Note: If you select objects other than the ones that were imported in the
previous wizard session, then only objects modified since the selected date
are imported.
If you want to add objects to your object repository that were not previously
imported, use the New Object Repository Wizard to import only those
objects and then merge the generated object repository with your current
object repository.
6 Click Next. The Importing Test Objects screen opens. For more information
on the Importing Test Objects screen, see “Understanding the Importing
Test Objects Screen” on page 454.
Note: You can work in either the Object Repository Manager or QuickTest
while the wizard is generating the object repository. However, do not close
either window. If you do try closing either window, a message is displayed,
warning that the object repository generation process will be stopped and
all data will be lost. Click No to continue generating the object repository.
While the wizard is updating the object repository, that object repository file
is locked and you cannot modify it in the Object Repository Manager.
459
Chapter 29 • Generating an Object Repository Using Siebel Test Express
7 After all the objects have been imported, the Object Repository Updated
screen opens and indicates the number of objects that have been added or
modified in the object repository.
8 Click Finish to disconnect from Siebel Test Express. If one or more objects
were added or updated during the process, the Object Repository Merge Tool
opens. This can take a few minutes.
460
Chapter 29 • Generating an Object Repository Using Siebel Test Express
Conflicts between objects in the primary and secondary repository files are
resolved automatically by the Merge Tool according to the default resolution
settings and the Merge Tool displays the Statistics dialog box, which lists the
files that were merged, and the number and type of any conflicts that were
resolved during the merge. You can accept or modify these resolutions to
match your needs.
When you have ensured that the object conflicts are resolved satisfactorily,
you can save the target repository to the file system, or to a Quality Center
project (if QuickTest is currently connected to a Quality Center project).
For more information on working with the Object Repository Merge Tool,
see the HP QuickTest Professional User Guide.
461
Chapter 29 • Generating an Object Repository Using Siebel Test Express
462
Part XII
The Stingray Add-in
464
30
Using the Stingray Add-in
You can use the Stingray Add-in to test Stingray applications. You can create
and run tests and components on Stingray controls, as well as check their
properties. You create and run tests and components on Stingray
applications in much the same way as you do for other Windows-based
applications.
The Stingray Add-in uses a sub-set of the standard Windows test objects,
methods, and properties, which can be used when testing objects (controls)
in Stingray applications. For more information, see the Stingray section of
the HP QuickTest Professional Object Model Reference.
465
Chapter 30 • Using the Stingray Add-in
General Information
Prerequisites
Opening Your You can open your Stingray application before or after
Application opening QuickTest.
Add-in None
Dependencies
Other You must configure the Stingray Add-in to work with your
application. See:
➤ “Setting Up Stingray Object Support” on page 468.
➤ “Running the Stingray Support Configuration Wizard”
on page 473.
Setting Preferences
466
Chapter 30 • Using the Stingray Add-in
467
Chapter 30 • Using the Stingray Add-in
1 Run the Stingray Support Configuration Wizard and configure support for
the grid1.exe application. QuickTest saves the configuration for this
application.
2 Run the Stingray Support Configuration Wizard again and configure
support for the tree1.exe application. QuickTest saves the configuration for
this application.
➤ Run-time Agent Mode. QuickTest injects an agent DLL into the application’s
process during run-time. This is the recommended mode. For more
information, see “Understanding the Run-time Agent (Agent DLL)” on
page 469.
➤ Precompiled Agent Mode. You make slight modifications to your
Visual C++ project in addition to configuring the Stingray Add-in. Use this
mode only if the run-time agent mode is unsuitable or cannot be used. For
more information, see “Using the Precompiled Agent Mode” on page 470.
You choose your preferred mode and configure support for the Stingray
Add-in using the Stingray Support Configuration Wizard. For more
information, see “Running the Stingray Support Configuration Wizard” on
page 473.
After you configure support for the Stingray Add-in, you can fine-tune the
configuration options, if needed. For more information, see “Configuring
Stingray Options” on page 482.
468
Chapter 30 • Using the Stingray Add-in
You can use the run-time agent mode only with Stingray applications that
are created with dynamically-linked MFC libraries. You can verify if your
MFC libraries are linked dynamically or statically by launching the Stingray
Support Configuration Wizard. If the wizard identifies that your Stingray
application uses statically-linked MFC libraries, it issues a warning.
The run-time agent mode supports the most commonly used major Stingray
versions (listed in the Supported Environments and Programs > Stingray
section of the HP QuickTest Professional Readme), as well as some—but not
all—minor versions. You can verify if your Stingray application version is
supported by launching the Stingray Support Configuration Wizard. If the
wizard identifies that your Stingray application version is not supported, it
issues a warning.
Note: The Stingray Add-in is designed to support only applications that are
compiled in Release mode.
If you cannot use the run-time agent mode for any reason, you can still
work with your Stingray application using the precompiled agent mode,
instead. For more information, see “Using the Precompiled Agent Mode” on
page 470, or contact HP Software Support.
469
Chapter 30 • Using the Stingray Add-in
When working with the precompiled agent mode, both Stingray Objective
Grid and Stingray Objective Toolkit must be installed on your computer,
even if your application contains only one type of Stingray control, such as
a grid control or a tab control. The installed versions must match the
version combinations supported for this add-in. For a list of supported
version combinations, see the Supported Environments and Programs >
Stingray section of the HP QuickTest Professional Readme.
Note: If you do not have the required Stingray Objective Grid and Stingray
Objective Toolkit version combination, contact HP Software Support for
assistance.
470
Chapter 30 • Using the Stingray Add-in
Note: Use the precompiled agent mode only if the run-time agent mode is
unsuitable or cannot be used.
Note: If you choose not to replace your existing Stingray Add-in agent files
with the latest agent files, do not continue with this procedure. Although
you will be able to work with the QuickTest Professional Stingray Add-in,
you will not be able to take advantage of the latest functionality.
471
Chapter 30 • Using the Stingray Add-in
Note: Each support library file specifies a combination of Objective Grid and
Objective Toolkit versions. You must choose a combination of Objective
Grid or Objective Toolkit versions, even if your application uses only one of
these Stingray tools. For a list of supported Stingray version combinations,
see the Supported Environments and Programs > Stingray section of the
HP QuickTest Professional Readme.
4 Copy the StgAgentLib.lib support library file to your Visual C++ project
directory.
5 Add the #include "StgAgentLib.h" statement to one of your cpp files, such
as, MainFrm.cpp.
6 Insert the ReleaseWRVC(); function call in one of the functions called when
your application terminates, for example, CMainFrame::OnDestroy().
Note: Inserting this function call instructs the agent to perform required
clean up operations related to the support library code.
When you build your application executable, the added header file
automatically links the StgAgentLib.lib support library to your application
statically, enabling the library code to be activated automatically during the
run session. For more information, see “Working with the WinRunner and
QuickTest Stingray Add-ins in Precompiled Agent Mode” on page 489.
7 Make sure that the Precompiled Agent option is selected in the Stingray
Support Configuration Wizard. For more information, see “Running the
Stingray Support Configuration Wizard” on page 473.
472
Chapter 30 • Using the Stingray Add-in
The wizard walks you through the steps that are necessary to configure
QuickTest to work according to the agent mode that you select.
473
Chapter 30 • Using the Stingray Add-in
474
Chapter 30 • Using the Stingray Add-in
5 If you select Run-time Agent in the mode selection screen, the following
configuration options screen is displayed.
475
Chapter 30 • Using the Stingray Add-in
Note: If, at any time, you encounter problems with the Stingray Add-in, you
can create a diagnostic log file by selecting the Create wizard configuration
log file check box. If you contact HP Software Support for assistance, you
may be asked to provide this log file for diagnostic purposes.
476
Chapter 30 • Using the Stingray Add-in
Tip: If you want to bring another window into focus or perform operations
such as a right-click or mouseover to display a context menu, you can press
and hold the Ctrl key. This temporarily disables the Find mechanism and
enables you to perform regular mouse operations. When the window or
dialog box containing the Stingray control is displayed, release the Ctrl key.
Note that pressing the Ctrl key does not enable you to select an application
from the Windows task bar, therefore you must make sure that the window
you want to access is not minimized.
477
Chapter 30 • Using the Stingray Add-in
9 If QuickTest detects more than one MFC version for the Stingray
application, the following dialog box opens:
478
Chapter 30 • Using the Stingray Add-in
479
Chapter 30 • Using the Stingray Add-in
Note: To test applications created with other Stingray versions, you must
run the Stingray Support Configuration Wizard again. To open the wizard,
select Start > Programs > QuickTest Professional > Stingray Support
Configuration Wizard. Alternatively, in QuickTest, select Tools > Options >
Stingray pane and click the Select Version button. For more information,
see “Considerations for Working with the Stingray Add-in” on page 467.
480
Chapter 30 • Using the Stingray Add-in
481
Chapter 30 • Using the Stingray Add-in
482
Chapter 30 • Using the Stingray Add-in
If the Stingray Add-in is configured correctly, you may not need to make any
modifications using this pane. However, if you did not run the Stingray
Support Configuration Wizard after installing the Stingray Add-in, or if you
encounter difficulties when recording and running tests and components
on Stingray applications, you can use the options in this pane to fine tune
the configuration. For example, you can enable support for multithreaded
applications by selecting the relevant option in this pane.
After making changes to options in this pane, you must restart QuickTest
before you continue working with this add-in.
Note: Select this check box only if you are working with a multithreaded
application.
483
Chapter 30 • Using the Stingray Add-in
For more information, see the Supported Environments and Programs >
Stingray section of the HP QuickTest Professional Readme.
484
Chapter 30 • Using the Stingray Add-in
If you are using the WinEditor statements option, QuickTest records the
following in Expert View:
485
Chapter 30 • Using the Stingray Add-in
Notes:
➤ In some cases, the executable file you use to open an application is only a
launching process, which then opens the actual application process. In
these cases, make sure that you specify the name of the actual
application process and not the launching process.
➤ When working with tests, this option is relevant only if you selected the
Record and run test on any open Windows-based application in the
Record and Run Settings dialog box (Automation > Record and Run
Settings). For more information on the options available in the Record
and Run Settings dialog box, see the HP QuickTest Professional User Guide.
Stingray version
Indicates the versions of the Stingray Objective Grid and Stingray Objective
Toolkit libraries used for identifying Stingray objects in your application
(read-only).
Select Version
Opens the Stingray Support Configuration Wizard, which enables you to
select the combination of Objective Grid and Objective Toolkit versions
with which you want to work.
486
Chapter 30 • Using the Stingray Add-in
When you select this check box, the following options are enabled:
Note: If you select this check box, you must specify the location for the
generated log. For more information, see “Specify location(s) for the
generated log” on page 488.
To select the object for which you want to generate detailed log
information:
Click the pointing hand and then click the relevant Stingray control. The
selected object’s window handle is displayed in the edit box.
Note: This option is available only when the Generate diagnostic agent log
check box is selected.
487
Chapter 30 • Using the Stingray Add-in
➤ Log file (C:\st_agent.log). Saves the diagnostic log to the st_agent.log text
file on your C: drive.
➤ External debug application. Exports the diagnostic log data to an external
debug application, such as the freeware application, DebugView, or
Microsoft VisualStudio.
Note: These options are available only when the Generate diagnostic agent
log check box is selected.
488
Chapter 30 • Using the Stingray Add-in
If you want to work with the WinRunner Stingray Add-in and QuickTest
simultaneously, for example, if you want to call a QuickTest test containing
Stingray objects from WinRunner or vice versa, you must first ensure that
WinRunner and QuickTest are both using the latest version of the Stingray
agent. To do this, search for the Stagent.dll file in <QuickTest installation
folder>\bin and in <WinRunner installation folder>\arch. Then replace the
earlier file with the later one.
If you plan to test the same Stingray application using both WinRunner tests
and QuickTest tests or components, comment out the #define QTP_USAGE
statement and uncomment the #define QTP_OR_WR_USAGE line so that
the support code can be used by either the QuickTest Professional Stingray
Add-in configuration or by the WinRunner Stingray Add-in configuration.
489
Chapter 30 • Using the Stingray Add-in
490
Part XIII
The Terminal Emulator Add-in
492
31
Using the Terminal Emulator Add-in
You can use QuickTest Professional with the Terminal Emulator Add-in to
test applications on terminal emulators that support HLLAPI (High Level
Language Application Programming Interface) as well as those that do not,
for example, emulator sessions configured to work with the VT100 protocol
(using the Text-only option). HLLAPI allows a PC application to
communicate with a mainframe application with extended capabilities.
If your emulator supports HLLAPI, QuickTest recognizes the screen and field
objects in your emulator screen. If your emulator does not support HLLAPI,
or you have configured QuickTest in Text-only mode, QuickTest records
operations in terms of the text as it appears in the rows and columns of your
emulator screen.
493
Chapter 31 • Using the Terminal Emulator Add-in
General Information
Prerequisites
Opening Your You can open your Terminal Emulator Add-in application
Application before or after opening QuickTest and creating a test.
Add-in None
Dependencies
Other ➤ Before using the Terminal Emulator Add-in for the first
time, you must enable QuickTest to identify your
terminal emulator.
See “Using the Terminal Emulator Configuration
Wizard” on page 495.
➤ You must configure your terminal emulator settings to
work with QuickTest.
See “Setting Your Terminal Emulator to Work with
QuickTest” on page 512.
494
Chapter 31 • Using the Terminal Emulator Add-in
Setting Preferences
Custom Active Use the Terminal Emulator section in the dialog box.
Screen Capture (Tools > Options > Active Screen node > Custom Level)
Settings Dialog Box See the section on the Custom Active Screen Capture
(tests only) Settings dialog box in the HP QuickTest Professional User
Guide.
Note: If your terminal emulator settings for QuickTest have been configured
on another computer, you can copy an existing configuration file onto your
computer, instead of running the wizard. For more information, see
“Copying Existing Configurations” on page 510.
495
Chapter 31 • Using the Terminal Emulator Add-in
Note: The Terminal Emulator pane is available in the Options dialog box
only when the Terminal Emulator add-in is installed and loaded.
Once you are finished running the wizard, the terminal emulator you
selected is set as the default emulator when you open QuickTest with the
Terminal Emulator Add-in loaded. You can check your configurations by
clicking the Validate button in Terminal Emulator pane of the Options
dialog box. A description of any detected problem is displayed in the pane,
as well as a link to a specific troubleshooting Help page. For more
information, see “Validating your Terminal Emulator Configuration” on
page 524.
You can also use the wizard to select a different emulator for use with your
tests or components. For more information, see “Modifying Your Terminal
Emulator Settings” on page 522.
Note: If you want to use a terminal emulator that supports HLLAPI, make
sure that you close any application that is currently using the HLLAPI .dll
file before you begin using the wizard. Otherwise, the wizard will not be able
to connect to your terminal emulator.
496
Chapter 31 • Using the Terminal Emulator Add-in
When you click Next, the Specify Wizard Operation screen opens.
497
Chapter 31 • Using the Terminal Emulator Add-in
498
Chapter 31 • Using the Terminal Emulator Add-in
Note: If you chose a preconfigured setting, you can click Finish instead of
Next to begin working with QuickTest to test the emulator you selected.
However, if you are testing a Web-based emulator, or if QuickTest is not
recording or recognizing objects as expected, it is recommended to click
Next and define the emulator screen settings. Note that the emulator screen
settings do not affect run sessions; they affect only recording and other
object operations (for example, inserting checkpoints, using the Object Spy,
and so on.)
For more information on using your emulator with QuickTest, see “Testing
Terminal Emulator Applications” on page 519.
499
Chapter 31 • Using the Terminal Emulator Add-in
If your emulator supports HLLAPI, enable it and set the emulator short
session name to the uppercase letter A. For more information, see “Setting
Your Terminal Emulator to Work with QuickTest” on page 512.
When you click Next, the Configure HLLAPI Properties screen opens.
500
Chapter 31 • Using the Terminal Emulator Add-in
If your emulator does not support HLLAPI, select Emulator does not support
HLLAPI. When you click Next, the Configure Emulator Classes screen opens.
For more information, see “Configure Emulator Classes Screen” on
page 505.
501
Chapter 31 • Using the Terminal Emulator Add-in
The table below lists the DLL and function names used by the supported
terminal emulators.
➤ HLLAPI dll path. QuickTest uses the HLLAPI dynamic-link library file
specified for the selected emulator to connect to the emulator and to
retrieve data concerning its current status. This file usually resides in the
terminal emulator installation folder. You can click the browse button to
search for the path.
➤ HLLAPI function name. The HLLAPI DLL for the selected emulator uses this
function as the entry point for all HLLAPI calls.
➤ HLLAPI format. This is the format by which QuickTest attempts to identify
your emulator screen. If you are working with VT protocols, select the
Text-only option. Otherwise, it is recommended to select Auto-detect.
If, in the next screen, QuickTest is unable to capture the text from your
terminal emulator, you may need to return to this screen and change this
selection to Classic, Extended, or Text-only.
When you click Next, the HLLAPI Configuration Test screen opens.
502
Chapter 31 • Using the Terminal Emulator Add-in
Check that the screen capture test is correct for your currently selected
terminal emulator, and that all the text has been correctly identified and
displayed.
If the wizard displays the emulator screen and the text correctly, click Next.
The Configure Emulator Classes screen opens. For more information, see
“Configure Emulator Classes Screen” on page 505.
503
Chapter 31 • Using the Terminal Emulator Add-in
➤ Check that the settings you entered in the Configure HLLAPI Properties
screen are accurate (DLL path, procedure, format). For more information,
see “Configure HLLAPI Properties Screen” on page 501.
➤ Make sure that the HLLAPI .dll file you specified in the DLL path is not in
use by QuickTest or another application. If the .dll file is currently in use
by another application, click Cancel to close the wizard, close the
application using the DLL, and restart the wizard. If the .dll file is
currently in use by QuickTest, choose a different emulator and create a
new test, then reopen the wizard and modify the original configuration
as required.
2 If the display is still not correct, click Back and in the Configure HLLAPI
Properties screen, change the HLLAPI format to Text-only. You should also
use the Text-only option if you are working with a VT protocol, or if you
have begun working in QuickTest and encountered problems with recording
and running tests or components. For more information, see “Configure
HLLAPI Properties Screen” on page 501.
3 If all the above tips have failed to solve the problem, click Back and in the
Configure HLLAPI Properties screen, select Emulator does not support
HLLAPI. For more information, see “Configure HLLAPI Properties Screen” on
page 501.
Tip: If you have a good understanding of your emulator, you may be able to
solve any problems you experience by adjusting the configuration settings.
For more information, see Chapter 34, “Adjusting Your Terminal Emulator
Configuration Settings.”
504
Chapter 31 • Using the Terminal Emulator Add-in
➤ Main window class. Click the uppermost title bar of the main emulator
window.
➤ Text window class. Click on the text within the emulator screen.
➤ Toolbar class. Click the terminal emulator’s toolbar (if applicable).
➤ Status bar class. Click the lowest status bar of the main emulator window
(if applicable).
505
Chapter 31 • Using the Terminal Emulator Add-in
Check that the displayed process name is correct for this emulator.
Tip: You can view the image names of the currently loaded processes in the
Image Name column of the Windows Task Manager Processes tab.
If your emulator does not support HLLAPI, you need to configure your
emulator screen correctly for use with QuickTest. Make sure that the
Configure Emulator Screen check box is selected.
If you select the Configure Emulator Screen check box and click Next, the
Configure Emulator Screen Settings screen opens. For more information, see
“Configure Emulator Screen Settings Screen” on page 507.
If you choose not to configure the emulator screen settings, the Terminal
Emulator Add-in automatically adjusts the screen size and alignment, using
a proprietary algorithm with the settings retrieved for the emulator.
If you do not select the Configure Emulator Screen check box, when you
click Next, the Completing the Terminal Emulator Configuration Wizard
screen opens. For more information, see “Completing the Terminal
Emulator Configuration Wizard Screen” on page 509.
506
Chapter 31 • Using the Terminal Emulator Add-in
As you change the settings for the emulator screen, the grid automatically
adjusts to show the new settings.
After you mark the text area on your emulator screen you can fine-tune your
settings by adjusting the text screen settings.
507
Chapter 31 • Using the Terminal Emulator Add-in
➤ Number of columns and rows. Specify the number of columns and rows in
your emulator screen.
➤ Character size. Select the width and height of your emulator’s characters to
fit correctly in the defined emulator screen.
You can specify how the text on your emulator’s screen should be aligned in
relation to the emulator window when the window size changes. The effect
of these settings depends on the behavior of your emulator:
➤ Screen alignment. Select the vertical alignment (Top or Center) and the
horizontal alignment (Left or Center) of the emulator screen inside the
window. These options are already optimized for preconfigured emulator
settings, and cannot be modified.
Tip: The screen alignment settings determine how QuickTest identifies the
information on your emulator screen. If you are having trouble recording
and running tests or components (for example, the ClickPosition method is
not accurately determining the coordinates), try changing the Screen
alignment settings.
➤ Screen offset. Select the top and left offset for the text on your emulator
screen in relation to the emulator window. For example, if you know that
your emulator always reserves one blank row at the top of the screen, set the
offset to 1.
Note: You can open the wizard again at any time to adjust these settings, by
clicking Open Wizard in the QuickTest Tools > Options > Terminal Emulator
pane. For more information, see “Modifying Your Terminal Emulator
Settings” on page 522.
508
Chapter 31 • Using the Terminal Emulator Add-in
When you click Next, the Completing the Terminal Emulator Configuration
Wizard screen opens.
509
Chapter 31 • Using the Terminal Emulator Add-in
To save your settings to a separate registry file, select Save terminal emulator
settings to file and specify a location.
Note: It is recommended that you save the settings you have just configured
to a separate registry file. This allows you to restore this exact configuration
if you later change your configuration settings. For more information, see
“Modifying Your Terminal Emulator Settings” on page 522.
If you save your settings to a registry file, other users will be able to copy and
use your terminal emulator configuration. For more information, see
“Copying Existing Configurations” on page 510.
When you click Finish, the name you assigned to your new configuration
settings is added to the list of available terminal emulators in the Terminal
Emulator pane of the Options dialog box.
Note: If you are using the wizard from the Terminal Emulator pane of the
Options dialog box, any changes you make are not applied to the currently
open test or component. To apply your changes, close your test or
component and reopen it.
510
Chapter 31 • Using the Terminal Emulator Add-in
If the settings for your terminal emulator have been configured and saved to
a file on another computer (or on a network drive), you can copy this file to
your computer, instead of running the wizard and defining the settings
yourself. Before you copy the saved configuration, make sure you know the
vendor name and the emulator name assigned to the configuration, and the
exact name and location of the file. The file has a .reg extension.
After you have copied a configuration file from another location, the
emulator name assigned to this configuration is added to the list of available
terminal emulators for your QuickTest installation.
4 Click Yes to add the information into the registry. A message opens
confirming that the information has been copied into the registry.
5 Click OK. The emulator name assigned to this configuration is added to the
list of available terminal emulators for your QuickTest installation.
511
Chapter 31 • Using the Terminal Emulator Add-in
After you have opened QuickTest with the Terminal Emulator Add-in
loaded, you can select the new emulator name from the list in the
Tools > Options > Terminal Emulator pane, and set it as your default
emulator. You can also open the wizard to modify the emulator settings. For
more information, see “Modifying Your Terminal Emulator Settings” on
page 522.
Note: If you copy a configuration file after starting QuickTest, you need to
close and reopen QuickTest to see the updated list of available emulators.
➤ Connect your emulator to the host before running the Terminal Emulator
Configuration Wizard and before recording each test or component.
➤ Assign the uppercase letter A as the short name for the current emulator
session.
Note: You may need to restart the emulator after changing these settings.
512
Chapter 31 • Using the Terminal Emulator Add-in
Attachmate EXTRA!
To connect your EXTRA! terminal emulator to QuickTest:
1 Load EXTRA!.
2 In EXTRA!, select Options > Global Preferences. The Global Preferences
dialog box opens.
3 Click the Advanced tab.
4 In the HLLAPI shortname list, select the uppercase letter A as the Short
Name.
513
Chapter 31 • Using the Terminal Emulator Add-in
5 Click the browse button, browse to and select your session profile, and click
OK.
6 Save the profile.
Tip: It is recommended to save the profile before you start testing with
QuickTest Professional. This enables you to configure the terminal emulator
once and then reuse the saved settings.
Note: If this is the first time that you are connecting to a myEXTRA!
terminal viewer, you must install the HLLAPI DLL. Click Preferences and
then click the Install HLLAPI Client Components link.
514
Chapter 31 • Using the Terminal Emulator Add-in
Hummingbird HostExplorer
To connect your HostExplorer terminal emulator to QuickTest:
1 Load HostExplorer.
2 From the HostExplorer main menu, select File > Save Session Profile.
3 The Save Profile dialog box opens. Set the HLLAPI Short Name to the
uppercase letter A.
4 From the main menu, select Options > API Settings.
5 The API Global Settings dialog box opens. Check the Update screen after
PS update and Auto sync options.
6 Click OK.
Alternatively:
1 Load HostExplorer.
2 Open a saved session.
3 Select Options > Edit Session Profile.
4 Select Terminal > API in the categories tree.
5 Select A as the session short name and click OK.
6 Save the session profile.
515
Chapter 31 • Using the Terminal Emulator Add-in
NetManange RUMBA
To connect your RUMBA terminal emulator to QuickTest:
1 Load RUMBA.
2 In RUMBA, select Options > API. The API Options dialog box opens.
3 Click the Identification tab.
4 In the Session Short Name field, type the uppercase letter A.
5 Click OK.
6 Save the profile.
Tip: It is recommended to save the profile before you start testing with
QuickTest Professional. This enables you to configure the terminal emulator
once and then reuse the saved settings.
516
Chapter 31 • Using the Terminal Emulator Add-in
Notes:
Seagull BlueZone
To connect your BlueZone terminal emulator to QuickTest:
1 Load BlueZone.
2 In BlueZone, select Options > API. The API Properties dialog box opens.
3 Click the Options tab.
4 In the Short Name Session Identifier field, type the uppercase letter A.
5 Click OK.
6 Save the session.
517
Chapter 31 • Using the Terminal Emulator Add-in
WRQ Reflection
To connect your Reflection terminal emulator to QuickTest:
1 Open a new or existing session.
2 Select Setup > Terminal.
3 In the Short Name field, type the uppercase letter A.
4 Click OK.
Zephyr Passport
To connect your Zephyr Passport terminal emulator to QuickTest:
1 Open a new or existing session.
2 Check that the session shortname (A) Passport.zws appears in the window
title bar.
518
32
Testing Terminal Emulator Applications
You can use the QuickTest Professional Terminal Emulator Add-in to test
applications running on most terminal emulators. The QuickTest
Professional Terminal Emulator Add-in recognizes your terminal emulator
and records and runs the operations you perform on the screens and fields
of the running application.
Note: You can record on only one terminal emulator session at a time.
Multiple open sessions may cause problems with recording and running
tests or components.
This chapter explains how to use QuickTest to record and run tests or
components on terminal emulator applications. For more information on
working with QuickTest, see the HP QuickTest Professional User Guide, and the
HP QuickTest Professional for Business Process Testing User Guide.
519
Chapter 32 • Testing Terminal Emulator Applications
520
Chapter 32 • Testing Terminal Emulator Applications
The terminal emulator screen refers to the area of the window in which the
application is displayed. Each time the host responds to user input to the
application, the screen changes.
Note: When you use the QuickTest Professional Terminal Emulator Add-in,
your test or component can include calls to WinRunner tests as long as
these tests do not use the WinRunner Terminal Emulator Add-in. Similarly,
when running a WinRunner test with the WinRunner Terminal Emulator
Add-in, your test can include calls to QuickTest Professional tests, as long as
these tests do not use the QuickTest Professional Terminal Emulator Add-in.
521
Chapter 32 • Testing Terminal Emulator Applications
If you need to change your selection or modify any of the settings, you can
do so in the Terminal Emulator pane of the Options dialog box
(Tools > Options > Terminal Emulator node). You can also validate your
current terminal emulator configurations in this pane.
522
Chapter 32 • Testing Terminal Emulator Applications
You can select an emulator to test using the Vendor and Emulator list boxes.
The displayed lists include all of the vendor/emulator combination settings
that are:
You can also open the wizard to configure a new terminal emulator setting
or modify an existing setting.
➤ Vendor. The list of available terminal emulator vendors. Select the vendor
for your emulator.
➤ Emulator. The list of terminal emulators available for the selected vendor.
Select the emulator application you want to test.
➤ Validate. Validates the current configurations of the selected emulator, and
provides a description of any detected problem. For more information, see
“Validating your Terminal Emulator Configuration” on page 524.
➤ Troubleshoot. Opens a specific Help page that provides a troubleshooting
solution where available. For more information, see “Validating your
Terminal Emulator Configuration” on page 524.
➤ Protocol. The protocol that your emulator uses. It is recommended to select
Auto-detect.
➤ Screen label. The area from which QuickTest reads the label property of the
emulator screen while recording a test or component. If the location and
length of the label are correctly defined, QuickTest uses this value as the
name of the TeScreen object. The Screen label area is enabled only for
emulators that support HLLAPI.
Enter the Start row and Start column coordinates that mark the beginning
of the emulator label. Define the size of the label by entering the Length
(in characters).
523
Chapter 32 • Testing Terminal Emulator Applications
It is possible to change the way that QuickTest reads the label property of
the emulator screen, by adjusting the configuration settings. For more
information, see “Adjusting Your Terminal Emulator Configuration
Settings” on page 545.
➤ Open Wizard. Opens the Terminal Emulator Configuration Wizard. The
wizard enables you to define new settings for a terminal emulator or to
modify existing user-defined settings. For more information, see “Using the
Terminal Emulator Configuration Wizard” on page 495.
➤ Adjust Configuration. Opens the Terminal Emulator Configuration
Adjustments dialog box to allow changes to existing configuration settings
in exceptional circumstances.
In general, it is recommended to use the Terminal Emulator Configuration
Wizard to configure your emulator screen settings. For more information,
see “Configure Emulator Screen Settings Screen” on page 507. You should
use the Adjust Configuration option only if you have a good understanding
of your terminal emulator settings and of the impact that such changes may
have on your tests or components. For more information, see Chapter 34,
“Adjusting Your Terminal Emulator Configuration Settings.”
524
Chapter 32 • Testing Terminal Emulator Applications
➤ Ensure that you have configured the correct DLL path and name in the
Terminal Emulator Configuration Wizard (Tools > Options > Terminal
Emulator node > Open Wizard).
➤ For more information, see the table listing the DLL names used by
supported terminal emulators in “Configure HLLAPI Properties Screen” on
page 501, or the documentation provided by your emulator provider.
➤ Ensure that you have opened a current session in your terminal emulator.
➤ For HLLAPI emulators, ensure that the emulator short session name is set to
the uppercase letter A. You may need to restart the emulator after changing
this setting.
525
Chapter 32 • Testing Terminal Emulator Applications
➤ Ensure that you have correctly configured the terminal emulator main
window class name in the Terminal Emulator Configuration Wizard (Tools >
Options > Terminal Emulator node > Open Wizard).
➤ If the main window class name has a postfix that changes each time you
launch the emulator, enter only the non-changing portion of the name in
the Terminal Emulator Configuration Wizard.
➤ Ensure that you have correctly configured the terminal emulator main
window class name in the Terminal Emulator Configuration Wizard (Tools >
Options > Terminal Emulator node > Open Wizard).
➤ If the main window class name has a postfix that changes each time you
launch the emulator, enter only the non-changing portion of the name in
the Terminal Emulator Configuration Wizard.
➤ Restart QuickTest Professional and then restart the emulator. If this does not
resolve the problem, contact your emulator provider.
526
Chapter 32 • Testing Terminal Emulator Applications
➤ Ensure that you have opened a current session in your terminal emulator.
➤ Ensure that you have correctly configured the terminal emulator main
window class name in the Terminal Emulator Configuration Wizard (Tools >
Options > Terminal Emulator node > Open Wizard).
➤ If the main window class name has a postfix that changes each time you
launch the emulator, enter only the non-changing portion of the name in
the Terminal Emulator Configuration Wizard.
➤ Ensure that you have configured the correct DLL path and name in the
Terminal Emulator Configuration Wizard (Tools > Options > Terminal
Emulator node > Open Wizard).
➤ For more information, see the table listing the DLL names used by
supported terminal emulators in “Configure HLLAPI Properties Screen” on
page 501, or the documentation provided by your emulator provider.
527
Chapter 32 • Testing Terminal Emulator Applications
Unknown error
The validation process failed due to an unknown error.
For example, suppose you type Guest into an appropriate field on a Sign On
screen of your terminal emulator application. This field has the text User
attached to it.
It also records that you performed a Set method on the TeField object.
528
Chapter 32 • Testing Terminal Emulator Applications
➤ TeWindow Object
➤ TeScreen and TeField Objects
➤ TeTextScreen Object
TeWindow Object
TeWindow is the window test object for all supported terminal emulators,
consisting of the frame, menus, toolbar, and status bar (where applicable) of
the terminal emulator itself. It represents the terminal emulator window for
the session.
The TeWindow object has a number of properties associated with it, but no
window-specific methods.
You can use the values of the Emulator status property and the other
properties of the TeWindow object to define recovery scenarios for your
terminal emulator application tests or components. Recovery scenarios
define possible unexpected events and errors, and the operations necessary
to recover the run session. For more information on recovery scenarios for
terminal emulator tests or components, see “Understanding Terminal
Emulator Recovery Scenarios” on page 533.
The property values for the TeWindow object can be retrieved using the
GetTOProperty and GetROProperty methods. For more information on these
methods and the TeWindow object properties, see the HP QuickTest
Professional Object Model Reference.
529
Chapter 32 • Testing Terminal Emulator Applications
You can record the selection of menu options in the terminal emulator
window, as well as the operations that are performed in the dialog boxes
that open from the menu options. For example, you can test a business
process in which the user selects a menu option that displays a dialog
containing a list of macros, and then selects a macro to run.
QuickTest records these operations using the standard Windows test objects
and methods for menus and dialog boxes. For more information on
standard Windows objects, methods, and properties, see the HP QuickTest
Professional Object Model Reference.
Note: QuickTest does not record operations on the toolbar and status bar in
the terminal emulator window. However, you can insert checkpoints or
output values for the status bar of the terminal emulator window while
recording. For more information, see Chapter 33, “Enhancing Your Terminal
Emulator Tests and Components.”
530
Chapter 32 • Testing Terminal Emulator Applications
The TeScreen object is the application area. It changes each time input is
received from the host. The TeField object includes unprotected fields,
which can receive input, and protected fields, which contain fixed text.
Terminal
Emulator window
(TeWindow)
Unprotected
field TeField
Protected field
TeField
Terminal
Emulator screen
TeScreen
Note: By default, QuickTest identifies a screen object using its label property.
The value of the label property is determined by the location of the label
area, which is defined by the values of the screen label column, screen label
length and screen label row properties. These three properties are part of the
TeScreen test object description and are therefore not available in the Object
Identification dialog box. For more information on the Object Identification
dialog box, see the HP QuickTest Professional User Guide.
531
Chapter 32 • Testing Terminal Emulator Applications
TeTextScreen Object
The TeTextScreen object is the text screen test object for terminal emulators
that do not support HLLAPI or that have been configured as supporting
text-only HLLAPI operations.
Terminal Emulator
window TeWindow
Text screen
TeTextScreen
532
Chapter 32 • Testing Terminal Emulator Applications
You can use the values of the Emulator status property and the other
properties of the TeWindow object to define specific recovery scenarios for
your terminal emulator application tests or components.
For each emulator status, you can create a recovery scenario that performs
an appropriate recovery operation. For example:
533
Chapter 32 • Testing Terminal Emulator Applications
Tip: You can launch your terminal emulator using the SystemUtil.Run
method as the first step of your test or component. For more information,
see the section on running and closing applications programmatically in the
HP QuickTest Professional User Guide, and the Standard Windows section of
the HP QuickTest Professional Object Model Reference.
While recording, the user pressed the ENTER key in the first screen of an
application, waited for the screen to change, and then typed the name
MERCTEST and a password in the appropriate fields.
TeWindow("TeWindow").TeScreen("Welcome").SendKey TE_ENTER
TeWindow("TeWindow").TeScreen("Welcome").Sync
TeWindow("TeWindow").TeScreen("Sign On").TeField("User").Set "MERCTEST"
TeWindow("TeWindow").TeScreen("Sign On").TeField("Password").
SetSecure "3c4feb5bc6233d6e6898bc"
534
Chapter 32 • Testing Terminal Emulator Applications
The following is a sample test on a terminal emulator that does not support
HLLAPI or that has been configured to support text-only HLLAPI operations.
Note that QuickTest records the TeTextScreen object instead of the TeScreen
object and that it does not record TeField objects. The operations are
recorded in terms of keyboard and mouse operations on the text screen,
rather than operations within fields.
TeWindow("TeWindow").TeTextScreen("TeTextScreen").ClickPosition 24,2
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type "l"
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type micReturn
TeWindow("TeWindow").TeTextScreen("TeTextScreen").WaitString
"FRSMAIN",1,2,1,8,2000
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type "qa1"
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type micReturn
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync
535
Chapter 32 • Testing Terminal Emulator Applications
536
33
Enhancing Your Terminal Emulator Tests
and Components
After you create your test or component, you can enhance it by adding
checkpoints, retrieving output values, adding synchronization points,
parameterizing values, and inserting terminal emulator objects, methods
and properties into your test or component. For example, you can use
standard checkpoints to check the number of protected or input fields in a
screen, or you can check the content of a specific field and whether it is
protected or visible.
537
Chapter 33 • Enhancing Your Terminal Emulator Tests and Components
Synchronizing your run session ensures that QuickTest performs the next
step in the test or component only when your terminal emulator
application is ready to continue. This prevents incidental differences in host
response time and other factors from affecting successive run sessions.
538
Chapter 33 • Enhancing Your Terminal Emulator Tests and Components
For all emulators, you can instruct QuickTest to delay the run session:
539
Chapter 33 • Enhancing Your Terminal Emulator Tests and Components
When you record using a terminal emulator that does not support HLLAPI,
or that has been configured as supporting text-only HLLAPI operations,
QuickTest automatically generates a Sync statement for the TeTextScreen
object each time a specified key is pressed. The default is the ENTER key.
QuickTest waits a specified period of time, to allow the host sufficient
response time.
You can also insert a synchronization step at any point during a recording
session. Select Insert > Emulator Synchronization or click the Insert
Emulator Synchronization Step toolbar button.
You can optionally specify a timeout in milliseconds for the Sync statement,
after which the run session continues regardless of the status of the
emulator. If you do not specify a timeout value, QuickTest uses the default
timeout interval, as described in “Setting Synchronization Timeouts” on
page 542.
For the TeScreen object, the Sync method has the following syntax:
TeScreen(description).Sync [Timeout]
Using this method with a TeScreen object ensures that the run session is
delayed until a response is received from the host and the emulator status is
set to Ready (able to receive user input).
For the TeTextScreen object, the Sync method has the following syntax:
TeTextScreen(description).Sync [Timeout]
540
Chapter 33 • Enhancing Your Terminal Emulator Tests and Components
Notes:
TeTextScreen object:
TeTextScreen(description).WaitString String [, TopRow, LeftColumn,
BottomRow, RightColumn, Timeout, RegExp]
541
Chapter 33 • Enhancing Your Terminal Emulator Tests and Components
The position on the screen is defined by the values of the four corners of the
rectangle, each corner with its own argument.
You can specify that the value specified in the String argument is a regular
expression by setting the value of the RegExp argument to True. Regular
expressions enable QuickTest to identify objects and text strings with
varying values. For more information on regular expressions, see the
HP QuickTest Professional User Guide.
You can also add an optional timeout value in milliseconds after which the
run session continues regardless of whether the text string appears on the
screen. If you do not specify this value, QuickTest uses the default timeout
interval. For more information, see “Setting Synchronization Timeouts” on
page 542.
The WaitString method returns a value of True if the string appears on the
screen within the timeout period and False if the timeout expires before the
string appears.
This setting is also used as the default timeout for the Sync and WaitString
methods for both the TeScreen and the TeTextScreen objects if a timeout
argument is not specified. For more information on the Test Settings dialog
box, see the HP QuickTest Professional User Guide.
542
Chapter 33 • Enhancing Your Terminal Emulator Tests and Components
TeField
TeScreen
TeWindow
The following test object classes and icons apply to terminal emulators that
do not support HLLAPI or that have been configured as supporting text-only
HLLAPI operations:
TeTextScreen
TeWindow
543
Chapter 33 • Enhancing Your Terminal Emulator Tests and Components
The following test object classes and icons apply to the Windows objects for
the terminal emulator window status bar and the dialog boxes that open
from the menu options in the terminal emulator window:
Dialog
WinObject
544
34
Adjusting Your Terminal Emulator
Configuration Settings
Note: Do not change the configuration settings using the options in this
dialog box unless you have a good understanding of your terminal emulator
and of the impact that such changes may have on your tests or components.
545
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
For an explanation of the purpose and effect of each of the options in this
dialog box, see “Understanding the Configuration Adjustment Options” on
page 551.
The choice of options displayed in this dialog box depends on the type of
terminal emulator selected in the Terminal Emulator pane.
546
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
547
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
548
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
When you have made all the required changes, click OK to update the
current terminal emulator configuration and close the dialog box.
You can also restore the settings for a user-defined terminal emulator, if
these settings were previously saved using the wizard. For more information
on saving emulator settings, see “Completing the Terminal Emulator
Configuration Wizard Screen” on page 509.
549
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
3 Click Yes. A message opens confirming that the information has been
copied into the registry.
4 Click OK. The settings in the saved file have been restored.
550
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
For a small number of options, the value is saved and applied regardless of
the emulator selected in the Terminal Emulator pane of the Options dialog.
For example, if you select not to record menus and dialog boxes, QuickTest
keeps this setting even if you select a different emulator.
➤ Emulator Settings
➤ HLLAPI Settings
➤ Object Identification Settings
➤ Record Settings
➤ Run Settings
Some of the options may not be available for the selected terminal emulator.
For example, if you have selected an emulator that does not support
HLLAPI, the HLLAPI-specific options are not available.
Tip: You modify options that are displayed as bullets by clicking the text and
modifying the value when the text becomes an editable box. For more
information, see “Changing Configuration Settings” on page 549.
551
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
Emulator Settings
The following options can be used to define configuration settings that
cannot be changed using the wizard:
➤ Code page number (IBM PCOM only). If you are using an IBM PCOM
emulator with a language other than English, enter the code page number
for this language. For example, for the German language keyboard, enter the
value 1252. To use the default code page conversion, specify 0. To view a list
of languages and their code page numbers, select Regional Options in the
Windows Control Panel and select the Advanced button in the General tab.
QuickTest uses this code page to correctly identify the keys you record.
552
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
HLLAPI Settings
The following options can be used to define configuration settings for
emulators that support HLLAPI. These options are not available when an
emulator is selected that does not support HLLAPI.
➤ HLLAPI dll file. QuickTest uses the HLLAPI DLL file specified for the selected
emulator to connect to the emulator and to retrieve data concerning its
current status.
If you are using a customized version of a preconfigured emulator, you may
need to specify a different DLL file name.
➤ HLLAPI function name. The HLLAPI DLL for the selected emulator uses this
function as the entry point for all HLLAPI calls.
If you are using a customized version of a preconfigured emulator, you may
need to specify a different function name.
➤ Argument size for HLLAPI function. For most emulators, the HLLAPI
function receives 16-bit (word) arguments. For some emulators, such as IBM
PCOM, the HLLAPI function receives 32-bit (integer) arguments.
Select the correct argument size for the selected emulator: word (16 bits) or
integer (32 bits).
➤ Execute HLLAPI calls from multiple threads. Some emulators allow HLLAPI
calls from multiple threads, while others require all HLLAPI calls to be
executed from the same thread. For a preconfigured emulator configuration,
this setting is selected by default.
Clear this check box to instruct QuickTest to open a separate process for
HLLAPI calls and to execute all HLLAPI calls from this single thread.
553
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
➤ Warn if HLLAPI dll file not found. If this option is selected, QuickTest
displays a warning message when the HLLAPI DLL file for the current
configuration cannot be found. For example, QuickTest warns you if you try
to use the Terminal Emulator Add-in before you have installed the emulator
itself.
If you clear this check box and QuickTest cannot find the required DLL file,
it may be difficult to determine why QuickTest is not recording successfully.
It is therefore recommended that you leave this option selected.
➤ Identify screen label using all characters. The label property value is used to
identify the TeScreen test object. The location and length of the label are
defined for the selected emulator in the Terminal Emulator pane. For more
information, see “Modifying Your Terminal Emulator Settings” on page 522.
By default, only the protected characters in the defined label area are
captured for the label property value.
Select this option if you want QuickTest to capture all the characters in the
label area for the label property, including any unprotected or hidden
characters that may form part of the label.
554
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
Record Settings
The following options can be used to configure the way QuickTest records
operations:
555
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
Note: For emulators that do not support HLLAPI and those configured as
supporting text-only HLLAPI operations, QuickTest always uses Text screen
mode and this option is not available.
556
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
Note: This feature is available only for emulators that support HLLAPI.
557
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
➤ Use property patterns. Select this check box to use property patterns to
record regular expressions in identification properties, such as for date and
time values in a screen label.
For more information on property patterns, see Using Property Patterns to
Identify Objects (Advanced) in PropPattern.htm. This file is located in the help
subfolder of the QuickTest installation folder.
You can accept the default property pattern configuration file, change its
contents, or specify a different property pattern configuration file. The
default file is designed for applications where the current time forms part of
the screen label. It defines regular expressions that replace the current time
in the screen label, creating a reliable description and readable name for the
screen.
Run Settings
The following options can be used to configure the way QuickTest runs tests
or components for the selected terminal emulator, if the emulator supports
HLLAPI:
558
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
➤ Run steps containing special emulator keys using keyboard events. Instructs
QuickTest to perform SendKey commands using keyboard events. If you do
not use this option to specify key codes, QuickTest performs SendKey
commands using the corresponding HLLAPI function.
Some emulators, for example, Attachmate Extra!, recognize the RESET
command while the emulator is busy only when it is sent using keyboard
events. In the Keys for RESET function option, specify the keyboard
combination of the virtual key code by specifying the decimal value of each
key in the code, separated by semicolons (;).
➤ Time between emulator status checks (in milliseconds). During a Sync step,
QuickTest waits the specified period of time before checking the emulator
status. QuickTest repeats these checks at the specified interval until the
emulator status changes to Ready (or until the Sync timeout is reached), and
then continues with the run session. For more information on
synchronization, see “Synchronizing the Run Session” on page 538.
Specify the interval (in milliseconds) between emulator status checks. The
default is 200.
Note: Specifying a very long interval could significantly increase the time
your tests or components take to run.
559
Chapter 34 • Adjusting Your Terminal Emulator Configuration Settings
560
Part XIV
The Visual Basic Add-in
562
35
Using the Visual Basic Add-in
You can use the QuickTest Professional Visual Basic Add-in to test objects
(controls) in Visual Basic applications. You can create and run tests and
components on these objects, as well as check their properties. You create
and run tests and components on Visual Basic applications in much the
same way as you do for other Windows-based applications.
The Visual Basic Add-in provides test objects, methods, and properties that
can be used when testing objects in Visual Basic applications. For more
information, see the Visual Basic section of the HP QuickTest Professional
Object Model Reference.
563
Chapter 35 • Using the Visual Basic Add-in
General Information
Prerequisites
Opening Your You can open your Visual Basic application before or after
Application opening QuickTest.
Add-in None
Dependencies
Setting Preferences
564
Chapter 35 • Using the Visual Basic Add-in
565
Chapter 35 • Using the Visual Basic Add-in
566
Part XV
The VisualAge Smalltalk Add-in
568
36
Using the VisualAge Smalltalk Add-in
You can use the QuickTest Professional VisualAge Smalltalk Add-in to test
objects (controls) in VisualAge Smalltalk applications. You can create and
run tests and components on these objects, as well as check their properties.
You create and run tests and components on VisualAge Smalltalk
applications in much the same way as you do for other Windows-based
applications.
The VisualAge Smalltalk Add-in uses a sub-set of the standard Windows test
objects, methods, and properties, which can be used when testing objects in
VisualAge Smalltalk applications. For more information, see the VisualAge
Smalltalk section of the HP QuickTest Professional Object Model Reference.
569
Chapter 36 • Using the VisualAge Smalltalk Add-in
General Information
Prerequisites
Opening Your You can open your VisualAge Smalltalk application before
Application or after opening QuickTest.
Add-in None
Dependencies
Setting Preferences
570
Chapter 36 • Using the VisualAge Smalltalk Add-in
571
Chapter 36 • Using the VisualAge Smalltalk Add-in
Note: The qt-adapter agent is similar to the agent provided with the
WinRunner VisualAge Smalltalk Add-in. Therefore, some steps in the
configuration procedure below include selecting values containing
WinRunner or WR.
572
Chapter 36 • Using the VisualAge Smalltalk Add-in
8 To save your changes, select File > Save Image, or click OK in the Warning
dialog box when closing the VisualAge Smalltalk application.
9 Recompile your VisualAge Smalltalk application with the qt-adapter agent.
You are now ready to create and run tests on VisualAge Smalltalk
applications.
573
Chapter 36 • Using the VisualAge Smalltalk Add-in
574
Part XVI
The Web Add-in
576
37
Using the Web Add-in
You can use the Web Add-in to test objects (controls) in your Web pages and
applications, as well as check their properties. You can test Web objects such
as hyperlinks, images, image maps, buttons and edit boxes. By adding Web
object checkpoints to your tests, you can compare Web objects in different
versions of your Web site.
You can also perform checks on objects within your application or Web site,
such as images or form elements. In addition, you can add accessibility
checkpoints to help you quickly identify areas of your Web site that may not
conform to the W3C Web Content Accessibility Guidelines. You can also
output property or text values from the objects in your Web site.
You can create steps on more than one browser tab, if your browser supports
tabbed browsing. For information on supported browser versions, see the
HP QuickTest Professional Readme.
The Web Add-in provides test objects, methods, and properties that can be
used when testing objects in Web applications. For more information, see
the Web section of the HP QuickTest Professional Object Model Reference.
577
Chapter 37 • Using the Web Add-in
Note: Web Add-in Extensibility enables you to develop support for testing
third-party and custom Web controls that are not supported out-of-the-box
by the QuickTest Professional Web Add-in. For more information, see the
Web Add-in Extensibility Help, available from the QuickTest Professional
Extensibility Documentation program group (Start > Programs >
QuickTest Professional > Extensibility > Documentation). A printer-friendly
(PDF) version of the HP QuickTest Professional Web Add-in Extensibility
Developer Guide is available in the <QuickTest Professional installation
folder>\help\Extensibility folder.
578
Chapter 37 • Using the Web Add-in
General Information
Other When you load the Siebel Add-in in addition to the Web
Add-in, the object identification settings are automatically
customized. For this reason, the Web Add-in is not
available in the Environment list in the Object
Identification dialog box (Tools > Object Identification),
even though the Web Add-in is loaded.
For more information, see “About the Siebel Add-In” on
page 420.
Prerequisites
Opening Your You must open QuickTest before opening your Web
Application application.
Add-in None
Dependencies
Setting Preferences
579
Chapter 37 • Using the Web Add-in
580
Chapter 37 • Using the Web Add-in
Note: By default, the name assigned to the Browser test object in the object
repository is always the name assigned to the first page recorded for the
browser object. The same test object is used each time you record on a
browser with the same ordinal ID in future recording sessions. Therefore,
the name used for the browser in the steps you record may not reflect the
actual browser name.
581
Chapter 37 • Using the Web Add-in
582
Chapter 37 • Using the Web Add-in
➤ You can create tests and components to run on Netscape Browser or Mozilla
Firefox in the following ways:
➤ Use the keyword-driven methodology. Create an object repository for
your application using the Object Repository window (local object
repository) or Object Repository Manager (shared object repository), and
then add steps using the Keyword View or Step Generator. When you use
the keyword-driven methodology, you can add objects using Mozilla
Firefox or Netscape Browser, as well as Microsoft Internet Explorer.
➤ Record the test or component on Microsoft Internet Explorer. After a test
or component is recorded, you run it on Netscape Browser, Mozilla
Firefox, or Microsoft Internet Explorer.
➤ Generally, tests and components that were recorded on Microsoft Internet
Explorer will run on Netscape Browser or Mozilla Firefox without requiring
any modification. However, there are several differences that you need to
consider:
➤ QuickTest does not support Netscape Browser or Mozilla Firefox menus
or sidebars. The only toolbar buttons that are supported are the Home,
Refresh, Back, Forward, and Stop buttons. All other toolbars and toolbar
buttons are not supported.
The following toolbar buttons are the only supported toolbar buttons for
Netscape Browser.
The following toolbar buttons are the only supported toolbar buttons for
Mozilla Firefox.
583
Chapter 37 • Using the Web Add-in
➤ QuickTest does not support the option to zoom in and out of a Web page
in Mozilla Firefox. If you use this option, some QuickTest functionality
may not work as expected. For example, the Object Spy may be unable to
correctly highlight objects or display object details. (These problems do
not occur if the Zoom Text Only Firefox menu item is selected.)
Additionally, bitmap checkpoints will fail if a different zoom level is used
when capturing the expected bitmap than the zoom level used when
running the checkpoint step.
➤ Standard checkpoints for links and images that are created on Internet
Explorer using Record, or using the Active Screen, may not pass when
run using Mozilla-based browsers, even if the checkpoints pass when the
test is run using Internet Explorer.
Similarly, standard checkpoints for links and images that are created on
Active Screen captures that were captured from a Mozilla-based browser
(using the Update Active Screen images and values option during an
Update Run session), may not pass when run using Internet Explorer,
even if the checkpoints pass when the test is run using the Mozilla-based
browser.
You can use regular expressions if you want to create checkpoints for
links and images that run on both Internet Explorer and Mozilla-based
browsers. For more information on regular expressions, see the section
on understanding and using regular expressions in the HP QuickTest
Professional User Guide.
➤ Netscape Browser or Mozilla Firefox use different standard dialog boxes
than the Windows standard dialog boxes used by Microsoft Internet
Explorer. If your test or component contains steps on such dialog boxes,
you should create appropriate steps to be used when running on
Netscape Browser or Mozilla Firefox.
584
Chapter 37 • Using the Web Add-in
For example, the following two dialog boxes are a security alert of the
same Web site, the one on the left is from Microsoft Internet Explorer
and the one on the right is from Mozilla Firefox. Although they both
look like a Windows dialog box, the Mozilla Firefox one is actually a
browser window.
585
Chapter 37 • Using the Web Add-in
Tips:
➤ You can configure the browser to always display your pages using the
Mozilla Firefox engine (In Netscape Browser, select Tools > Options > Site
Controls, and, in the Site List tab, make sure that the Firefox radio button
is selected in the Rendering Engine area).
➤ You can configure the browser to always display your pages using the
Mozilla Firefox engine by clearing the Automatically use the Internet
Explorer Engine check box while installing Netscape Browser.
➤ The Object property accesses DOM objects. These are supported only by
Microsoft Internet Explorer. For more information on the Object property,
see the section on accessing native properties and operations in the
HP QuickTest Professional User Guide.
Note: Embedded browser controls are supported only for Microsoft Internet
Explorer.
586
Chapter 37 • Using the Web Add-in
You can also instruct QuickTest not to perform automatic page checkpoints
when you run your test by selecting the Ignore automatic checkpoints while
running tests check box in the Web > Advanced pane of the Options dialog
box.
For more information, see “Setting Web Testing Options” on page 82.
587
Chapter 37 • Using the Web Add-in
Note: You can also right-click a Page item in the Keyword View and select
Insert Standard Checkpoint to open the Page Checkpoint Properties dialog
box.
588
Chapter 37 • Using the Web Add-in
6 Specify the settings for the checkpoint. For more information, see
“Understanding the Page Checkpoint Properties Dialog Box” on page 590.
7 Click OK to close the dialog box. A checkpoint step is added to your test.
Note: You cannot select the HTML Verification options while creating a page
checkpoint from the Keyword View or Active Screen. You can select these
options only when creating a Page checkpoint while recording.
589
Chapter 37 • Using the Web Add-in
590
Chapter 37 • Using the Web Add-in
Information Description
591
Chapter 37 • Using the Web Add-in
Value The value of the property. Note that the value in the page
will be the expected value of the property when you run
your test unless you edit this value. For information on
editing the value of a property, see the section on
configuring values in the HP QuickTest Professional User
Guide.
Note: By default, page checkpoints include a check on the page load time.
The load time displayed in the Page Checkpoint Properties dialog box is the
amount of time it took the page to load during recording. To add to the time
that QuickTest allows for pages to load without causing page checkpoints to
fail, increase the value of the Add seconds to page load time option in the
Web pane of the Options dialog. For more information, see the section on
setting global testing options in the HP QuickTest Professional User Guide.
Option Description
HTML source Checks that the source in the Web page being tested
matches the expected HTML code (the source code of the
page at the time that the test is recorded). Available only
when creating a page checkpoint while recording.
592
Chapter 37 • Using the Web Add-in
Option Description
Edit HTML Source Opens the HTML Source dialog box, which displays the
(enabled only when expected HTML code. Edit the expected HTML source
the HTML Source code and click OK. Note that you can also use regular
check box is expressions when editing the expected HTML source code
selected) if you click the regular expression check box at the
bottom of the page. For more information on regular
expressions, see the section on understanding and using
regular expressions in the HP QuickTest Professional User
Guide.
You can search and replace text strings in the HTML
Source dialog box by right-clicking and choosing Find or
Replace. For more information on the Find dialog box, see
the section on finding text strings in the HP QuickTest
Professional User Guide. For more information on the
Replace dialog box, see the section on replacing text
strings in the HP QuickTest Professional User Guide.
HTML tags Checks that the HTML tags in the Web page being tested
match the expected HTML tags (the HTML tags on the
page at the time that the test is recorded). Available only
when creating a page checkpoint while recording.
Edit HTML Tags Opens the dialog box that displays the expected HTML
(enabled only when tags. Edit the expected HTML tags and click OK. Note that
the HTML Tags you can also use regular expressions when editing the
check box is HTML tags if you click the regular expression check box at
selected) the bottom of the page. For more information on regular
expressions, see the section on understanding and using
regular expressions in the HP QuickTest Professional User
Guide.
You can search and replace text strings in the Edit HTML
Tags dialog box by right-clicking and choosing Find or
Replace. For more information on the Find dialog box, see
the section on finding text strings in the HP QuickTest
Professional User Guide. For more information on the
Replace dialog box, see the section on replacing text
strings in the HP QuickTest Professional User Guide.
593
Chapter 37 • Using the Web Add-in
Option Description
Filter Link Check Opens the Filter Link Check dialog box, which enables
(enabled only when you to specify which hypertext links to check in the page.
the Links check box For more information, see “Filtering Hypertext Links” on
is selected) page 595.
Filter Image Check Opens the Filter Image Check dialog box, which enables
(enabled only when you to specify which image sources to check in the page.
the Images check For more information, see “Filtering Image Sources” on
box is selected) page 597.
Note: The Insert statement option is not available when adding a page
checkpoint during recording or when modifying an existing page
checkpoint. It is available only when adding a new page checkpoint to an
existing test while editing your test.
594
Chapter 37 • Using the Web Add-in
For more information, see “Checking All the Objects in a Page” on page 594.
595
Chapter 37 • Using the Web Add-in
Check box Each link on the page has a corresponding check box.
To check a link, select the corresponding check box (by
default all links are selected).
To exclude a link from the page checkpoint, clear the
corresponding check box.
596
Chapter 37 • Using the Web Add-in
For more information, see “Checking All the Objects in a Page” on page 594.
597
Chapter 37 • Using the Web Add-in
Check box Each image source on the page has a corresponding check
box.
To check an image source, select the corresponding check
box (by default all image sources are selected).
To exclude an image source from the page checkpoint,
clear the corresponding check box.
598
Chapter 37 • Using the Web Add-in
Accessibility Checkpoints are designed to help you easily locate the areas of
your Web site that require special attention according to the W3C Web
Content Accessibility Guidelines. They do not necessarily indicate whether
or not your Web site conforms to the guidelines.
599
Chapter 37 • Using the Web Add-in
600
Chapter 37 • Using the Web Add-in
4 Click OK to close the dialog box. A checkpoint step is added to your test.
601
Chapter 37 • Using the Web Add-in
Select Before current step if you want to check the accessibility elements
before the highlighted step is performed. Select After current step if you
want to check the accessibility elements after the highlighted step is
performed.
Note: The Insert statement option is not available when adding a page
checkpoint during recording or when modifying an existing page
checkpoint. It is available only when adding a new page checkpoint to an
existing test while editing your test.
4 Click OK to close the dialog box. A checkpoint step is added to your test.
602
Chapter 37 • Using the Web Add-in
The Test Results window displays a separate step for each accessibility option
that was checked in each checkpoint. The results details provide
information that can help you pinpoint parts of your Web site or
application that may not conform to the W3C Web Content Accessibility
Guidelines. The information provided for each check is based on the W3C
requirements.
Note: The Active Screen pane is not available when working with business
components. Therefore, this section is not relevant for business
components.
Storing the path to images and other resources ensures that the disk space
used by the Active Screen pages captured with your test is not affected by
the file size of the resources displayed on the page.
For this reason, a page in the Active Screen (or in your test results) may
require a user name and password to access certain images or other resources
within the page. If this is the case, a pop-up login window may open when
you select a step corresponding to the page, or you may note that images or
other resources are missing from the page.
603
Chapter 37 • Using the Web Add-in
For example, the formatting of your page may look very different from the
actual page on your Web site if the cascading style sheet (CSS) referenced in
the page is password-protected, and therefore could not be downloaded to
the Active Screen.
You may need to use one or both of the following methods to access your
password-protected resources, depending on the password-protection
mechanism used by your Web server:
Note: If your Web site is not password-protected, but you are still unable to
view images or other resources on your Active Screen, you may not be
connected to the Internet, the Web server may be down, or the source path
that was captured with the Active Screen page may no longer be accurate.
604
Chapter 37 • Using the Web Add-in
To prevent the pop-up login window from opening and to ensure that all
images and resources are displayed in the Active Screen and results each
time you open the test, you can use the automatic Active Screen login
mechanism.
To enable the mechanism, you can select Save the User Name and Password
in the pop-up login window the first time it opens. This adds the login
information to the Active Screen access area in the Web pane of the Test
Settings dialog box. Alternatively, you can add the login information
manually in the Web pane of the Test Settings dialog box.
605
Chapter 37 • Using the Web Add-in
To set Active Screen access information in the Test Settings dialog box:
1 Select File > Settings. The Test Settings dialog box opens.
2 Click the Web node.
3 Enter the User name and Password for the Web site or Web page containing
the password-protected resources.
4 Click OK to save your changes and close the dialog box.
5 Refresh the Active Screen by selecting a new step in the Keyword View or
toggle the Active Screen button to redisplay the Active Screen. Confirm that
the page is displayed correctly.
If one or more resources are still missing or displayed incorrectly, you may
need to use the Advanced Authentication mechanism. For more
information, see “Using the Advanced Authentication Mechanism” on
page 607.
606
Chapter 37 • Using the Web Add-in
For more information on the Web pane of the Test Settings dialog box, see
the section on defining Web settings for your test in the HP QuickTest
Professional User Guide.
To enable the Active Screen to access the resources on such a site, you must
log in to your site using the Advanced Authentication dialog box. When you
log in this way, you remain logged in to the site for the duration of the
QuickTest session. If you close and reopen QuickTest and then reopen your
test, you must log in again.
Note: If the site to which you log in has an inactivity timeout after which
you are automatically logged out of the Web site, you may need to log in
using the Advanced Authentication dialog box more than once while
editing your test to re-enable access to your Active Screen pages.
607
Chapter 37 • Using the Web Add-in
3 Click the Advanced button. The Advanced Authentication dialog box opens.
The browser window in the dialog box displays the default Web page for the
test according to the following guidelines:
➤ The first time you open this dialog box for a given test, the browser
window displays the URL address set for the test in the Web tab of the
Record and Run Settings dialog box.
➤ If you navigate to a new URL address using this dialog box, that address
becomes the default Advanced Authentication page for this test.
4 If the displayed Web page is not the correct page for logging in to your site,
enter the correct URL address in the Address box and click Go. Otherwise,
proceed to step 5.
5 Enter your login information in the page displayed in the Advanced
Authentication browser window.
608
Chapter 37 • Using the Web Add-in
WebObjectName.Object.Method_to_activate( )
For example, suppose you have the following statement in your script:
The following example achieves the same thing by using the Object
property, where MyDoc is the DOM’s document:
Dim MyDoc
Set MyDoc = Browser(browser_name).page(page_name).Object
MyDoc.MyForm.MyHiddenField.value = "My New Text"
609
Chapter 37 • Using the Web Add-in
For more information on the Object property (.Object), see the section on
retrieving and setting identification property values in the HP QuickTest
Professional User Guide.
http://www.w3schools.com
For example, when you run either of the examples below, QuickTest clicks
the first Web object in the Mercury Tours page with the name UserName.
610
Chapter 37 • Using the Web Add-in
QuickTest can recognize Web table elements as abstract tables, ignoring the
fact that they are defined as tables and choosing the test object to represent
the control according to the Web element defined within the table. By
default, if a Web table element has only one row and one column, QuickTest
treats it as an abstract table, ignoring the table element when learning,
spying, or recording. This does not affect running existing test steps that
already contain WebTable objects.
611
Chapter 37 • Using the Web Add-in
QuickTest calls the IsHPAbstractTable JavaScript function for each Web table
element it encounters. If the function returns false, QuickTest relates to this
element as a Web table and uses a WebTable test object to represent it in
tests. If the IsHPAbstractTable JavaScript function returns true, QuickTest
ignores the Web table element.
Important: This file affects the way QuickTest identifies Web objects and can
cause problems if modified incorrectly. Edit this file only if you are an
experienced JavaScript programer and are familiar with the implementation
of your Web controls. Make sure to create a backup copy of the file before
making changes.
The default IsHPAbstractTable JavaScript function returns true for Web table
elements containing one row and one column:
function IsHPAbstractTable()
{
// Treat all tables with only one cell as abstract tables
if ( _elem.rows.length == 1 && _elem.rows[0].cells.length == 1 )
{
return true;
}
return false;
}
612
Chapter 37 • Using the Web Add-in
You use the Register Browser Control utility to define the path of your Web
application hosting the browser control. After registration, QuickTest will
recognize Web objects in your application when recording or running tests.
To open the Register New Browser Control utility, select Start > Programs >
QuickTest Professional > Tools > Register New Browser Control.
Enter the absolute path to the .exe file of the application hosting the
browser control, and click Register. To remove a registered application, enter
the absolute path and click Unregister.
After you register an application hosting a browser control using this utility,
you must restart QuickTest Professional before you test your application.
613
Chapter 37 • Using the Web Add-in
614
38
Configuring Web Event Recording for
Web Objects
If QuickTest does not record Web events on your Web test objects in a way
that matches your needs, you can configure the events you want to record
for each type of Web object using the Web Event Recording Configuration
dialog box.
615
Chapter 38 • Configuring Web Event Recording for Web Objects
You can modify the default event recording settings for Web objects using
the Web Event Recording Configuration dialog box to use one of three
predefined configurations, or you can customize the individual event
recording configuration settings to meet your specific needs.
For example, QuickTest does not generally record mouseover events on link
objects. If, however, you have mouseover behavior connected to a link, it
may be important for you to record the mouseover event. In this case, you
could customize the configuration to record mouseover events on link
objects whenever they are connected to a behavior.
Additional Considerations
When configuring Web Event recording, consider the following:
➤ Event configuration is a global setting and therefore affects all steps that are
recorded after you change the settings.
➤ Changing the event configuration settings does not affect steps that have
already been recorded. If you find that QuickTest recorded more or less than
you need, change the event recording configuration and then re-record the
steps that are affected by the change.
➤ Changes to the custom Web event recording configuration settings do not
affect open browsers. To apply your changes, make the changes you need in
the Web Event Recording Configuration dialog box, refresh any open
browsers, and then start a new recording session.
616
Chapter 38 • Configuring Web Event Recording for Web Objects
➤ The settings in the Web Event Recording Configuration dialog box affect
recording only for objects that QuickTest recognizes as Web test objects. The
recording configuration for other Web-based objects (such as Siebel,
PeopleSoft, .NET Web Forms, and SAP Web controls) is defined by
environment-specific XML configuration files.
Note: For the purposes of Web event recording, QuickTest treats Web test
objects that are child objects of a PSFrame test object as PeopleSoft objects
and thus applies the settings in the PeopleSoft event configuration XML file
when recording those objects.
617
Chapter 38 • Configuring Web Event Recording for Web Objects
Level Description
Basic Default
➤ Always records click events on Web objects that
commonly support clicking, such as images,
buttons, and radio buttons.
➤ Always records the submit event within forms.
➤ Records click events on other Web objects with a
handler or behavior connected.
For more information on handlers and
behaviors, see “Listening Criteria” on page 626.
➤ Records the mouseover event on images and
image maps only if the event following the
mouseover is performed on the same object.
618
Chapter 38 • Configuring Web Event Recording for Web Objects
Tip: You can click the Custom Settings button to open the Custom Web
Event Recording dialog box where you can customize the event recording
configuration. For more information, see “Customizing the Web Event
Recording Configuration” on page 620.
You can click the Default Settings button to return to the Basic level.
3 Click OK.
619
Chapter 38 • Configuring Web Event Recording for Web Objects
The Custom Web Event Recording Configuration dialog box enables you to
customize event recording in several ways. You can:
620
Chapter 38 • Configuring Web Event Recording for Web Objects
2 Click the Custom Settings button. The Custom Web Event Recording
Configuration dialog box opens.
Option Description
Objects pane Displays a list of Web test object classes and HTML tag
objects. Only HTML tag objects can be added or deleted.
➤ To add an HTML tag object, select Object > Add.
➤ To delete an HTML object from the list, select Object >
Delete.
For more information, see “Adding and Deleting Objects in
the Custom Configuration Object List” on page 623.
Event Name Specifies the name of the event to which QuickTest and/or
records, depending on the settings you specify.
621
Chapter 38 • Configuring Web Event Recording for Web Objects
Option Description
622
Chapter 38 • Configuring Web Event Recording for Web Objects
4 Click OK. The Custom Web Event Recording Configuration dialog box
closes. The slider scale on the Web Event Recording Configuration dialog
box is hidden and the configuration description displays Custom.
When working with the objects in the Custom Web Event Recording
Configuration dialog box, keep the following principles in mind:
623
Chapter 38 • Configuring Web Event Recording for Web Objects
2 Click New Object to rename it. Enter the exact HTML Tag name.
By default the new object is set to listen and record onclick events with
handlers attached.
For more information on adding or deleting events, see “Adding and
Deleting Listening Events for an Object” on page 624. For more information
on listening and recording settings, see “Modifying the Listening and
Recording Settings for an Event” on page 626.
624
Chapter 38 • Configuring Web Event Recording for Web Objects
3 Select the event you want to add. The event is displayed in the Event Name
column in alphabetical order. By default, QuickTest listens to the event
when a handler is attached and always records the event (as long as it is
listened to at some level).
For more information on listening and recording settings, see “Modifying
the Listening and Recording Settings for an Event” on page 626.
625
Chapter 38 • Configuring Web Event Recording for Web Objects
Note: The listen and record settings are mutually independent. This means
that you can choose to listen to an event for a particular object, but not
record it, or you can choose not to listen to an event for an object, but still
record the event. For more information, see “Tips for Working with Event
Listening and Recording” on page 628.
Listening Criteria
For each event, you can instruct QuickTest to listen every time the event
occurs on the object, only if an event handler is attached to the event, only
if a DHTML behavior is attached to the event, if either an event handler or
DHTML behavior are attached to the event, or to never listen to the event.
626
Chapter 38 • Configuring Web Event Recording for Web Objects
2 In the row of the event you want to modify, select the listening criterion
you want from the Listen column.
Recording Status
For each event, you can enable recording, disable recording, or enable
recording only if the next event is dependent on the selected event.
627
Chapter 38 • Configuring Web Event Recording for Web Objects
➤ If settings for different objects in the Objects pane conflict, QuickTest gives
first priority to settings for specific HTML Tag Objects and second priority to
Web Objects settings. QuickTest applies the settings for Any Web Object
only to Web objects that do not belong to any other loaded Web-based
environment and were not defined in the HTML Tag Object or Web Objects
areas.
➤ To record an event on an object, you must instruct QuickTest to listen for
the event, and to record the event when it occurs. You can listen for an
event on a child object, even if a parent object contains the handler or
behavior, or you can listen for an event on a parent object, even if the child
object contains the handler or behavior.
However, you must enable recording for the event on the source object (the
object on which the event actually occurs, regardless of which parent object
contains the handler or behavior).
628
Chapter 38 • Configuring Web Event Recording for Web Objects
➤ Instructing QuickTest to listen for many events on many objects may lower
performance, so it is recommended to limit Listen settings to the required
objects.
➤ In rare situations, listening to the object on which the event occurs (the
source object) can interfere with the event.
If you find that your application works properly until you begin recording
on the application using QuickTest, your Listen settings may be interfering.
➤ If this problem occurs with a mouse event, try selecting the appropriate Use
standard Windows mouse events options in the Web > Advanced pane of
the Options dialog box (Tools > Options > Web node > Advanced node). For
more information, see the section on advanced Web options in the
HP QuickTest Professional User Guide.
➤ If this problem occurs with a keyboard or internal event, or the Use
standard Windows mouse events option does not solve your problem, set
the Listen settings for the event to Never on the source object (but keep the
record setting enabled on the source object), and set the Listen settings to
Always for a parent object.
629
Chapter 38 • Configuring Web Event Recording for Web Objects
QuickTest records the Click statement when the OnClick event is triggered.
QuickTest differentiates between the mouse buttons by listening for events
configured for each of the mouse buttons. By default, it listens for the
OnMouseUp event, but you can also configure it to listen for the
OnMouseDown event using the Web Event Recording Configuration dialog
box.
Notes:
630
Chapter 38 • Configuring Web Event Recording for Web Objects
631
Chapter 38 • Configuring Web Event Recording for Web Objects
2 Click the Custom Settings button. The Custom Web Event Recording
Configuration dialog box opens.
3 In the Custom Web Event Recording Configuration dialog box, select File >
Save Configuration As. The Save As dialog box opens.
4 Navigate to the folder in which you want to save the Web event recording
configuration file, and enter a configuration file name. The extension for
configuration files is .xml.
5 Click Save to save the file and close the dialog box.
6 Open the saved configuration file for editing in any text editor. The
configuration file uses a defined structure. For more information on the
XML file structure, see “Understanding the Web Event Recording
Configuration XML Structure” on page 635.
632
Chapter 38 • Configuring Web Event Recording for Web Objects
The Property Name element controls the recording of the mouse buttons.
The values of the mouse buttons are defined as follows:
➤ 1. Left
➤ 2. Right
➤ 4. Middle
633
Chapter 38 • Configuring Web Event Recording for Web Objects
You can also modify the XML file before loading it. For more information on
the XML file structure, see “Understanding the Web Event Recording
Configuration XML Structure” on page 635.
634
Chapter 38 • Configuring Web Event Recording for Web Objects
<XML>
<Object Name="Any Web Object">
<Event Name="onclick" Listen="2" Record="2"/>
<Event Name="onmouseup" Listen="2" Record="1">
<Property Name="button" Value="2" Listen="2" Record="2"/>
</Event>
</Object>
...
...
...
<Object Name="WebList">
<Event Name="onblur" Listen="1" Record="2"/>
<Event Name="onchange" Listen="1" Record="2"/>
<Event Name="onfocus" Listen="1" Record="2"/>
</Object>
</XML>
635
Chapter 38 • Configuring Web Event Recording for Web Objects
You define the listening criteria and recording status options in the XML
using the following possible attributes:
Listen 1. Always
2. If Handler
4. If Behavior
6. If Handler or Behavior
0. Never
Record 1. Disabled
2. Enabled
6. Enabled on Next Event
Note: When you choose to reset predefined settings, your custom settings
are cleared completely. If you do not want to lose your changes, be sure to
save your settings in an event configuration file. For more information, see
“Saving and Loading Custom Event Configuration Files” on page 634.
636
Chapter 38 • Configuring Web Event Recording for Web Objects
To reset basic level configuration settings from the Web Event Recording
Configuration dialog box:
1 Select Tools > Web Event Recording Configuration. The Web Event
Recording Configuration dialog box opens.
2 Click Default. The configuration slider is displayed again and all event
settings are restored to the Basic event recording configuration level.
3 If you want to select a different predefined configuration level, see
“Selecting a Predefined Event Recording Configuration” on page 618.
You can also restore the settings to a specific (base) custom configuration
from within the Custom Web Event Recording Configuration dialog box so
that you can begin customizing from that point.
To reset the settings to a custom level from the Custom Web Event
Recording Configuration dialog box:
1 Select Tools > Web Event Recording Configuration. The Web Event
Recording Configuration dialog box opens.
2 Click the Custom Settings button. The Custom Web Event Recording
Configuration dialog box opens.
3 In the Reset to box, select the predefined event recording level you want.
4 Click Reset. All event settings are restored to the defaults for the level you
selected.
637
Chapter 38 • Configuring Web Event Recording for Web Objects
638
Part XVII
The Web Services Add-in
640
39
Using the Web Services Add-in
You can use the QuickTest Professional Web Services Add-in to test your Web
service using familiar QuickTest functionality, without the need for
extensive knowledge of your Web service architecture. For example, you can
use QuickTest Professional to invoke the operations of your Web service and
verify returned XML data using special functionality that has been
customized for Web services. You can use the specialized WebService test
object operations to control the way in which QuickTest communicates
with your service, including working with security, configuration, headers,
and attachments.
You can also use the Web Services Add-in together with any other QuickTest
add-ins to create tests or components that test both the direct
communications with your Web service and the front-end application that
reflects the results of these communications.
641
Chapter 39 • Using the Web Services Add-in
This chapter explains how to use QuickTest to create and run tests and
components on Web services. Additionally, you can review the Web
service-related articles in the HP Software Self-solve knowledge base.
642
Chapter 39 • Using the Web Services Add-in
General Information
Prerequisites
Opening Your You can open your Web Services application before or after
Application opening QuickTest.
Add-in None
Dependencies
Setting Preferences
643
Chapter 39 • Using the Web Services Add-in
644
Chapter 39 • Using the Web Services Add-in
645
Chapter 39 • Using the Web Services Add-in
You can then update the generated steps of your test or component by
replacing the generated argument values with valid values, updating the
expected values, and selecting the nodes you want to check in your
checkpoints (tests only). After you perform these steps, you can update the
data by performing an update run (Automation > Update Run Mode). For
more information, see the section on updating a test in the HP QuickTest
Professional User Guide. You can also enhance the generated test or
component by inserting additional steps or, for tests, adding programming
logic.
646
Chapter 39 • Using the Web Services Add-in
When you click Finish, the basic test is created. You complete it by entering
relevant operation argument values and by setting checkpoint expected
values (for tests) and other preferences. For more information, see
“Completing and Enhancing Your Generated Test” on page 663.
647
Chapter 39 • Using the Web Services Add-in
You can choose not to display the welcome screen when you open the
wizard. Clear the Show Welcome screen when running the wizard check
box in this screen, or select the Tools > Options > Web Services node in the
QuickTest window and then clear Show Welcome step in Web Service
Testing Wizard in the Web Services pane of the Options dialog box. For
more information on the Web Services pane, see “Setting Web Services Test
Options” on page 674.
Click Next to continue to the Web Service Testing Wizard - Specify WSDL for
Scanning Screen.
648
Chapter 39 • Using the Web Services Add-in
649
Chapter 39 • Using the Web Services Add-in
Notes:
➤ The first time you open the Web Service Testing Wizard, the URL box is
empty. On subsequent uses of the wizard, the Specify WSDL for Scanning
screen opens with the same settings as those set in the previous wizard
session.
➤ By default, the WSDL source is analyzed using the .NET Framework 2.0
WSE 3.0 toolkit. You can change the toolkit if required. For more
information, see “Specifying the Web Services Toolkit” on page 673.
In the Specify WSDL for Scanning screen, specify the WSDL source and
whether you want to include security settings in your Web service test, as
follows:
Select a radio button according to the WSDL source you want to test. Then
enter the source. You can click the down arrow next to each box to view and
select recently used items.
➤ If you want to locate a URL source on a Web server, click the Navigate
button next to the URL box to open Microsoft Internet Explorer. The
button name changes to Capture. Navigate to the required URL (WSDL
file). Minimize the browser and click Capture or close the browser. The
URL address is automatically entered in the URL box.
➤ If you want to locate a WSDL file, click Browse next to the File box to
open the Browse for WSDL File dialog box. Browse to the required file.
If you are currently connected to a Quality Center project, you can toggle
between the file system and the test plan tree for the Quality Center
project by clicking the File System or Quality Center buttons.
Tip: From the Attachments of type list in the Browse for WSDL File dialog
box (or Files of type list when choosing a file in the file system), you can
choose to view only .wsdl files, only .xml files, or view all the files in the
selected location.
650
Chapter 39 • Using the Web Services Add-in
➤ If you want to create steps for a service (and port) that has already been
defined as a test object in one of the repositories associated with the
current action or component (via its application area), select Repository,
and then select the relevant test object. This option enables QuickTest to
access the WebService object directly, without processing the WSDL file,
thus saving processing time as QuickTest identifies the service and its
operations. (This in turn enables the next screen to open faster.)
Select the Include security settings in the generated Web service test check
box if you want to specify the security tokens that are required for
communication with the Web service you want to test.
Click Next. Depending on your selections in the Specify WSDL for Scanning
screen, one of the following occurs:
651
Chapter 39 • Using the Web Services Add-in
➤ If you do not need to specify security settings, the Web Service Testing
Wizard - Select Service and Operations Screen opens (described on
page 659). Note that opening the next screen may take some time,
depending upon the selected option. While scanning the WSDL,
QuickTest displays a cyclic progress bar that runs until the scanning
process is complete.
Note: The Set Security Options screen is available only for tests. Therefore, if
you are working with components, when you click Next, the Web Service
Testing Wizard - Select Service and Operations Screen opens (described on
page 659). If required, you can insert steps containing security operations
after you complete the wizard. These operations are available from the
associated Web_Services.txt function library. For information on associating
this function library with your component’s application area or your test,
see the HP QuickTest Professional for Business Process Testing User Guide or the
HP QuickTest Professional User Guide respectively.
652
Chapter 39 • Using the Web Services Add-in
After you complete the wizard, QuickTest converts your selections into one
or more test steps, containing the corresponding operations and property
values. For example, if you select X.509 Token, QuickTest might add steps
similar to the following:
tokenID = WebService("FlightNetWebService").Security.AddX509Token
(micRequestToken, XMLWarehouse("Certificate"))
653
Chapter 39 • Using the Web Services Add-in
Tips:
➤ If you need to replace the certificate, run the wizard again to create a new
XML structure containing the required certificate and add the relevant
steps. Edit the test or component manually to remove the steps that used
the old certificate.
➤ To instruct QuickTest to load the certificate from a file or a certificate
store for each run session, manually create steps that use the
LoadX509CertificateFromFile or LoadX509CertificateFromStore
methods. These methods return an XMLData object that you can use as
an argument for subsequent steps. For more information, see the Web
Services section of the HP QuickTest Professional Object Model Reference.
654
Chapter 39 • Using the Web Services Add-in
In the Security tokens area, select the check boxes for the security tokens
needed for communication with the Web service you want to test. You can
highlight any token to view its description in the Description area. When
you highlight a token, its properties are displayed in the Token properties
area. (Note that highlighting the token does not select its check box.) You
can select as many security tokens as needed.
Network Credential
A network credential used for password-based authentication schemes, such
as basic, digest, NTLM, and Kerberos authentication. This token is relevant
only for Web service request messages.
Client Certificate
A client certificate used mostly when a client uses the SSL3.0/PCT1 protocol
to connect to a server, and the server requires client certificates for mutual
authentication.
655
Chapter 39 • Using the Web Services Add-in
➤ FileName. The path of the file that contains the certificate data. Enter the
file name or click the browse button to locate the certificate file.
➤ Password. The password required to access the certificate file. (Optional)
➤ Location. Indicates whether the certificate is installed for the current user
or for anyone using the computer.
Available options: CurrentUser and LocalMachine.
➤ Store. The store in which the certificate is located. QuickTest displays a
list of standard locations for installed certificates. If the certificate that
you need to use in the test is located elsewhere, use the
LoadX509CertificateFromStore method. For more information see the
Web Services section of the QuickTest Professional Object Model Reference
(Help > QuickTest Professional Help).
➤ Certificate. The client certificate to use for authentication. To select a
certificate, click the browse button. The Select Certificate dialog box
opens, displaying all of the certificates installed in the store you
specified. Select a certificate and click OK.
Username Token
Username and password security credentials.
656
Chapter 39 • Using the Web Services Add-in
X.509 Token
An X.509 certificate used for signing and/or encrypting Web service request
messages when a server’s public certificate is required.
➤ FileName. The path of the file that contains the certificate data. Enter the
file name or click the browse button to locate the certificate file.
➤ Password. The password required to access the certificate file. (Optional)
➤ Location. Indicates whether the certificate is installed for the current user
or for anyone using the computer.
Available options: CurrentUser or LocalMachine.
➤ Store. The store in which the certificate is located. QuickTest displays a
list of standard locations for installed certificates. If the certificate that
you need to use in the test is located elsewhere, use the
LoadX509CertificateFromStore method. For more information see the
Web Services section of the QuickTest Professional Object Model Reference
(Help > QuickTest Professional Help).
➤ Certificate. The client certificate to use for authentication. To select a
certificate, click the browse button. The Select Certificate dialog box
opens, displaying all of the certificates installed in the store you
specified. Select a certificate and click OK.
657
Chapter 39 • Using the Web Services Add-in
Set the properties for each selected security token by highlighting the token
in the Security tokens area and modifying its property values in the Token
properties area. When you highlight a property, its description is displayed
below the Token properties area.
Click Next to continue to the Web Service Testing Wizard - Select Service
and Operations Screen.
658
Chapter 39 • Using the Web Services Add-in
659
Chapter 39 • Using the Web Services Add-in
From the Service name list and Port name list, select the service and port
that you want to test. The name of the service you select is also used as the
default name of the created test object. If a description of the Web service is
available, it is displayed as a tooltip when the cursor is positioned over the
service name.
Tip: You can rename a WebService test object in the Object Repository. Select
Resources > Object Repository to open the repository. Then select the test
object, right-click, and select Rename from the menu.
Note: The list of ports displays all of the ports in the selected service that
work with a supported protocol. For a list of supported protocols, see the
HP QuickTest Professional Readme.
Tip: Click the double arrow buttons (>> and <<) to move all the operations
from one list to the other. Select multiple operations (using the SHIFT and/or
CTRL keys on your keyboard) and click the arrow buttons (> and <) to move
only the selected operations from one list to the other.
Use the up and down arrows to sort the Selected Operations list into the
required testing order.
660
Chapter 39 • Using the Web Services Add-in
During a run session, this operation instructs QuickTest to save the header
field value you specify, as if you are working directly with a .NET client.
Thereafter, QuickTest inserts this header field value every time it sends a
message requiring this header. If a response message updates this header
field value, the updated header field value is saved and is used for all
subsequent method calls.
Click Next to continue to the Web Service Testing Wizard - Summary Screen.
661
Chapter 39 • Using the Web Services Add-in
When working with tests, you can automatically insert XML checkpoints by
selecting Add XML checkpoint after each relevant step (selected by default).
Selecting this check box adds an XML checkpoint for each step in the test
that has a return value or an output argument. For more information on
XML checkpoints, see the HP QuickTest Professional User Guide.
Review the summary. If the settings are correct, click Finish. The WebService
test object is stored in the local object repository, and the defined steps are
converted to the proper syntax and inserted into your test or component.
662
Chapter 39 • Using the Web Services Add-in
For each operation, the wizard generates default argument values with the
proper value types. For each automatically created checkpoint (tests only),
the wizard generates a generic XML structure as a place holder for the
expected XML return values. Before you can run your test or component,
you must replace the default values with the appropriate values for your
test.
Review each of the argument values and supply a value that is appropriate
for the operation. For argument values of type XML, the wizard generates an
XML structure. Use the Configure the value button in the Keyword View
Value column to open the XML structure and edit the generated values
within the structure. Alternatively, you can open the XML structure from
the XML Warehouse pane in the Test Settings or Business Component
Settings dialog box (File > Settings > XML Warehouse node). For more
information on XML structures, see “Working with XML Structures” on
page 693. After you modify the required values, you need to update the data
by performing an update run (Automation > Update Run Mode). For more
information, see the section on updating a test in the HP QuickTest
Professional User Guide.
Open each automatically generated checkpoint, populate the XML tree with
the expected return values, and select the items that you want to check. For
more information, see “Checking XML” on page 690 and the Checking
XML chapter in the HP QuickTest Professional User Guide.
You may want to output values returned by one step for use as input in
another step. For more information, see “Outputting XML Values” on
page 692, and the XML Output Values section in the HP QuickTest
Professional User Guide.
You can also add steps using the test object operations (methods and
properties) that the QuickTest Professional Web Services Add-in supplies to
test the behavior of your Web service. For more information, see “Using
QuickTest WebService Test Object Methods and Properties” on page 679,
and the Web Services section of the HP QuickTest Professional Object Model
Reference.
663
Chapter 39 • Using the Web Services Add-in
Note: QuickTest performs the validation using the WS-I validation tool,
which is a third-party application that is not provided with QuickTest. You
can download Interoperability Testing Tools 1.1 from the Web Services
Interoperability Organization Web site at http://www.ws-i.org. Note that it
must be installed locally.
You can run the validation tool manually in QuickTest, selecting Tools >
Validate WSDL to open the Validate WSDL dialog box. You can also validate
that the WSDL source conforms to WS-I standards programmatically using
either the WebService.ValidateWSDL method or the WSUtil.ValidateWSDL
method. For more information, see the Web Services section of the
HP QuickTest Professional Object Model Reference.
When the validation is complete, you can view the validation results, which
indicate whether the file conforms to WS-I profile guidelines. Note that it is
possible that your Web service tests or components on the specified WSDL
will run successfully even if they do not conform to these guidelines.
Before you can use the WS-I validation tool, you need to specify the location
of the WS-I validation tool. You do this in the Web Services pane of the
Options dialog box (Tools > Options > Web Services node). For more
information, see “Setting Web Services Test Options” on page 674.
Note: When you run the WS-I validation tool, QuickTest accesses the WSDL.
If the WSDL you are validating is located on a secure server, or if the
network connection is secure, you must save the WSDL and any additional
resources referenced by the WSDL to a non-secure location (such as a local
drive) before running the WS-I validation tool.
664
Chapter 39 • Using the Web Services Add-in
2 Specify the location in which the WSDL is stored by selecting a radio button
according to the WSDL source you want to test. Then enter the source. You
can click the down arrow next to each box to view and select recently used
items.
➤ To specify a WSDL from a URL source on a Web server, select URL. Enter
the URL address manually or click the Navigate button next to the URL
box to open your default browser. The button name changes to Capture.
Navigate to the required URL. Minimize the browser and click Capture or
close the browser. The URL address is automatically entered in the URL
box.
➤ To specify a WSDL file, select File. Enter the file path manually or click
Browse next to the File box to open the Browse for WSDL File dialog box.
Browse to the required file.
665
Chapter 39 • Using the Web Services Add-in
If you are currently connected to a Quality Center project, you can toggle
between the file system and the test plan tree of the Quality Center
project by clicking the File System or Quality Center buttons.
Tip: From the Attachments of type list in the Browse for WSDL File dialog
box (or Files of type list when choosing a file in the file system), you can
choose to view only .wsdl files, only .xml files, or view all the files in the
selected location.
➤ To specify a WSDL that defines a service for which a test object has
already been created in one of the repositories associated with the
current action (or component), select Repository, and then select the
relevant test object. QuickTest locates the WSDL according to the
location specified in the wsdl property of the WebService test object.
3 Click the Report options down arrow and select the criteria for the assertion
results to be included in the validation report. (Test assertions are used by
the validation tool to analyze whether a Web service conforms to WS-I
standards.)
➤ Report all assertions. Reports the results of all assertions.
➤ Report all assertions but passed assertions. Reports the results of all
assertions except those that have a "passed" result.
➤ Report only failed assertions. Reports the results of assertions that have a
"failed" result only.
4 Click the Validate button to analyze the specified WSDL source and check
that it conforms to WS-I standards. The validation is performed for each
binding defined in the WSDL. This process might take some time.
666
Chapter 39 • Using the Web Services Add-in
When the check is complete, the Validate WSDL dialog box expands to
display the results of the validation check in the Validation reports area.
This area lists the reports generated by the WS-I testing tool and indicates
the status of each report.
667
Chapter 39 • Using the Web Services Add-in
The Web Service Add Object Wizard helps you select the WSDL source, the
Web service, and the port you want to test.
668
Chapter 39 • Using the Web Services Add-in
2 Click the Web Service Add Object Wizard button or select Object > Web
Service Add Object Wizard. The Web Service Add Object Wizard opens to
show the Specify WSDL for Scanning screen.
The Web Service Add Object Wizard includes the following screens:
➤ Add Object Wizard - Specify WSDL for Scanning Screen. Enables you to
select and validate the source of the test object you want to create.
➤ Add Object Wizard - Select Service Screen. Enables you to select the WSDL
service for which you want to create a test object.
669
Chapter 39 • Using the Web Services Add-in
Notes:
➤ The first time you open the Web Service Add Object Wizard, the URL box
is empty. On subsequent uses of the wizard, the Specify WSDL for
Scanning screen opens with the same settings as those set in the previous
wizard session.
➤ By default, the WSDL source is analyzed using the .NET Framework 2.0
WSE 3.0 toolkit. You can change the toolkit if required. For more
information, see “Specifying the Web Services Toolkit” on page 673.
670
Chapter 39 • Using the Web Services Add-in
Select a radio button according to the WSDL source you want to test. Then
enter the source. You can click the down arrow next to each box to view and
select recently used items.
➤ If you want to locate a URL source on a Web server, click the Navigate
button next to the URL box to open your default browser. The button
name changes to Capture. Navigate to the required URL. Minimize the
browser and click Capture or close the browser. The URL address is
automatically entered in the URL box.
➤ If you want to locate a WSDL file, click Browse next to the File box to
open the Browse for WSDL File dialog box. Browse to the required file.
If you are currently connected to a Quality Center project, you can toggle
between the file system and the test plan tree for the Quality Center
project by clicking the File System or Quality Center buttons.
Tip: From the Attachments of type list in the Browse for WSDL File dialog
box (or Files of type list when choosing a file in the file system), you can
choose to view only .wsdl files, only .xml files, or view all the files in the
selected location.
Click Next to continue to the Add Object Wizard - Select Service Screen or
click Finish if you want the Wizard to create your test object using the first
Web service and the first port described in the WSDL.
Note: If you specified a secure WSDL, the Network Credentials dialog box
opens. Enter the login details required to access the WSDL and click OK.
671
Chapter 39 • Using the Web Services Add-in
From the Service name list and the Port name list, select the service and
port that you want to test and click Finish. The wizard adds a WebService
test object to the object repository, representing the specific Web service and
port. If a description of the Web service is available, it is displayed as a
tooltip when the cursor is positioned over the service name.
Note: The list of ports displays all of the ports in the selected service that
work with a supported protocol. For a list of supported protocols, see the
HP QuickTest Professional Readme.
Close the Object Repository dialog box. You can now use the test object and
its operations in the steps of your test.
672
Chapter 39 • Using the Web Services Add-in
The toolkit you specify for learning WebService objects is a global setting
used for all Web service tests. You set this option in the Web Services pane of
the Options dialog box (click the Options toolbar button, or select Tools >
Options > Web Services node). By default, QuickTest uses the Microsoft
.NET Framework 2.0 WSE 3.0 toolkit when learning WebService objects and
when running Web service tests and components. You can change the
default, as described in “Setting Web Services Test Options” on page 674.
The toolkit you specify for running Web service tests and components is a
local setting that is specific to a test or an application area. It is
recommended to use the same toolkit you specify for learning WebService
objects, otherwise your test may fail. For tests, you specify the toolkit in the
Web Services pane of the Test Settings dialog box (click the Settings toolbar
button, or select File > Settings > Web Services node). For components, you
specify the toolkit in the Web Services pane of the Application Area Settings
dialog box (select File > Settings, or click the Settings toolbar button, or
click the Additional Settings button in the Application Area General pane).
Before you run a Web service test or component, make sure that the
specified toolkit is installed on the computer on which QuickTest is
installed. For example, if the test or component is set to run using the
Microsoft .NET WSE 2.0 toolkit, make sure that this toolkit is installed on
your QuickTest computer.
673
Chapter 39 • Using the Web Services Add-in
674
Chapter 39 • Using the Web Services Add-in
The Web Services pane (Tools > Options > Web Services node) includes the
following options:
Option Description
Learn new test Specifies the toolkit you want QuickTest Professional to use
objects using when learning new WebService test objects:
the following ➤ .NET Framework 1.1 WSE 2.0
toolkit
➤ .NET Framework 2.0 WSE 3.0
➤ Apache Axis 1.x
Note: After you install Microsoft .NET Framework 1.1. you can
download and install .NET Framework 1.1 WSE 2.0 SP3 from
http://www.microsoft.com/downloads/
details.aspx?familyid=8070e1de-22e1-4c78-ab9f-
07a7fcf1b6aa&displaylang=en.
Tip: It is recommended to run Web service tests using the same
toolkit with which the test was created. For information on
setting run options, see “Defining Web Service Test or
Component Settings” on page 677.
WS-I validation Indicates the path containing the WS-I validation tool.
tool location Specify the root path of the wsi-test-tools folder (and not the
bin folder containing the executable file). The wsi-test-tools
folder must be stored on the computer on which the WSDL is
scanned.
You can download Interoperability Testing Tools 1.1 for Java
and .NET from http://www.ws-i.org.
The WS-I validation tool tests Web service interoperability by
checking compliance with the WS-I Basic Profile.
QuickTest uses the path specified here to perform validation
checks in the Validate WSDL dialog box. For more
information, see “Checking that Your WSDL Meets WS-I
Standards” on page 664.
WS-I validation Indicates the Web service client platform type—.NET or Java.
tool platform
675
Chapter 39 • Using the Web Services Add-in
Option Description
WS-I report Specifies the criteria for the assertion results to be included in
options the validation report. Test assertions are used by the WS-I
validation tool to analyze whether a Web service conforms to
WS-I standards.
The following options are available:
➤ Report all assertions. Reports the results of all assertions.
➤ Report all assertions but passed assertions. Reports the
results of all assertions except those that have a "passed"
result.
➤ Report only failed assertions. Reports only the results of
assertions that have a "failed" result.
Note: You can use the WS-I validation tool (accessed from the
Validate WSDL dialog box—Tools > Validate WSDL) to test
Web service interoperability. It does this by checking
compliance with the WS-I Basic Profile. The WS-I validation
tool, Interoperability Testing Tools 1.1, is a third-party
application and is not provided with QuickTest Professional.
The tool can be downloaded from the Web Services
Interoperability Organization Web site at http://www.ws-i.org
and must be installed locally.
Show Welcome Specifies whether to display the Welcome screen when you
screen in Web open the Web Service Testing Wizard. You can also control this
Service Testing option by clearing the Show Welcome screen when running
Wizard the wizard check box in the Welcome screen.
676
Chapter 39 • Using the Web Services Add-in
Note: The example above shows the Web Services pane of the Test Settings
dialog box.
The Web Services pane of the Business Component Settings dialog box
displays these settings in read-only format. To modify these settings for
components, use the Web Services pane of the Application Area Settings
dialog box, which provides the same set of options as shown above.
677
Chapter 39 • Using the Web Services Add-in
Option Description
Run Web Service Enables you to select the toolkit you want QuickTest to use
operations using when running Web service operations. For new tests and
the following components, the default toolkit is the same as the toolkit
toolkit set in the Web Services pane of the Options dialog box for
learning WebService objects.
Tip: Make sure you run Web service tests using the same
toolkit with which the test was created. You can verify the
toolkit by viewing the Comment field in the object
repository. (The Comment field is located in the Object
Properties pane.)
Note: The run toolkit you select is displayed in the Result
Details tab of the Test Results window when the top branch
is selected in the test results tree.
You can add steps using the WebService test object, methods, and properties,
or the operations of the Web service you are testing.
678
Chapter 39 • Using the Web Services Add-in
When you use IntelliSense in the Expert View, or when you select the
required operation from the Operation column in the Keyword View or the
Operation box in the Step Generator, the operations are grouped according
to the source from which they were derived. The top part of the list contains
the operations that are defined in the WSDL. The bottom part of the list
contains the WebService message management objects and the operations
that are specific to the QuickTest WebService test object.
The Web service object model comprises several types of objects: the
WebService test object, the WSUtil object (a utility object), and several
message management objects (tests only).
679
Chapter 39 • Using the Web Services Add-in
To fully take advantage of the QuickTest Web service object model, you need
to work in the Expert View, as the operations for message management
objects are not available in the Keyword View or using the Step Generator.
When inserting steps manually in the Expert View, you can use IntelliSense
to add a WebService message management property to a step, and then
apply clearly defined operations to that step.
WebService("FlightNetWebService").Security.SetNetworkCredential
"MyUsername","MyPwd","MyDomain"
680
Chapter 39 • Using the Web Services Add-in
To use the operations defined in these function libraries, you must first
associate the Web_Services.txt function library with your test or with your
component’s application area. For more information, see the HP QuickTest
Professional for Business Process Testing User Guide.
For more information, see the Web Services section of the HP QuickTest
Professional Object Model Reference.
You can also select operations supported by your Web service from the list of
operations displayed in the Operation column in the Keyword View and in
the Operation box in the Step Generator. The Web service-specific
operations are displayed in the top part of the list. The test object methods
supported for every WebService test object are displayed in the bottom part.
When QuickTest learns a WebService test object using the .NET Framework
WSE toolkit, it analyzes the Web service's supported operations and
automatically creates a SetHeaderField_<FieldName>Value method for each
operation that requires parameter data (according to the header elements
defined in the corresponding WSDL). For example, for the LicenseInfo
header element, QuickTest creates the SetHeaderField_LicenseInfoValue
method. Note that the <FieldName> value is not always identical to the
actual header element as it appears in the WSDL.
681
Chapter 39 • Using the Web Services Add-in
When you run the WebService Testing Wizard, the Select Service and
Operations screen automatically displays these special QuickTest methods in
the Available Operations list. If you select operations in the Select Service
and Operations screen that require parameter data in the header, you should
also select the appropriate SetHeaderField_<FieldName>Value methods,
making sure that the SetHeaderField_<FieldName>Value methods are
located higher in the Selected Operations list than the Web service
operations they support.
You should edit the XML structure parameter to provide the appropriate
data. If you are working in the Keyword View or the Expert View, you must
define and populate the XML structure parameter manually. For more
information on XML structures, see “Working with XML Structures” on
page 693. Note that the SetHeaderField_<FieldName>Value method
parameter value is always a complex value.
682
Chapter 39 • Using the Web Services Add-in
➤ If you want to parameterize output values for a component step, use XML
structures, or local or component parameters. For more information, see
“Parameterizing XML Values” on page 703.
➤ During a run session, it is recommended to use the same toolkit that
QuickTest used to learn your WebService test objects. If you want to work
with more than one toolkit, you can create separate components for each
toolkit. For more information, see “Setting Web Services Test Options” on
page 674 and “Defining Web Service Test or Component Settings” on
page 677.
➤ External resources for components are stored in the associated application
area. These include function libraries, object repositories, and recovery
scenarios. If you need additional functionality, you or an Automation
Engineer can wrap the required functionality in other function libraries and
associate them with your application area. It is recommended not to
overwrite the existing functionality in any function library supplied with
QuickTest, as QuickTest function libraries may be overwritten during an
upgrade.
683
Chapter 39 • Using the Web Services Add-in
Note: You can choose not to open the Test Results window automatically
after each run. Select Tools > Options and click the Run node. Then clear
View results when run session ends. You can click the Results button or
select Automation > Results to open the Test Results window when you want
to view run results.
If the Web Services Add-in is installed and loaded during a run session, the
run toolkit you specified in the Settings dialog box is displayed in the Result
Details tab in the Test Results window when the top branch of the tree is
selected. The run toolkit is displayed in this tab even if the test or
component does not include any Web Services test object.
684
Chapter 39 • Using the Web Services Add-in
Expand the test results tree in the left pane of the Test Results window.
Note: By default, QuickTest captures the detailed requests and responses for
all steps.
The Web Services Add-in uses the Save step screen capture to results option
in the Options dialog box to determine whether to capture requests and
responses for your steps. If you do not want QuickTest to capture requests
and responses for your steps, select Tools > Options and click the Run node.
Then select Never from the Save step screen capture to results list.
685
Chapter 39 • Using the Web Services Add-in
Select a step or checkpoint in the test results tree to view the results for that
step in the right-hand pane.
For checkpoints, the top right pane displays the checkpoint step results. The
bottom right pane shows the details of the schema validation (if applicable)
and a summary of the step or checkpoint results. If the schema validation
failed, the reasons for the failure are also shown.
The bottom right pane may include the View XML Checkpoint Results
button, enabling you to view details of the checkpoint’s failure. The Web
Services Add-in uses the Save step screen capture to results option in the
Run pane of the Options dialog box to determine when to display this
button.
For more information on the Test Results window and analyzing test and
XML checkpoint results, see the HP QuickTest Professional User Guide.
686
Chapter 39 • Using the Web Services Add-in
HP Service Test enables you to automatically create test scripts for testing
your SOA environment. You can use Service Test to develop a script by
recording a user performing typical business processes, or you can generate
automatic scripts that address your testing requirements.
HP Service Test scripts act like virtual users, allowing you emulate real-life
situations. You can check your script’s functionality with the built-in
validation tools and reports.
687
Chapter 39 • Using the Web Services Add-in
688
40
Working with XML Data
This chapter describes the various ways in which you can use
QuickTest Professional to manipulate XML data when testing Web services.
When working with tests, you can create checkpoints and output values on
the XML data that is returned from an operation performed on a Web
service. You can perform XMLData methods on the returned XML data. You
can also create XML structures and use them as templates for data in your
test. This enables you to parameterize specific values in an XML document
and use the parameterized XML hierarchy, for example, as the value for an
XML operation argument or as the expected XML element value in a
checkpoint.
689
Chapter 40 • Working with XML Data
When working with components, checkpoints and output values are not
available. Instead, you can use the functions (keywords) defined in the
Web_Services.txt function library to perform similar types of steps. To use
these functions, the Web_Services.txt function library must be associated
with the component’s application area. If needed, an Automation Engineer
can also wrap additional types of functionality in other function libraries
and associate them with the component’s application area. For more
information on working with function libraries and application areas, see
the HP QuickTest Professional for Business Process Testing User Guide.
Checking XML
When working with tests, you can add XML checkpoints on the returned
values from Web service operations in your test. An XML checkpoint is a
verification point that compares actual values for specified XML elements,
attributes and/or values with their expected values. If the results do not
match, the checkpoint fails.
For example, suppose a flight reservation Web service has an operation that
sets a flight itinerary and returns XML containing the specified itinerary
details. A step in the test of the Web service could select a specific airline and
return XML containing flight details. An XML checkpoint could compare
the date and time information contained in the flight details XML data with
the expected values for those XML nodes and check that the itinerary details
match the expected result.
690
Chapter 40 • Working with XML Data
You insert a checkpoint using Insert > Checkpoint > XML Checkpoint (From
Resource) or by using the Insert Checkpoint or Output Value button. You
then select a test object and the operation whose return values you want to
check.
Note: You can also insert checkpoints for every step automatically when
using the Web Service Testing Wizard. For more information, see
“Understanding the Web Service Testing Wizard” on page 646.
For more information on working with XML checkpoints and updating the
XML hierarchy for XML checkpoints, see the HP QuickTest Professional User
Guide.
691
Chapter 40 • Working with XML Data
For example, a step in a test of a flight reservation system could require the
retrieval of an order number. This order number could be a parameterized
output value from an XML structure, and could be stored in an action
parameter in a test. You could then retrieve the order number value from the
parameter for use as an operation argument in a later step.
You insert an output value step using Insert > Output Value> XML Output
Value (From Resource) or by using the Insert Checkpoint or Output Value
button.
When you run your test, you can view summary results of the XML output
value step in the Test Results window. You can also view detailed results by
opening the XML Output Value Results window.
692
Chapter 40 • Working with XML Data
For example, you may have a Web service that manages an address book.
The Web service has an AddAddr operation that adds a new entry to the
address book. The operation receives an XML data argument containing the
name, phone numbers, and address of the new entry.
Suppose you want to run a test that performs the AddAddr operation five
times to add five different people to the address book, and then retrieves the
updated address book. Instead of entering five AddAddr statements, each
with a different XML string for the argument, you can create one XML
structure and parameterize its name, phone number, and address values to
take values from the data table (for tests) or from a local parameter (for
components). You can then insert one AddAddr statement and set its
argument to use the XML structure you created. Then, you can run multiple
iterations of the action or component containing that step.
You can create several different XML structures. You can use an XML file or
an existing XML structure as the base for a new XML structure, or you can
edit nodes manually.
693
Chapter 40 • Working with XML Data
You save XML structures in the XML Warehouse for your test (File > Settings
> XML Warehouse). XML structures are stored with the test or component—
they are not external resources.
After you create an XML structure, you can parameterize XML data
arguments using your XML structures. You can do this in the Keyword View
or by manually inserting statements using the Expert View (tests only). For
more information, see “Parameterizing XML Values” on page 703, or
“Working with XML Data Operations” on page 705.
694
Chapter 40 • Working with XML Data
Button Description
695
Chapter 40 • Working with XML Data
Note: The XML Warehouse pane of the Business Component Settings dialog
box is identical to the example shown above.
2 Click the Create new XML structure button. The Create New XML Structure
dialog box opens.
3 Enter a name and description for your XML structure.
696
Chapter 40 • Working with XML Data
697
Chapter 40 • Working with XML Data
Note: Although this section refers specifically to the Create New XML
Structure dialog box, the information provided also applies to the Edit XML
Structure dialog box and the Duplicate XML Structure dialog box.
698
Chapter 40 • Working with XML Data
The dialog box displays the element hierarchy, attributes, and values
(character data) of the XML hierarchy you create.
Item Description
699
Chapter 40 • Working with XML Data
Add Child Adds a child node below the selected node in the
XML tree.
Insert Sibling Adds a sibling node at the same level as the selected
node in the XML tree.
Import XML Enables you to browse to and select another XML file.
The new file will override the selected node’s current
sub-tree.
700
Chapter 40 • Working with XML Data
Edit XML as Text Opens the Edit XML as Text dialog box, enabling you
to modify the XML text of the selected node and its
subnodes in a text editor.
This dialog box is used mainly for constructing an
entire XML segment from a string or for fixing syntax
problems that prevent the dialog box from displaying
the XML tree correctly. It is also useful when you
want to use copy-paste functionality to edit the XML
tree.
For more information, see the HP QuickTest
Professional User Guide.
701
Chapter 40 • Working with XML Data
Area Description
XML Tree The XML tree displays the hierarchal relationship between each
element and value in the XML file. Each element is displayed
with a icon. Each value is displayed with a icon.
Note: Expanding a large XML tree might take some time.
Data Area When an element is selected in the XML tree, the data area to
the right of the tree displays the element’s attributes and values.
When an element value is selected in the XML tree, the data
area displays the value node’s data.
When you click in a Value cell, the parameterization button
is displayed. Click the button to parameterize the value. For
more information, see “Parameterizing XML Values” on
page 703.
Tips:
➤ The XML tree pane and the Attribute and Value columns in the right
pane are resizable.
➤ You can delete an attribute by selecting its row and pressing the DELETE
key on your keyboard.
702
Chapter 40 • Working with XML Data
Note: The Value cell can comprise more than one partition, containing
different argument values for the selected operation. Clicking a partition
displays the parameterization button , as well as information for each
argument in a tooltip. In the tooltip, the argument for the partition that is
currently highlighted is displayed in bold.
703
Chapter 40 • Working with XML Data
5 In the Properties area, select the type of XML structure you want to use:
➤ Existing. Enables you to specify an XML structure you have already
created.
If you select Existing, select the name from the Name list. If you want to
modify the existing structure, click the Edit XML Structure button and go
to step 6. Otherwise, click OK. The test uses the values from the XML
structure you specify. If you specify an existing XML structure, the
description is displayed in read-only mode.
➤ New. Enables you to create a new XML structure.
If you select New, enter a name and textual description for it in the Name
and Description boxes and click Create New XML Structure.
The Create New/Edit XML Structure dialog box opens.
704
Chapter 40 • Working with XML Data
You can add steps to perform XML data operations using the
XMLWarehouse objects (tests and components) and XMLData objects (tests
only).
The following example uses the XMLWarehouse object in the Expert View to
use the parameterized Departure XML structure as the argument for the
Find method.
Set Find=
WebService("FlightNetWebService").Find(XMLWarehouse("Departure"))
705
Chapter 40 • Working with XML Data
When inserting steps manually in the Expert View, you can use IntelliSense
to add an XML structure from the XML Warehouse. When you type
XMLWarehouse followed by an open parenthesis (, QuickTest displays a list
of all XML structures in the XML Warehouse.
706
Part XVIII
Appendix
708
A
Supported Checkpoints and Output
Values Per Add-In
The tables in this chapter show the categories of checkpoints and output
values that are supported by QuickTest Professional for each add-in.
709
Appendix A • Supported Checkpoints and Output Values Per Add-In
Supported Checkpoints
Table Legend
➤ S: Supported
➤ NS: Not Supported
➤ NA: Not Applicable
(From Application)
(From Resource)
Accessibility
Text Area
Database
Standard
Bitmap
Image
Table
Page
XML
XML
Text
ActiveX NS S NA NS NA S S S S NA NS
Delphi NS S NA NS NA S S S S NA S
Java NA S NA NA NA S S S6 S NA NS
Oracle NA S NA NA NA S S NS NS NA NA
PeopleSoft S S NA S S S S S3 NS S S
PowerBuilder4 NS S NA NS NA S S S S NA NS
SAP Web S S NA S S S S S NS S S
SAP Windows S7 S NA S7 S7 S S S7 NS S7 NA
Siebel S S NA S S S S S NS S S
Standard Windows NS S NA NS NA S S S S NA NS
Stingray NA S NA NA NA S S S S NA NS
Terminal Emulator NA S NA NA NA S NA NA NA NA NA
710
Appendix A • Supported Checkpoints and Output Values Per Add-In
(From Application)
(From Resource)
Accessibility
Text Area
Database
Standard
Bitmap
Image
Table
Page
XML
XML
Text
Visual Age NA S NA NA NA S S S S NA NS
Visual Basic NS S NA NS NA S S S S NA NS
Web2 S S NA S S S S S3 NS S NS
Web Services NA NA NA NA NA S NA NA NA S NS
WPF NA S NA NA NA S NA S S NA NA
Footnotes
1Only standard and bitmap checkpoints are supported for business
components.
2
When creating checkpoints for Web objects in components, only bitmap
checkpoints and standard checkpoints are available.
3
Checkpoints are supported only for Page, Frame, and ViewLink objects.
4
When you insert a checkpoint on a PowerBuilder DataWindow control,
QuickTest treats it as a table and opens the Table Checkpoint Properties
dialog box (not supported for components).
5
For NET Web Forms, text checkpoints for WbfTreeView, WbfToolbar, and
WbfTabStrip objects are not supported.
6
The text checkpoint mechanism for Java objects is disabled by default. You
can enable it (for tests only) in the Advanced Java Options dialog box.
7 This is supported only when QuickTest records HTML elements using the
Web infrastructure, but not when it records using the SAPGui Scripting
Interface (as selected in the SAP pane of the Options dialog box).
711
Appendix A • Supported Checkpoints and Output Values Per Add-In
(From Application)
(From Resource)
Accessibility
Text Area
Database
Standard
Bitmap
Table
Page
XML
XML
ActiveX NS NA NA NA S S Text
S S NA S
Delphi NS NA NA NA S NA S S NA S
Java NA NA NA NA S NA S6 NA NA NA
Oracle NA NA NA NA NA NA NA NA NA NA
PeopleSoft NA NA NA S S S S3 NS S S
PowerBuilder4 NA NA NA NA S NA S S NA S
SAP Web NA NA NA S S S S NS S S
SAP Windows NA NA NA S6 S S S6 NS S6 S
Siebel NA NA NA S S S S NS S S
Standard Windows NA NA NA NA S NA S S NA S
Stingray NA NA NA NA S NA S S NA S
Terminal Emulator NA NA NA NA NA NA NA NA NA NA
712
Appendix A • Supported Checkpoints and Output Values Per Add-In
(From Application)
(From Resource)
Accessibility
Text Area
Database
Standard
Bitmap
Table
Page
XML
XML
Text
Visual Age NA NA NA NA NA S S S NA NA
Visual Basic NA NA NA NA S NA S S NA S
Web2 NA NA NA S S S S3 NS S NA
Web Services NA NA NA NA NA NA NA NA NA S
WPF NA NA NA NA S NA S S NA NA
Footnotes
1Only standard and bitmap output values are supported for business
components.
2
When creating output values for Web objects in components, only
standard output values are available.
3
Output values are supported only for Page, Frame, and ViewLink objects.
4
When you insert an output value step on a PowerBuilder DataWindow
control, QuickTest treats it as a table and opens the Table Output Value
Properties dialog box (not supported for components).
5
The text output mechanism for Java objects is disabled by default. You can
enable it (for tests only) in the Advanced Java Options dialog box.
6
This is supported only when QuickTest records HTML elements using the
Web infrastructure, but not when it records using the SAPGui Scripting
Interface (as selected in the SAP pane of the Options dialog box).
713
Appendix A • Supported Checkpoints and Output Values Per Add-In
714
Index
Numerics tips for working with 41
adjusting configuration settings 524, 545
1_APP_ENV variable 158
adjustment options 551
1_DIR_ENV variable 158
emulator settings 552
HLLAPI settings 553
A object identification settings 554
abstract Web tables 611 record settings 555
accessibility. See Web content accessibility run settings 558
accessing internal properties and methods of advanced authentication, Active Screen 607
run-time .NET Web Forms objects 218 Apache Axis toolkit 673
accessing internal properties and methods of API, Siebel Test Automation 419, 423
run-time .NET Windows Forms Application Area Settings dialog box
objects 194 Web pane 100
Active Screen application areas
advanced authentication 607 Web settings 100
dialog box 605 Application Details dialog box 52
Test Settings dialog box, Web pane application details environment variables
606 158, 293
Active Screen dialog box 607 applications
ActiveX controls adding 52
recording and running tests on 117 editing 52
windowless 118 Applications dialog box 436
add-in extensibility 23 Applications tab 436
add-in extensibility ARGS_ENV_1 variable 59
See also extensibility associating
Add-in License 24 add-ins, using the Add-in Manager 35
Add-in Manager dialog box 28, 30, 31 Attachmate EXTRA! 513
adding checkpoints Attachmate myEXTRA! terminal viewer 514
bitmaps 404 Attachments property 679
for Sieb tabular objects 445 authentication
for text in SAP Web applications 403 for Active Screen 607
add-ins Automation Elements 210
about 23 AutomationElement property 212
associated and loaded 35 AutomationPattern property 212
loading 28 AutoOn token, for Siebel Test Automation
loading with add-in support 30, 249 424
loading without add-in support 34 AutoToken, for Siebel Test Automation 425
715
Index
B CHLD_ENV_1 variable 59
CMDLINE_ENV variable 158
Basic event recording configuration level 618
configuration adjustment options 551
behavior, DHTML 626
configuration levels
bitmap checkpoint
event recording
for SAP Web objects 404
standard 618
BlueZone 517
Web event recording 620
Browser Control Utility 613
Configuration property 679
Browser Details dialog box 85
configuration settings
BROWSER_ENV variable 81, 158
adjusting 524, 545
browsers
copying 510
ignoring 84
restoring 549
supported 581
Configure Emulator Classes Screen 505
bubbling 627
Configure Emulator Screen Settings Screen
Business Component Settings dialog box
507
Web pane 102
Configure HLLAPI Properties Screen 501
Business Process Testing, guidelines for
configuring
working with 683
emulator classes 505
buttons 409
screen settings 507
terminal emulator settings 493
C terminal emulator to work with
calling QuickTest Tests from eCATT 348 QuickTest 512
cell editors, JTable connecting to eCATT 316
working with 162 connecting to the host 512
certificate, security 653 connection speed, SAP server 279
checking Control display mode, for Help screens 276
appearance of SAP Web objects 404 control patterns 210, 213
Sieb tabular objects 445 copying existing configurations 510
Siebel objects 441 Create XML Structure dialog box 698
text in SAP Web applications 403 CreateObject method 171
checkpoints creating steps
bitmap, for SAP Web objects 404 on Oracle objects 242
for Java SWT table trees 166 custom .NET controls 191, 217
for SAP Web tables and grid controls custom Web event recording configuration
404 620
for Sieb tabular objects 445 adding listening events 624
for text in SAP Web applications 403 adding objects to the list 624
pages 587 deleting objects from the list 624
supported by QuickTest 710 loading configuration files 635
supported for Web Forms objects 218 saving configuration files 634
supported for Windows Forms objects specifying listening criteria 626
192 Custom Web Event Recording Configuration
supported for Windows Presentation dialog box 620, 631
Foundation objects 211 customization. See extensibility
tables 166
Web content accessibility 92, 599 D
716
Index
Define Row Range dialog box 166, 359, 366, standalone mode 322
369 packages, moving tests between 344
Delphi Add-in renaming tests, integrated mode 344
using 121 running tests stored in
Delphi Add-in extensibility 121 integrated mode 351
Delphi application, communicating with standalone mode 337
QuickTest 124 saving tests
developer Name attribute integrated mode 340
configuring 225 standalone mode 319
DHTML behavior 626 sending test arguments 348
Dialog display mode, for Help screens 276 setting testing options 333
DIR_ENV_1 variable 59 standalone mode 314
disabling testing modes 310
dynamic transformation support 184, uploading files to 325
231 recovery files 328
disconnecting from eCATT 318 shared object repository files 327
dll names 502 eCATT Connection dialog box 316
downloading files from eCATT 332 eCATT Download File dialog box 332
Duplicate XML Structure dialog box 698 eCATT Trace Options dialog box 335
dynamic transformation support 230 eCATT Upload File dialog box 325, 329
disabling 184, 231 ECCUST_ET table 313
support mechanism 182 Edit XML Structure dialog box 698
embedded Web browser controls 586
emulator settings 552
E
emulator synchronization 540
eCATT 309 Enable Scripting option, Scripting tab 273,
applying privileges for QuickTest 275
integration 314 enabling tests, setting F1Help 278
calling QuickTest tests 348 environment variables
configuring to work with QuickTest application details 158, 293
312 checking settings 178
connecting to 316 record and run 59, 81, 240
copying tests, integrated mode 343 predefined variable names 59, 81
creating tests, integrated mode 346 understanding 39
deleting tests, integrated mode 345 event recording configuration. See Web
disconnecting from 318 event recording configuration
displaying tests (read-only), events
integrated mode 340 viewing with .NET Windows Forms
downloading files from 332 Spy 204
external tool parameters 313 EXE_ENV_1 variable 59
integrated mode 339 EXEPATH_ENV variable 59, 158
integration overview 309 Expert View 159, 213, 416
managing tests from 340 extensibility 23
opening tests Delphi Add-in 121
from recent test list 325 for .NET Web Forms 215
integrated mode 340 for .NET Windows Forms 189
717
Index
G
J
GetStatics method 172
grid objects 414 Java
guidelines for working with Business Process classes, working with static members
Testing 683 172
console 179
environment variables 178
H working with multiple environments
handler 626 182
headers property 679 Java Add-in
Help screens 276, 278 Advanced Java Options dialog box
High event recording configuration level 618 141
high-interactivity applications 422 checking environment settings 178
HLLAPI properties 501 extensibility 129
HLLAPI settings 553 guidelines 131
Host On-Demand See IBM WebSphere Host Java pane, Options dialog box 136
On-Demand troubleshooting 175
HostExplorer 515 Java console 229
HP Service Test and HP Service Test locating 179
Management 29, 687 Java objects
HP Software Support Web site 19 creating 171
HP Software Web site 19 working with 131
HTML Source dialog box 592 Java test objects
HTML Tags dialog box 592 unique test object methods 171
HTML verification 592 JTable cell editors
Hummingbird HostExplorer 515 custom 162
hypertext links, filtering 595 finding the toolkit class using a
718
Index
719
Index
720
Index
721
Index
722
Index
723
Index
724
Index
Windows applications
adding 52
editing 52
Windows Applications Advanced pane 65
Windows Applications pane
settings 61
Windows Applications settings, Windows
Applications Advanced pane 65
Windows Applications tab, Record and Run
Settings dialog box 45, 159
Windows Forms
spying on 195
Windows Presentation Foundation
AutomationElement property 212
AutomationPattern property 212
Object property 212
Windows Presentation Foundation objects,
testing 207
WORKDIR_ENV variable 158
WRQ Reflection 518
WSDL
accessing a secure 651, 671
selecting a source 649
validating 664
WS-I standards 649
X
XML checkpoints 690
XML data, parameterizing values 703
XML output values 692
XML structures 693
creating 695
deleting 698
duplicating 697
managing 694
modifying 697
setting parameter options 703
XML Warehouse 695
XMLData objects 706
XMLWarehouse objects 705
Z
Zephyr Passport 518
725
Index
726