06 August 2007 - 1.7.5 | home user-guide eclipse jbossws intellij netbeans maven 1.X/2.X PDF files forums bugs sourceforge

Home
Getting Started
User Guide

- Overview
  - Tabbed Desktop
  - License Management
  - Preferences
  - XPath Selection
  - Script Library
- Workspaces
- Projects
- Interfaces
  - Interface Viewer
- Operations
- Working with Requests
  - Form Editor
  - Outline Editor
  - Message Inspectors
  - Attachments/Inline Files
- Functional Testing
  - Getting Started
  - TestSuites
  - TestCases
    - Test Requests
      - Assertions
      - Editor Wizards
    - Property Transfers
    - Conditional Gotos
    - Groovy Scripts
      - Examples
      - GroovyUtils
    - Properties Step
    - Delay Step
    - Mock Response
    - DataSource
    - DataSource Loop
  - Property Expansion
- Load Testing
  - Getting Started
  - Limit & Strategies
  - Execution
  - Assertions
  - Diagrams
  - JMeter comparison
- Mocking
  - Getting Started
  - Mock Services
  - Mock Operations
  - Mock Responses
- Usage Scenarios
  - Data-Driven Testing
  - Template-Driven Testing
  - Interactive Testing
  - Surveillance Testing
- Tool Integrations
  - Code Generation
  - WSDL Generation
  - WS-I Tools
  - Apache Tcp-Mon
- CommandLine Tools
  - TestCaseRunner
  - LoadTestRunner
  - MockServiceRunner
  - ToolRunner
- Keyboard shortcuts

IDE/Tool Plugins
Search soapUI site
Project Documentation

- About soapUI
- Project Info
- Project Reports

## SoapUILoadTestRunner

The SoapUILoadTestRunner can be used to run LoadTests from the command line, which can be used for surveillance testing and maximizing local testing. The runner will run each specified LoadTest in turn, be carefull not to run LoadTests with an indefinite test limit.

The runner is defined in the `com.eviware.soapui.tools.SoapUILoadTestRunner` class and takes the path to the soapUI project file containing the loadtest(s) to run and a number of options:

switch | description
--- | ---
e | The endpoint to use when invoking test-requests, overrides the endpoint set in the project file
h | The host:port to use when invoking test-requests, overrides only the host part of the endpoint set in the project file
s | The TestSuite to run, used to narrow down the tests to run
c | The TestCase to run, used to narrow down the tests to run
l | The LoadTest to run, used to narrow down which loadtests to run
u | The username to use in any authentications, overrides any username set for any testrequests
p | The password to use in any authentications, overrides any password set for any testrequests
d | The domain to use in any authentications, overrides any domain set for any testrequests
r | Turns on exporting of a loadtest statistics summary report (see below)
f | Specifies the root folder to which test results should be exported (see below)

The distribution contains a loadtestrunner.bat script for running tests from within the bin directory, for example;

    loadtestrunner.bat -ehttp://localhost:8080/services/MyService c:\projects\my-soapui-project.xml

will run all the loadtests defined in the my-soapui-project.xml file against the specified service-endpoint.

### Reporting and Exporting

The SoapUILoadTestRunner has limited reporting functionalities, it will during execution print diagnostic and progress information and if the -r switch was specified write the LoadTest statistics and LoadTest Log to a file after execution. Error Result in the LoadTest Log will be exported likewise, in the same manner as for the TestCase runner.

    loadtestrunner -stest -ctestcase4 -l"LoadTest 1" -r "C:\Documents and Settings\ole.matzura\My Documents\jbossws-soapui-project.xml"

produced the following output:

    SoapUI 1.5beta2 LoadTestRunner
    15:31:50,397 INFO  [SoapUILoadTestRunner] setting projectFile to [C:\Documents and Settings\ole.matzura\
     My Documents\jbossws-soapui-project.xml]
    15:31:50,517 INFO  [SoapUILoadTestRunner] setting testSuite to [test]
    15:31:50,517 INFO  [SoapUILoadTestRunner] setting testCase to [testcase3]
    15:31:52,901 INFO  [WsdlProject] Loaded project from [C:\Documents and Settings\ole.matzura\My Documents\
     jbossws-soapui-project.xml]
    15:31:59,941 INFO  [SoapUILoadTestRunner] Skipping testcase [testing], filter is [testcase3]
    15:31:59,941 INFO  [SoapUILoadTestRunner] Skipping testcase [testcase2], filter is [testcase3]
    15:31:59,941 INFO  [SoapUILoadTestRunner] Running LoadTest [LoadTest1]
    15:32:00,141 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest1] progress: 0.0025
    15:32:01,153 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest1] progress: 0.019533332
    15:32:02,154 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest1] progress: 0.036383335
    15:32:03,155 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest1] progress: 0.053066667
    ..etc..
    15:32:57,944 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest1] progress: 0.9662167
    15:32:58,956 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest1] progress: 0.9830833
    15:32:59,977 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest1] progress: 1.0001
    15:33:00,979 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest1] finished with status FINISHED
    15:33:00,979 INFO  [SoapUILoadTestRunner] Exporting log and statistics for LoadTest [LoadTest1]
    15:33:01,039 INFO  [SoapUILoadTestRunner] Exported 2 log items to [LoadTest 1-log.txt]
    15:33:01,039 INFO  [SoapUILoadTestRunner] Exported 0 error results
    15:33:01,119 INFO  [SoapUILoadTestRunner] Exported 2 statistics to [LoadTest 1-statistics.txt]
    15:33:01,119 INFO  [SoapUILoadTestRunner] Skipping testcase [Copy of Copy of testing], filter is [testcase3]
    15:33:01,119 INFO  [SoapUILoadTestRunner] soapui suite [test] finished in 61178ms

The exported statistics file is the same as exported from within the LoadTest Editor and looks as follows:

    Request Step,min,max,avg,last,cnt,tps,bytes,bps,err
    request step,1,407,17.63,26,11591,283.49,5192768,86696,0
    Total:,1,407,17.63,26,11591,283.49,5192768,86696,0

Next: SoapUIMockRunner