Help Center/ CodeArts PerfTest/ User Guide/ Reference/ Mapping Between JMeter and PerfTest Fields
Updated on 2024-04-08 GMT+08:00

Mapping Between JMeter and PerfTest Fields

CodeArts PerfTest supports the import and automatic switchover of the JMeter script. Table 1 describes the mapping between JMeter and PerfTest fields.

Table 1 Mapping between JMeter and PerfTest fields

JMeter Field

PerfTest Field

Parameter Description

Thread group

Name

Transaction Name/Task Name

The HTTP request and the subsequent HTTP request form a transaction.

If no valid value is obtained, number of concurrent requests is 1 and the duration is 1 minute by default.

Number of threads

Number of concurrent test tasks

Duration

Test task duration

User-defined variables

Name

Enumeration variable name

Global variable, enumerated type. The name must be unique.

Value

Enumeration variable value

User parameters

Name

Enumeration variable name

Global variable, enumerated type. The name must be unique.

User_1

Enumeration variable value

User_2

Enumeration variable value

...

Enumeration variable value

User_N

Enumeration variable value

HTTP header manager

Name

Packet header

When the POST, PATCH, PUT, or DELETE request mode does not contain the Content-Type header, the Content-Type header value is set to application/x-www-form-urlencoded by default.

Value

Header value

Default HTTP request

Protocol

-

If the HTTP request does not contain a value, the default value of the HTTP request is used.

Priority: HTTP request > thread group > test plan.

Server name or IP address

Port number

Path

Parameter

Message body data

Response timeout in the advanced options.

HTTP request

Protocol

Protocol type

Packet. Ignore request modes except POST, GET, PATCH, PUT, and DELETE. The default value is 5,000 ms when no response timeout value is obtained.

Protocol, server name or IP address, port number, and path

Request URL

Method

Request mode

Parameter

Add the content to the URL or packet content as required.

Message body data

Packet content

Response timeout in the advanced options.

Response timeout

Regular expression extractor (the response field to be checked)

Body

Packet content

Response extraction. Only the regular expression extractor and fixed timer under the HTTP requests can be imported. If the default value is empty, the reference name is used by default.

Body (unescaped)

Packet content

Body as a Document

Packet content

Message header

Header

URL

URL

Response code

Response code

Request Headers. Response information.

Import is not supported. The regular expression extractor is ignored.

Regular expression extractor

Reference name

Variable name

Regular expression

Regular expression

Template

Sequence number of matching item

Match digits

Expression value

Default value

Default value

Fixed timer

Thread latency

Duration

Think time. If no valid value is read, the default value 1,000 is used.

Random function

-

Random number in a range

An integer generated randomly within the range entered by a user.

For example, ${__Random(-2147483648,2147483647)}

JSON extractor

Name of created variables

Variable name

Response extraction. Default extraction range: parameter values in .json format. Only the JSON extractor under the HTTP requests can be imported.

JSON Path expressions

Key name

Default Values

Default value