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!