nav-img
Advanced

Adding Request Information (Checkpoint)

Note

Set checkpoint based on the actual return value of the tested application. If this parameter is not set, the default checkpoint is the response code 2xx.

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 Test Task.
  3. On the Test Tasks tab page, expand a task, expand the test case to which you want to add request information, and click Add Request.
  4. Select Checkpoint for Request Composition and configure the other parameters by referring to Table 1.

    Table 1 Checkpoint parameters

    Parameter

    Description

    Checkpoint

    After Checkpoint is enabled, you can check whether the content returned by a server is correct through customized verification information.

    Response Code

    Set this parameter only when Protocol Type on the Packet tab page is HTTP or HTTPS.

    This parameter is used to respond to HTTP and HTTPS response status codes carried in a packet, including 1XX, 2XX, 3XX, 4XX, and 5XX. For details, see corresponding protocol specifications.

    Header

    Set this parameter only when Protocol Type on the Packet tab page is HTTP or HTTPS.

    This parameter refers to headers of the HTTP and HTTPS. For details about supported headers, see corresponding protocol specifications.

    1. Click Add Header.
    2. Enter a Header Name. For details, see Header Description.
    3. Set checking items.

    Body

    This parameter refers to the body parts of the HTTP, HTTPS, TCP, and UDP, namely the load parts of the requests and responses.

    1. Click Add Content.
    2. Set checking items.

    Condition Rule

    • AND: The verification is successful only when all the check conditions are met.
    • OR: The verification is successful when any check condition is met.

  5. When the configuration is complete, click OK.