Updated on 2024-11-05 GMT+08:00

Creating a Transaction

A transaction refers to a complete operation process from end to end, such as a login, criteria-based query, and payment. A transaction can be used by multiple test cases. CodeArts PerfTest supports flexible combination of transactions. You can create multiple transactions to a test project.

The extensible test project does not support the transaction library function.

Prerequisites

A test project has been created. For details on how to create a test project, see Creating a Test Project.

Procedure

  1. Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
  2. Locate a PerfTest project to be edited and click to edit the transaction library.
  3. On the Transaction Library tab page, click create a transaction and configure the following parameters:

    • Transaction Name: name of a customized transaction.
    • Type: Normal transaction refers to transactions of performance tests in normal scenarios, including API tests of applications built based on HTTP/HTTPS/TCP/UDP/HLS/RTMP/WebSocket/HTTP-FLV/MQTT protocols. Multiple transaction requests can be connected with each other.

      A maximum of 40 requests can be added to a normal transaction.

    Click OK.

  4. Add requests to the transaction and click OK.

    When the transaction type is Normal, you can add four types of request compositions: packet, think time, response extraction, and checkpoint. Packet is mandatory.

  5. (Optional) A transaction contains one or more requests. If your transaction contains multiple requests, click Add Request to add more requests.