1. 安装badboy脚本软件
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520195437907-701189403.png)
傻瓜式安装即可
2. 打开badboy软件
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520195536371-894033099.png)
3. badboy脚本录制
点击录制按钮进行脚本录制,完成打开百度,搜索hello world操作,然后停止,回放,(回放的 时候,会因为编码原因导致乱码,需要手动调乱码问题)
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520195729183-1771296865.png)
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520195744179-1686099214.png)
4. 添加验证点
验证点的作用就是验证脚本是否按照我们测试的思路执行,判断脚本执行过程中是否存现问题
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520195852289-488052598.png)
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520195950828-821312942.png)
5. badboy参数化
所谓参数化,是指请求的某个参数提前设定多个值,在具体请求的时候,去获取提前设定的值,不同的 业务场景设置的参数不一致
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520200117910-2103196073.png)
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520200134931-725514977.png)
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520203253257-2033397229.png)
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520200212019-1352552125.png)
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520200524144-658214273.png)
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520200639721-1213909710.png)
效果
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520200718837-494783034.png)
6. 导出Jmeter脚本
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520200806009-120354136.png)
7. 在Jmeter中导入badboy生成的脚本,验证测试
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520200842936-95495596.png)
8. badboy并发测试
选择tools 之后点击run background
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520201103040-921946571.png)
9. badboy测试报告
在badboy-->view--->report下可以看到测试报告
![](https://img2020.cnblogs.com/blog/1871258/202105/1871258-20210520201253180-1061614239.png)