Creating a command-line config file

You can create a command-line config file from HCL OneTest Performance which you can use while running tests or schedules from the Command-line interface (CLI) and Maven.

Before you begin

You must have completed the following tasks:

  • Created tests in HCL OneTest Performance. See Recording HTTP tests.

  • Installed Maven if you are running tests from the Maven build. For more information, refer to Apache Maven Documentation.

About this task

You can create a command-line config file from HCL OneTest Performance by right-clicking the test asset. The required parameters are automatically assigned, and you can specify any optional parameters, while creating the config file. You can use the config file to run the tests or schedules from the command-line interface and Maven plug-in that is provided with HCL OneTest Performance.

Procedure

  1. Open HCL OneTest Performance.
  2. Browse and select the test or schedule from the Test Navigator pane.
  3. Right-click the selected test or schedule, and then click Create command line config file.
  4. Enter a name for the new configuration file in the File name field, and then click Next.
  5. Perform the following steps in the Command Line Arguments window:
    1. Select the format of the config file from the following options:
      • Regular – Select this format to run tests or schedules from CLI.
      • Maven – Select this format to run tests or schedules from the Maven build.
    2. Specify the values in the fields from the available configuration options, if you want to add more parameters to the config file.
  6. Click Finish.
    The Config file created dialog displays with the location of the config file.

Results

You have created the command line config file.

What to do next

You can run the tests either from the Maven build or CLI. See Running a test or schedule from a command line or Testing with Maven.