Stopping the test run from a command line

After you run the test from the command-line interface (CLI), you can stop the test run to use additional parameters in your test run.

Before you begin

You must have initiated a test run from CLI. See Running a test or schedule from a command line.

Procedure

  1. Open the command prompt.
  2. Run the following command to change the directory to the cmdline directory:
    cd <cmdline_directory_path>
    For example,
    cd C:\Program Files\HCL\hclonetest\cmdline

    Based on the operating system that you used to install HCL OneTest™ Performance, you can locate the cmdline directory as follows:

    Operating system The default path to the directory
    Windows® C:\Program Files\HCL\hclonetest\cmdline
    Linux™ /opt/HCL/hclonetest/cmdline
    Mac /Application/HCL/hclonetest/cmdline
  3. Run the following command to stop the test run after a while:
    cmdline -workspace workspace_full_path -stoprun
    For example,
    cmdline -workspace "C:/Users/HCL/hclonetest/workspace" -stoprun 
    The test run stops after a few seconds of execution of the command and the status is displayed on CLI. The test log is generated and you can view it from HCL OneTest™ Performance.
    Note: If you have used the -exportlog parameter when running the test, the test logs are stored in the specified location and also in HCL OneTest™ Performance.
  4. Run the following command to stop the test run immediately:
    cmdline -workspace workspace_full_path -abandonrun
    For example,
    cmdline -workspace "C:/Users/HCL/hclonetest/workspace" -abandonrun
    The test run stops immediately and the status is displayed on CLI. However, the test log is not generated.

Results

You have stopped the test run from CLI.