- Download Apache Jmeter 3.3 files: apache-jmeter-3.3.zip from https://jmeter.apache.org/download_jmeter.cgi
- Extract files from this compressed files then find the ApacheJMeter.jar in the "apache-jmeter-3.3\bin" directory.
- Double click the ApacheJMeter.jar to open the jMeter workplace:
- Add Thread Group: Right Click Test Plan→ Add →Threads(Users) → Thread Group
- Set group parameters by your testing scenario:
- Add HTTP Request by right click the Thread Group → Add Sampler → HTTP Request:
- Enter all parameters for the HTTP request which you want to test:
- Add Response Assertion for this HTTP Request:
- You can also add HTTP Header Manager to add headers for the HTTP Request:
- Add "View Results Tree" and "Summary Report" to analyze the request's result:
These two elements are used to debug the http request you want to test, if it works ok(pass your assertion), you can disable these 2 elements since they waste much time.
- Run the whole Test Plan: (The first time you click the run button, you need to save it firstly)
- Check request's status and response:
- Check all request's summary report:
如何从零开始创建一个JMeter工程?
猜你喜欢
转载自my.oschina.net/u/942203/blog/1819913
今日推荐
周排行