Create Vuser scripts or unit tests in external IDEs
The following sections describe how to develop a Vuser script or unit test through programming, within the Microsoft Visual Studio, JetBrains IntelliJ IDEA, or Eclipse environments.
LoadRunner Professional provides add-ins that allow you to develop scripts with supported versions of these environments. For details on supported versions, see the System and protocol requirements.
There are two types of add-ins:
- Visual Studio
- IntelliJ IDEA
IDE add-in for developers:
- Visual Studio
The basic IDE add-in allows you to create a Vuser script within the IDE environment. You program a standard Vuser script using standard functions or protocol-specific functions from the Function Reference, within your native environment. You can then use the script in your testing environment, for example, in a LoadRunner Professional scenario.
The IDE add-in for Developers allows you to create and run a unit test directly from within Visual Studio or Eclipse. The run mechanism is VuGen's mdrv process. This add-in adds a Devops Vuser menu to the Visual Studio or Eclipse interface. You can configure runtime settings directly from your development environment and run the test. The saved tests, NUnit (Visual Studio) or JUnit (Eclipse), can be referenced directly from your testing environment, for example, a LoadRunner Professional scenario.
These add-ins are provided in Additional Components folder of your LoadRunner Professional installation package. Be sure to select the correct Visual Studio add-in for your version of Visual Studio.
You can either create a new VuGen script within the IDE environment, or begin developing your script in VuGen. If, while developing a script in VuGen, you need the capabilities of your native environment, the Open in Visual Studio or Open in Eclipse button opens the script in the respective application. This requires you to have first installed the basic Visual Studio IDE add-in. (For Eclipse, VuGen automatically installs the add-in the first time you choose Open in Eclipse). For details, see Debug .NET Vuser scripts or Edit and run scripts in Eclipse or IntelliJ.
When working in the IDE environment, the complete VuGen API is available from the Object browser or editor. For information about each of the Vuser functions that you can use when programming your script, see the Function Reference.