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
- Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
- Locate a PerfTest project to be edited and click to edit the transaction library.
- 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.
- 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.
- Packet: data blocks transmitted between HTTP-based applications. For details, see Adding Request Information (Packet).
- Think Time: time interval between two actions. For details, see Adding Request Information (Think Time).
- Response Extraction: If multiple packets exist in the same transaction, use regular expressions or JSON to extract the output of the previous packet for the input of the next packet. For details, see Adding Request Information (Response Extraction).
- Checkpoint: used to verify if contents returned by servers are correct through customized verification information. For details, see Adding Request Information (Checkpoint).
- (Optional) A transaction contains one or more requests. If your transaction contains multiple requests, click Add Request to add more requests.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot