nav-img
Advanced

Adding Transactions

CPTS supports flexible combination of multiple transactions. You can add multiple transactions to a test project.

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 CPTS console and choose CPTS Test Projects in the navigation pane on the left.
  2. Locate a CPTS test project to be edited and click Edit Transaction Library.
  3. On the Transactions tab page, click Add Transaction and set 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 protocols. Multiple transaction requests can be connected with each other.
      Note

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

  4. Click OK.
  5. 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.

  6. (Optional) A transaction contains one or more requests. If your transaction contains multiple requests, click Add Request to add a request again.
  7. After a transaction is created, you can modify, delete, and copy the transaction.

    • Modify the transaction name: On the Transactions tab page, click Rename next to the transaction to be modified, modify the transaction name, and click OK.
    • Delete the transaction: On the Transactions tab page, click More > Delete next to the transaction to be deleted and delete it as prompted.
      Note

      A transaction used by a test cannot be deleted.

    • Copy the transaction: On the Transactions tab page, click More > Copy next to the transaction to be copied, and click OK.