Previous Topic: JMeterNext Topic: Test Case Contents


Execute JMeter Test Cases Interactively

To execute JMeter test cases interactively

  1. Run the following Ant task.

    ant jmeter.core.init

    This replaces @VAR@ sequences with real paths while copying test files from cs-sdk-home/connectors/*/test/ to cs-sdk-home/build/tests/, with any supporting XML files required for each test.

  2. Run the following command to start the JMeter application:

    cs-sdk-home/thirdparty/jakarta-jmeter-*/bin/jmeter.bat

  3. In JMeter, select File, Open, and open a test case from the following directory:

    cs-sdk-home/build/testcases

    Note:

    JMeter tests can be executed as a batch process with a bundled Ant task which produces summary web page results in cs-sdk-home/build/jmeter/index.html, for example:

    cd cs-sdk-home

    ant jmeter.core

    A common sequence is to do such a bulk test run, and then investigate any failing test cases individually using the GUI, usually running against a connector server that is running inside your IDE's debugger so you trace exactly what the code is doing.

    Note:

    For more information, see cs-sdk-home/build.xml. For more information about JMeter testing, see cs-sdk-home/README.txt.