background image
<< Insert a end_transaction statement into the Vuser script | Understanding GUI Vuser Scripts >>
<< Insert a end_transaction statement into the Vuser script | Understanding GUI Vuser Scripts >>

Generating Heavy User Load: Rendezvous Points

Creating Vuser Scripts
Chapter 26, page 448
GUI Vuser Scripts Developing GUI Vuser Scripts
In
Understanding GUI Vuser Scripts
GUI Vuser scripts are written in TSL--Mercury Interactive's Test Script Language.
TSL is a C-like programming language that is high-level and easy to use. It
combines the power and flexibility of a conventional programming language with
functions designed specifically for testing. For additional information about TSL,
refer to the
TSL Online Reference
.
This section presents a simple Vuser script, created in WinRunner. Note that this
script will not work on a Unix machine. The script starts an ATM application
(mratm.exe), enters an account number, deposits fifty dollars, and then closes the
application.
The first section of the script starts an application and moves it to a new location
on the screen. The system function starts the ATM application. The win_move
function moves the ATM application to a specified location on the screen.
# Initialize and invoke ATM client application.
system ( "mratm.exe" );
win_move ( "Mercury ATM", 325, 0 );