Creating Load Tests for SOAtest Functional Tests
For a demonstration of how to create load tests for service and web functional tests, see Creating and Performing a Load Test (for Web and/or Service Functional Tests).
- If the functional test scenario contains Web functional tests, configure and validate the test suite for load testing as described in the Load Test section of the SOAtest User’s Guide.
- In Parasoft Load Test, do one of the following:
- To create a new load test project:
- Choose File> New> Load Test Project or click the New Load Test toolbar button.
- Select SOAtest, then complete the Load Test Configuration wizard as described in Completing the Load Test Configuration Wizard.
- To add the functional tests to an existing load test project: Open that load test file (File> Open).
Info title Important: Specify Which Functional Tests to Use for Load Testing
Before you can run the load test, you must first indicate which SOAtest functional tests should be used for load testing. You can do this in two places:
• In the Load Test Configuration wizard’s VU Profiles page.
• In one of the Profile> [Virtual User] configuration panels.
- To create a new load test project:
- (Optional) Select the top-level Profiles node in the Load Test tree, then customize environments, data source options, and setup/teardown options as needed.
- (Optional) Modify additional settings as needed. For details, see:
If you changed any of the .jar class path elements, you need to reload the component for these changes to take effect. To do this, just click the Reload button.
Be sure to save your project before reloading the component; unsaved changes will be lost upon component reloading.
Creating Load Tests Driven by a Jar File
For a demonstration of how to create load tests driven by a jar file, see Creating Custom Load Test Components.
Immediately after a load test begins, the load test details display within the Graph tab in the Load Test Progress tab of the right GUI panel. This Graph tab allows you to view graphical data pertaining to the load test in progress.
You can change the number and layout of graphs shown by right-clicking in the Graphs tab, then choosing one of the available layout options.
The following graphs display in the Graph tab legend:
To fill in a graph area with its designated color, check the Fill graph areas check box.
To customize load test progress graph colors:
- Right-click the desired bar in the Graph tab legend and select ChangeColor from the shortcut menu. The Selectcolor dialog box opens.
- Manipulate the color scheme as needed in the dialog box and click OK.
To dynamically modify the virtual user count or profile weights while a load test is running:
- Select the current scenario from the Scenarios node of the Load Tests tree. The Users and Profiles tabs display in the right GUI-panel with the Users tab selected.
The grayed-out sections of the tabs signify the elapsed time of the load test. You cannot modify any part of a graph curve that has been grayed-out.
- Select the Users tab and modify the graph curve as needed by selecting from the Vertical scale drop-down menu, clicking the More points and Less points buttons, or by dragging and dropping the curve with your mouse. You cannot alter the duration of the load test while it is in progress.
- Select the Profiles tab and modify the graph curve as needed by selecting from the Vertical scale drop-down menu, clicking the More points and Less points buttons, or by dragging and dropping the curve(s) with your mouse. You cannot alter the duration of the load test while it is in progress.
For more information on customizing the Users or Profiles tabs, see Customizing Test Suite Scenarios
- Return to the Load Test Progress graph by selecting Window> Load Test Progress.
To view execution details after the test has completed:
For optimized performance, Parasoft Load Test uses the parallel young generation garbage collector specified by the JVM argument "-XX:+UseParallelGC". If necessary, this can be turned off with the command-line argument "-XX:-UseParallelGC". If you will be using this argument on a Windows system, prepend -J before the argument (following the name of the executable). For example: loadtest.exe -J-XX:-UseParallelGC. To enable the concurrent mark and sweep GC in the Load Test JVM, the UseParallelGC option must be explicitly disabled; for example: lt -J-XX:-UseParallelGC -J-XX:+UseConcMarkSweepGC.