Jmeter's assertion (in response to the assertion, the assertion duration)

 An assertion is a test session, a very important one.

Response results are correct, we can judge by asserting, without manual confirmation.

1. Request to add assertion

Often used: in response to the assertion> Bean Shell assertion> assertion duration

 

2. Response assertion

● used to determine the response field:

Response text (text data acquired in response to the determination, for example: HTML pages, etc. Json string)

Headers the Response (on the header in response to the determination, for example: status code response 200 or the like, or an interface to return status codes specified meanings)

Status Ignore (If the status code is 200, jmeter will be judged successful if the status code is others will be judged as a failure such as: ~ 302 redirect, it needs to check the ignore status, go directly to assert other content)

● Common match mode:

Including (to return results include specific content to support the regular matching )

Equals (returns results with the specified exactly the same content)

SubString (with "including" almost all refer to return results include specific content, but subString does not support regular  )

No (corresponding inverted)

 

3. Assertion Duration

Response data obtained for a limited time, the same as a failure timeout

For example: 30ms data are not available, the response indicates a failure

 

Guess you like

Origin www.cnblogs.com/bf-blackfish/p/11242730.html