Convert NUnit, JUnit, or Selenium Tests to VuGen Scripts

This topic describes how to convert NUnit, JUnit, or Selenium tests to VuGen Scripts. It also includes a workflow that describes how to run a LeanFT test in Performance Center.

Prerequisites for converting NUnit, JUnit, or Selenium tests

Before converting a NUnit, JUnit, or Selenium test to a to VuGen script, perform the following:

  • Configure the load generator machine the same way as the machine that is used to record or prepare the script or test.

  • For NUnit tests: Make sure that nunit.framework.dll resides in the same directory as the NUnit test, and that NUnit framework is installed on the load generator machine.

  • Java scripts and JUnit tests: Verify that test dependencies are available on the load generator machine with the same paths defined in the classpath Run-Time settings.

Back to top

Convert the NUnit, JUnit, or Selenium script

This workflow describes how to convert NUnit, JUnit, or Selenium tests to VuGen Scripts.

  1. Download the script converter

    1. In the upper-right corner of the My Performance Center window, click , and select Download Applications.

    2. Select VuGen Script Converter and click Download.

    3. Install the script converter and run VuGenScriptConverter.exe.

  2. Convert a test to a VuGen script

    You can convert a test to a VuGen script using the script converter, or convert it automatically from a command prompt.

  3. Upload converted VuGen scripts to Performance Center

    1. Save the converted VuGen scripts locally.

    2. On the My Performance Center navigation bar, select Test Management> Test Plan. Click the Upload Scripts button.

      For user interface details, see Upload Scripts Dialog Box.

Back to top

Run a UFT Pro (LeanFT) test

This workflow describes how to run a UFT Pro JUnit or NUnit test in Performance Center.

  1. Prerequisites

    Get a UFT Pro JUnit, or NUnit test.

  2. Convert the test to a VuGen script and upload it to Performance Center.

    For details, see Convert the NUnit, JUnit, or Selenium script.

  3. Design a performance test.

    For details, see How to Design a Performance Test.

  4. Run the performance test.

    For details, see How to Manage a Performance Test Run.

  5. Analyze test results

    For details, see View and Analyze Results.

Back to top

See also: