入门兵器谱,测试相关软件系列——Badboy

简介: Badboy是辅助自动化测试的工具,用于录制自动化测试脚本,通过简单地点击操作记录操作步骤,导出Jmeter文件,用于Jmeter测试使用。

Badboy是什么?


Badboy是辅助自动化测试的工具,用于录制自动化测试脚本,通过简单地点击操作记录操作步骤,导出Jmeter文件,用于Jmeter测试使用。


一、Badboy下载安装


1、官网下载安装文件,直接安装。官方网址:http://www.badboy.com.au/

2、双木的网盘安装包:链接:https://pan.baidu.com/s/1HNF2RZ-lA3SfVvHlpl2w5A提取码:tim3


二、基本使用方法


1、如何录制脚本,输出Jmeter文件,并利用Jmeter使用脚本


启动Badboy,你可以看到下面的界面在地址栏中输入你需要录制的Web应用的URL——http://loaclhost:8080    这就是项目路径,


image.png

 点击 开始录制 按钮(图中蓝色圆圈标注的部分)开始录制

开始录制后,你可以直接在Badboy内嵌的浏览器(主界面的右侧)中对被测应用进行操作,所有的操作都会被记录在主界面左侧的编辑窗口中(图中黄色方框标 注的部分)——在这个试验中,不过录制下来的脚本并不是一行行的代码,而是一个个Web对象——这有点像LoadRunner的VuGen中的Tree View视图

 录制完成后,点击工具栏中的“停止录制”按钮(图中紫色方框标注的部分),完成脚本的录制。选择“File -> Export to JMeter”菜单,填写文件名“tongyizhifu.jmx”,将录制好脚本导出为JMeter脚本格式。


脚本另存为


保存的是bx,需要另存为jemeter,接着另存为1218rycK_1993

image.png


打开存的脚本


image.png


加一个结果树


image.png


做认证、设置cookie4


image.png


参数化:设置变量名+变量值


1)设置变量


image.png


2)复用该变量


image.png


    3)设置请求头

image.png


循环控制器


设置循环次数

image.png


2、Badboy常用快捷方式:


F2 Toggles Record Mode On/Off

F3 Displays the search/replace dialog, or searches if the dialog is already open.

Ctrl-Alt-Right Starts playing from the current item.

Ctrl-Alt-Space Stops Playing

Ctrl+F5 Plays entire hierarchy from the current item. (Note: if focus is inside the browser, IE will intercept as "Refresh").

F6 Single steps (plays next single item in script.)

F8 Shows/Hides Script Tree

F9 Shows/Hides Summary Tab View

F12 Shows/Hides both Script and Summary Views together (gives browser full window space)

Ctrl+Enter Replays the item current item in the script

Ctrl+Shift+Enter Replays the current step in the script

Ctrl+Shift+Left Rewinds the play marker to the previous step.

Ctrl+Alt+Up Moves the play marker to the previous item in script.

Ctrl+Alt+Down Moves the play marker to the previous item in script.

Ctrl+L Displays the lines Server Log File related to the most recent browsing activity.

Ctrl+K Clears all responses from the Script.

Ctrl+J Attempts to find and edit the source code file for the current page and/or frame that has focus in the browser.

Ctrl+Shift+J Attempts to find and edit the source code file for the current page and/or frame that has focus in the browser and also adds the URL for the frame to your script as a Monitored request.

Ctrl+Shift+M Adds URLs for all frames in the current browser as Monitored requests.

Ctrl+D Toggles DOM View On/Off for the active window.

Ctrl+Page Up While in DOM View changes to previous frame in frame list

Ctrl+Page Down While in DOM View changes to next frame in frame list

Ctrl+Alt Changes Record Mode temporarily to Navigation Mode while held down

Ctrl+Alt+N Toggles record mode between Navigation and Request mode

Ctrl+Shift+D Opens the documentation editor for the item currently selected in the Script Tree.

目录
相关文章
|
测试技术 开发者 Python
Python单元测试入门:3个核心断言方法,帮你快速定位代码bug
本文介绍Python单元测试基础,详解`unittest`框架中的三大核心断言方法:`assertEqual`验证值相等,`assertTrue`和`assertFalse`判断条件真假。通过实例演示其用法,帮助开发者自动化检测代码逻辑,提升测试效率与可靠性。
729 1
|
人工智能 安全 网络安全
Burp Suite Professional 2025.5 for macOS x64 & ARM64 - 领先的 Web 渗透测试软件
Burp Suite Professional 2025.5 for macOS x64 & ARM64 - 领先的 Web 渗透测试软件
759 3
|
12月前
|
Java 测试技术 网络安全
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
584 0
Burp Suite Professional 2025.10 for Windows x64 - 领先的 Web 渗透测试软件
|
Web App开发 JavaScript 测试技术
Playwright 极速入门:1 小时搞定环境搭建与首个测试脚本
本文带你1小时快速入门Playwright,完成环境搭建并编写首个测试脚本。Playwright是微软推出的现代化Web自动化测试工具,支持Chromium、Firefox和WebKit三大浏览器引擎,具备跨平台、多语言(Python/JS/Java/C#)特性。其核心优势包括:智能自动等待机制减少失败率、内置录制工具实时生成脚本、多语言灵活选择,以及真移动端设备模拟能力,显著提升测试效率和可靠性。
|
人工智能 安全 网络安全
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
740 4
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
|
安全 测试技术 Linux
Flawnter 5.9.1 (macOS, Linux, Windows) - 应用程序安全测试软件
Flawnter 5.9.1 (macOS, Linux, Windows) - 应用程序安全测试软件
522 2
Flawnter 5.9.1 (macOS, Linux, Windows) - 应用程序安全测试软件
|
测试技术
软考软件测评师大题——案例分析之白盒测试
历年下午案例试题一固定考察白盒测试,主要包含三大核心问题:推导逻辑条件、绘制控制流图及计算环路复杂度、确定线性无关路径集合。内容涵盖覆盖层级标准(语句、分支、判定、条件覆盖等)、控制流图构建规范(顺序、分支、循环结构转换原则)、环路复杂度计算公式以及线性无关路径生成方法。通过典型题型示例解析,如代码路径分析与验证指标,帮助考生掌握解题思路和技巧。
|
测试技术
软考软件评测师——可靠性测试测试方法
软件可靠性是指软件在规定条件和时间内完成预定功能的能力,受运行环境、软件规模、内部结构、开发方法及可靠性投入等因素影响。失效概率指软件运行中出现失效的可能性,可靠度为不发生失效的概率,平均无失效时间(MTTF)体现软件可靠程度。案例分析显示,嵌入式软件需满足高可靠性要求,如机载软件的可靠度需达99.99%以上,通过定量指标评估其是否达标。
|
安全 测试技术 持续交付
软考软件评测师——基于风险的测试技术
本文详细阐述了测试计划的核心要素与制定流程,涵盖测试范围界定、实施策略规划、资源配置及风险管理机制。通过风险识别方法论和评估模型,构建了完整的质量保障体系。同时,针对不同测试级别与类型提供具体配置建议,并提出技术选型原则与实施规范,确保测试活动高效有序开展,为项目成功奠定基础。内容结合实际经验,具有较强指导意义。