JMeter常用菜单以及设置
如何清空View Results Tree
先选中目标view results tree,然后在菜单上选择Run-->Clear
Jmeter does not have a flag to do this automatically.
Generally, you have to clear the results with CTRL+E (in windows) or from the file menu, under RUN > CLEAR or RUN > CLEAR ALL
You might be able to write a beanshell script to clear the results everytime you execute the script.
http://www.javadocexamples.com/java_examples/org/apache/jmeter/samplers/SampleListener/
右键菜单中的Toggle的作用
https://stackoverflow.com/questions/42302262/difference-between-disable-and-toggle-in-jmeter
Disable just disables.
Toggle can do both:
- If element is enabled it disables it
- If element is disabled it enables it
如何配置Content-Type为application/json
https://stackoverflow.com/questions/37169153/jmeter-does-not-send-json-data-in-post
添加一个新的配置,类型为Http Header Manager
Make sure your HTTP Header Manager is configured to send Content-Type
header with the value of application/json