Applies to LoadNinja 1.0, last modified on September 20, 2019

When developing web services and applications, it is a common practice to implement the interim work-in-progress versions of these services in local environments. Usually, such environments are somehow restricted from the global network to prevent unwanted external access from outside the organization.

To try out how LoadNinja runs tests on web resources in the local network, use the private endpoint, a lightweight desktop application. With this endpoint, LoadNinja virtual users can access services and applications in your company’s intranet.

System requirements

  • Operating system:

    • 32-bit or 64-bit Windows: Windows 7, Windows 8.1, Windows 10, Windows Server 2008 R2, or Windows Server 2012.
    • 32-bit or 64-bit Linux distribution: Ubuntu 14.04 or later, Debian 8 or later, openSUSE 13.3 or later, Fedora Linux 24 or Later.
    • 64-bit macOS Mavericks 10.9 or later.
  • For Windows and Linux: An SSE2-capable Intel Pentium 4 processor or higher.

  • 160 MB of free disk space.

Set up the endpoint

  1. Log in to LoadNinja.

  2. Go to  > Settings > Endpoint.

  3. Download the installation package for your operating system:

    Endpoint download links

    Click the image to enlarge it.

  4. Locate the application on your device and run it.

  5. In the subsequent authentication dialog, enter the email address and password of your LoadNinja account.

    The endpoint application

    Click the image to enlarge it.

    Click Connect.

  6. If everything is OK, the application will show Connected.

    The endpoint application: Connected

    Click the image to enlarge it.

  7. You can then minimize the application and leave it running in the background.

Notes:

  • Depending on your operating system, you may have to permit the application to access the Internet.

  • To command the LoadNinja endpoint service to connect to the Internet via another proxy, select Connect using proxy on the application’s main screen, then specify the connection data — the address, port, username, and password.

Record scripts for local services and applications

  1. Open LoadNinja.

  2. Go to  > Settings > Endpoint.

  3. Check the Endpoint Status panel there — it should show the Endpoint is ON message.

    Endpoint Status: On

    Click the image to enlarge it.

  4. Click Record on the LoadNinja toolbar.

  5. In the subsequent dialog, select Internal/Private.

  6. Check if the endpoint is enabled, that is, Endpoint Status is set to ON.

    If this is not the case, make sure you have downloaded and configured the LoadNinja endpoint properly.

    Endpoint Status: Off

    Click the image to enlarge it.

    Tip: You can download the endpoint software using one of the buttons in this dialog.
  7. Click Finished.

  8. After that, start recording a script as usual.

Launch load tests against internal services

  1. In LoadNinja, go to the scenario creation form.

  2. Add a script you have recorded against the local service.

  3. Add up to 15 virtual users.

  4. Specify the remaining settings as needed.

  5. Launch the test as usual.

Increase the load

To perform load testing of local applications with more than 15 virtual users involved:

  1. Go to the scenario creation form.

  2. On the Load Configuration panel, select the Display load generator IPs before starting the test check box.

After that, launch the test as you normally would.

You will see the IP addresses of all the load generating instances before the test run starts. Modify your firewall rules and supply the tested service with an external IP address to allow virtual users to interact with your service, or contact your network administrator for assistance.

Dedicated IPs

To make testing of your local applications even more convenient, consider purchasing a dedicated IP for the load generator. This will allow you to to whitelist dedicated IPs without having to check the load generator IPs every time you launch a load test.

To learn more, send an email to loadninjasales@smartbear.com or call us at +1 617-684-1747.

See Also

Test Single-Page Applications
Use Cases

Highlight search results