To prepare Vuser scripts using Java code, use the Java type Vusers. This Vuser type supports Java on a protocol level. The Vuser script is compiled by a Java compiler and supports all of the standard Java conventions. For example, you can insert a comment by preceding the text with two forward slashes "//".
The first step in creating a Java compatible Vuser script is to create a new Vuser script using the Java Vuser protocol. Then program or paste the desired Java code into the script. You can add Java Vuser functions to enhance the script and parameterize the arguments to use different values during iterations. For details, see Manually Create a Java Script.
The Java Vuser script runs as a scalable multi-threaded application. If you include a custom class in your script, make sure that the code is thread-safe. For details, see Java protocol programming tips.
After you prepare a script, run it as a standalone test from VuGen. A Java compiler (javac) checks it for errors and compiles the script.
Then integrate the script into your environment: a LoadRunner Professional scenario, LoadRunner Enterprise performance test, or Business Process Monitor configuration.
Note: Java Vuser protocol does not support 64-bit replay when using web packages.