Share this page

# NUnit tests

This topic describes how to use NUnit tests in performance tests.

In this topic:

## Prerequisites

- The same version of NUnit Framework must be installed on the load generator and on the machine used for test creation (the one installed as NuGet package). If the versions are different, errors might occur during the test run.

- Make sure that nunit.framework.dll resides in the same directory as the NUnit test.

- Create an NUnit test, and save it on your file system.

  Note:

  - The file path inside a script folder must not exceed 260 characters.

  - You must convert the test to a VuGen script before uploading it. Use the VuGen Script Converter to convert it to a Unit Test for .NET script (described in Set up and run an NUnit test).

Back to top

## Develop an NUnit test using Visual Studio

Develop the NUnit test in Visual Studio using the Add-in for Developers from your installation package. This requires:

1. Installing the IDE for Dev add-in for your Microsoft Visual Studio version.

2. Adding the API functions to your test.

For details, see Develop a Unit Test Using Visual Studio (NUnit test) in the OpenText Professional Performance Engineering Help Center.

Back to top

## Set up and run an NUnit test

This task describes how to use NUnit tests in performance tests.

1. Convert tests based on NUnit to a VuGen script.

   For details, see Convert NUnit and JUnit based-tests to VuGen scripts.

2. Upload the converted VuGen script to OpenText Enterprise Performance Engineering.

   For details, see Upload a script.

   After uploading the script, it is added to the test management tree. You can view and edit most scripts directly from within the user interface. For details, see Edit a script.

3. Create a test using the script.

   Assign as the load generator a machine that has NUnit and the relevant prerequisites installed on it.

   For details, see Tests.

4. Run the test.

   For details, see Manage a performance test run.

Back to top

See also:

- Assets
- Tests

https://admhelp.microfocus.com Enterprise Performance Engineering,LoadRunner Enterprise 8942
Tips to improve your search results...OpenText™ Enterprise Performance Engineering Help Center OpenText™ Enterprise Performance Engineering Help 26.1 All View Local Help Center View Online Help Center Version: