Prerequisite: View the result tree of the listener + assertion result + aggregate report + graphical result + view the result in a table
1. Save the file for viewing the result tree
Save the data in the view result tree of the previous chapter as demo.csv, demo.jtl, and demo.xml files in three formats, try to read the content of the file
2. Save the file of the assertion result
Set an incorrect assertion and save the failed assertion data in the assertion result component (jtl, xml, csv three formats)
Steps:
1. On the basis of the previous chapter, add the following assertion listeners: assertion results, aggregate reports, graphical results, and view results in tables
2. Fill in the path where the file is saved as shown in the figure below, and run the thread. Want to know more reference article Jmeter write the test results to the specified file
The export file is shown in the figure:
CSV file content
jtl file content
xml file content
3. In the same way, you can set assertions and save the running results
4. Screenshots of the running results of other monitors (each field represents the meaning, you can check and learn by yourself when you use it)
Aggregate report
Graphical results
View the results in a table
Example script:
链接: https://pan.baidu.com/s/12QQGqiRyEi5FF31mCPSsCQ
提取码: yptt