Jmeter (4)-assertions/checkpoints

Source: Internet
Author: User

Assertions are similar to checkpoints in LoadRunner. Make judgments on the information returned by the previous request, such as the string, packet size, HTML, XML, and image, to ensure the accuracy of the returned information.

Add response assertions: Welcome

If the login page is successful, the background will return the Welcome Message

Multiple assertions can be added to the assertion for joint judgment, and the parameterized method can also be used for dynamic judgment.

Add assertion results

Assertion is correct

Let's take an exception asserted to see if jmeter returns an exception in the asserted result.

Modify assertion at will

When you run the script, a prompt message indicating that the assertions cannot be found appears.

Jmeter (III)-simple http request (non-recorded)

Jmeter (II)-use a proxy recording script

Jmeter (1)-simplified test script

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.