如何从零开始创建一个JMeter工程?

  1. Download Apache Jmeter  3.3 files:   apache-jmeter-3.3.zip from https://jmeter.apache.org/download_jmeter.cgi
  2. Extract files from this compressed files then find the ApacheJMeter.jar  in the "apache-jmeter-3.3\bin" directory.
  3. Double click the ApacheJMeter.jar to open the jMeter workplace:28150309_OT3J.png
  4. Add Thread Group:  Right Click Test Plan→ Add →Threads(Users) → Thread Group
    28150310_3V8M.png
  5. Set group parameters by your testing scenario:
    28150311_Lpj4.png
  6. Add HTTP Request by right click the Thread Group → Add Sampler → HTTP Request:
    28150312_IvV0.png 
  7. Enter all parameters for the HTTP request which you want to test:
    28150315_0yO6.png
  8. Add Response Assertion for this HTTP Request:
    28150316_xMHo.png 28150317_n9SG.png
  9. You can also add HTTP Header Manager to add headers for the HTTP Request:
    28150318_S5eA.png28150320_jWQs.png
  10. 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.
    28150322_z7LK.png     28150323_fQCi.png
  11. Run the whole Test Plan: (The first time you click the run button, you need to save it firstly)
    28150324_zmjv.png
     
  12. Check request's status and response:
    28150325_ztHF.png
  13. Check all request's summary report:

 

28150326_WZGh.png

转载于:https://my.oschina.net/u/942203/blog/1819913

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值