All Products
Search
Document Center

Performance Testing:JMeter environment management

Last Updated:Nov 01, 2024

The JMeter environment management feature allows you to manage the JMeter runtime environment, including the official JAR packages and custom JAR packages. The feature serve the following purposes: avoiding confused extensions after they are uploaded in batches, managing dependency files of various versions, creating scenario-based environments, and setting up standardized environment templates. Then, you can quickly create test scenarios. This topic describes how to view, modify, and create a JMeter environment.

Create an environment

You can create required JMeter environments. A user can create up to two environments.

  1. Log on to the PTS console and choose Performance Test > JMeter Environment.

  2. On the Environments page, click Create Environment in the upper-right corner.

  3. On the Create Environment page, set Environment Name and JMeter Version.

  4. Click Upload File to upload the required dependency files.

    Note

    Up to 80 files or 100 MB in size can be uploaded.

  5. Click Upload Property File to upload a local property file to define the properties of the JMeter environment.

  6. Click Save.

    The JMeter environment is created.

View and modify the environment

On the Environments page, you can view and modify the name, JMeter version, and dependency files of an environment. You can also copy an environment.

  1. Log on to the PTS console and choose Performance Test > JMeter Environment.

  2. On the Environments page, click View in the Actions column.

    On the Create Environment page, you can view or modify the dependent files of the environment.

  3. (Optional) You can click Copy in the Actions column to copy the environment. The default name of the copied environment is Environment name_Copy.

    Note

    The JMeter environment management feature also provides template environments. You can view and copy them, but cannot delete them.

Use the environment

After you create or modify an environment, you can use the environment in JMeter tests. Perform the following steps:

  1. Log on to the PTS console, choose Performance Test > Create Scenario, and then click JMeter.

  2. On the Scenario Settings tab, set Use Dependency Environment. If you select Yes, you must select an existing environment. If you select No, you must select a JMeter version.

Customize properties

After you can upload a property file to the JMeter environment, PTS automatically parses the property names and property values. You can edit them.

  1. Log on to the PTS console and choose Performance Test > JMeter Environment.

  2. On the Environments page, click Create Environment in the upper-right corner.

  3. On the Create Environment page, click Upload Property File to upload a local property file.

    From this property file, the system can parse the properties. You can edit the Property Name, Property Value, and Property Description fields on the Create Environment page.