LR's jmeter also has the second "checkpoint"

Source: Internet
Author: User

Okay! Next to the previous articleArticleAnd keep moving forward.

 

Checkpoint: For a simple understanding, we have parameterized the user name and password as described in the previous chapter. How can we determine whether jmeter correctly calls the files in test. dat. Of course, we can view it in the result chart. But I still want to check it in the "login" area.

Checkpoints in jmeter are completed by adding assertions.

1.

Right-click our "login" Page ----> Add ----> assertion ----> response to assertion

To set the assertions page. What do we want to assert? The user name and password used for calling are the user name and password in the test. dat file. How can this problem be solved.

 

3.

Here we need to prepare two files, one for the user name and the other for the password.

Next, write a function to call these two files. First read my previous article.

Add two "Modes" on the Response assertions page"

(In step 3, another method is to directly call the data from test. dat for check. I tried it for a long time and failed. I don't know why ?)

4.

Add an asserted result

Right-click our "login" Page ----> Add ----> listener ----> asserted result

You can also add a "view result tree", right-click our "login" page, and choose "add"> "listener"> "view result tree ".

 

Set five users in the thread group and click Run.

View the asserted result:

View the result and do the following:

Now, the checkpoint is added successfully!

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.