Java Vusers

In Java Vuser scripts, you can place any standard Java code. To create an empty Java Vuser script, select Java Vuser in the New Virtual User dialog box. VuGen creates an empty Java script:

import lrapi.lr;
public class Actions
{
    public int init() {
        return 0;
    }
    public int action() {
        return 0;
    }
    public int end() {
        return 0;
    }
}

Note: For Java type Vusers, you can only edit the Actions class. Within the Actions class, there are three methods: init, action, and end. Place initialization code in the init method, business processes in the action method, and cleanup code in the end method.

Got it!
Welcome to the help center for LoadRunner Professional, formerly known as LoadRunner. LoadRunner Professional is part of the new Micro Focus LoadRunner family of performance testing products.