Products Docs & Support Community

Home

Load Generator Support

Summary

NetBeans Profiler supports using a load generator to replay previously saved load testing scripts. Instead of supplying its own load generator runtime the NetBeans Profiler relies on integrating third party tools.

Supported load generator tools

  • Apache JMeter Load Testing Tool (homepage)

Provided functionality

1. Create a new load testing script

Creating a new load testing script is as easy as invoking File -> New File ... -> Load Testing Scripts -> JMeter Plan

2. Edit a load testing script

It's possible to edit a previously created load testing script. Just locate the script file within the project structure and invoke the External Edit action on the popup menu.

For more information about editing the JMeter testing scripts see JMeter User Manual

3. Start a load testing script

The load testing script can be started
  • In standalone mode

    From the Runtime tab invoke Load Generators -> JMeter -> Start ... This action will bring up a browse dialog where you can specify the script to run.

  • From the profiler Select Task Panel

    For J2EE applications you can specify a load testing script to be run in the Select Task Panel. The selected script will be started right before the browser window is about to be opened.

After the script has been loaded a new Ouptut Window is opened. The window displays the current state of the load generator and various controls to start, stop or restart the script.

Also, you can see the current status in the Runtime tab

Load Generator Running Load Generator Stopped

4. Stop and restart a load testing script

You can stop and restart a load testing script from either the Runtime tab or Output Window

  • Runtime tab
    • Stop a running load testing script

      Select a node under JMeter and invoke Stop action from the popup menu

    • Restart a stopped load testing script

      Select a node under JMeter and invoke Restart action from the popup menu

  • Output Window
    • Stop a running load testing script

      Use the Stop icon as shown bellow

    • Restart a stopped load testing script

      Use the Restart icon as shown bellow