Create unit tests in external IDEs

The following sections describe how to develop a unit test within the Microsoft Visual Studio 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 Supported Protocols.

There are two IDE add-ins for developers:

  • Visual Studio
  • Eclipse

These add-ins allow you to create and run a unit test directly from within Visual Studio or Eclipse. The run mechanism is LoadRunner Professional'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.

When working in the IDE environment, the complete LoadRunner Professional 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 (select the relevant version).

Back to top

See also: