Edit and run scripts in Eclipse or IntelliJ

You can use supported versions of Eclipse or IntelliJ IDEA to take advantage of additional tools to view, edit, and debug your Java Vuser, Java Record Replay, or Java over HTTP scripts. You can add breakpoints, view variable values, add references, and edit the script using smart code completion (IntelliSense-like behavior). You can also run the script in a step-by-step mode for debugging.

The add-ins for Eclipse and IntelliJ IDEA are located in your LoadRunner Professional installation package's /Additional Components folder. For details, see Additional components.

Note: For details on supported versions, see the Support Matrix.

Edit scripts with Eclipse

When you save your script, VuGen creates Java source files in your script's folder. You can open the solution file in Eclipse and view all of its components in the Projects Explorer.

VuGen also has an add-in for Eclipse developers that allows you to create JUnit tests that can be called directly from the testing application, such as LoadRunner Controller, without having to open them in VuGen. For details, see Create Vuser scripts or unit tests in external IDEs.

To open a Vuser script in Eclipse:

  1. Make sure you have Eclipse installed on your machine, running with a supported JDK.
  2. Set the location of the Eclipse IDE in the Scripting > Java node in VuGen's Options dialog box. For details, see Scripting Options tab.
  3. Create a Java script (Java Vuser, Java Record Replay, or Java over HTTP).
  4. Click the Open Script in Eclipse button on the VuGen toolbar. If this is your first time using Eclipse from within VuGen, it will automatically install the VuGen Eclipse plugin.

For more information, see Create a Vuser script in Eclipse.

Edit scripts with IntelliJ IDEA

LoadRunner Professional's IDE add-in for IntelliJ IDEA enables you to create and edit a Java protocol script in a JetBrains IntelliJ IDEA environment.

For details, see Create a Vuser Script in IntelliJ IDEA.

See also: