background image
<< Resizes a window | Enhance your script with synchronization points >>
<< Resizes a window | Enhance your script with synchronization points >>

Creating a Java Vuser Script

Creating Vuser Scripts
Chapter 25, page 424
Java Vuser Scripts Creating Java Vuser Scripts
In
Creating a Java Vuser Script
1
Start VuGen and create a new Vuser script. Choose File > New, and select Java
from the menu list. Click OK. VuGen creates a Java template.
2
Prepare a batch file with Java Mercury support.
For Java applications, make sure that the first line of the batch file is:
java -Dawt.toolkit=mercuty.awt.awt
<application>
For Java applets, make sure that the first line of the batch file is:
java LoadApp
<urt>
3
Before you begin recording, you can set the Java recording settings.
4
After you create a new Java Vuser script and configure the Java recording
settings, you begin recording user actions within the applet or application.
Specify the path to the batch file which you created in the Program To Record field
of the Start Recording dialog box.
For more information about recording, see Chapter 3,
Recording with VuGen
.