badboy中文手册

发表于:2013-11-14 11:21

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:edithlva    来源:51Testing软件测试网采编

  4 断言
  断言是自动化检测的实现手段,badboy提供了两种断言:
  1 content 检查
  检查页面中是否包含指定的text.断言可以使用正则表达式,比如要检查一个正确登陆的例子,需要检查”welcome [A-z0-9]*/.”
  问题:例子,比如”tree frog”在browser中显示,在html中显示为"tree frog",因为badboy测试实际的html source,因此将找不到这个断言.避免这个问题的方法是在page中高亮显示text,并使用easy assertion button.如果使用复杂断言,需要精确匹配html source中的text.
  5 截屏
  当测试失败时候,截屏是最有效的方法与开发人员沟通.在断言的属性栏中,选择失败是截屏.badboy会截取失败案例的browser屏.
  6 timeout
  可以为每个request设置timeout时间,右键点击à选择属性à选择play标签,设置timeout时间.
  7 弹出框
  使用断言检查弹出框,邮件选择断言,打开"Check against Message Boxes"选项.
  8 Badboy与jmeter使用注意事项:
  1 导出jmeter脚本的时候,jscript不被导出,因为jmeter无内迁browser,jscript元素无法执行.
  2 data sources不被导出.
  9 快捷方式
  快捷方式如下:
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.
22/2<12
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号