- 1、本文档共37页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
自动化测试脚本设计与框架设计【TIB自动化测试工作室】
自动化测试脚本设计与框架设计
www.AutomationQA.com
框架的定义
• Michael Kelly :
A test automation framework is a set of
assumptions, concepts, and practices
that provide support for automated
software testing.
• Wikipedia :
A Test Automation Framework is a set of
assumptions, concepts and tools that provide
support for automated software testing. The
main advantage of such a framework is the
low cost for maintenance. If there is change
to any test case then only the test case file
needs to be updated and the Driver Script
and Startup script will remain the same.
Theres no need to update the scripts in case
of changes to the application.
• AutomatedTestingI :
a set of abstract concepts, processes,
procedures and environment in which
automated tests will be designed, created
and implemented. In addition, this framework
definition includes the physical structures
used for test creation and implementation, as
well as the logical interactions among those
components.
• 框架是一组自动化测试的规范、测试脚
本的基础代码,以及测试思想、惯例的
集合。可用于减少冗余代码、提高代码
生产率、提高代码重用性和可维护性。
框架的发展历史
框架的种类
• Michael Kelly把自动化测试框架划分为5大类:
(1)模块化框架(test script modularity)。
(2)函数库结构框架(test library architecture)。
(3)关键字驱动测试框架(keyword-driven/table-
driven testing)。
(4)数据驱动测试框架(data-driven testing)。
(5)混合型框架(hybrid test automation)。
框架的ROI
线性框架的缺陷
• 录制回放
• 脚本形式
模块化、函数库结构
• QTP
– Test
– Action
– Sub 、Function
• TestComplete
– ProjectSuite 、Project
– Unit
– Sub 、Function
Actions VS. Functions
• Action的优缺点
• Function的优缺点
• 动手实践
项目结构
脚本层次结构
面向对象思想在自动化脚本设计
中的体现
• 脚本的分层思想
• 封装
• 复用
• 需要用到类吗?
Main – Sub 结构化框架
数据驱动
• 数据源设计
– 文件
– Excel
您可能关注的文档
最近下载
- U校园-新一代大学英语(提高篇)综合教程1和2(全).pdf VIP
- 零星维修工程服务方案.pptx
- 地理试讲逐字稿 (一).pdf VIP
- 2011年滁州市中学高级教师专业技术职务任职资格评审通过人....DOC VIP
- 中国铁路总公司关于取消铁路建设项目开工报告审批的通知,铁总计统[2015]252号.pdf VIP
- 标准图集-提灌站建设项目施工图.pdf VIP
- 18K802图集—暖通空调系统的检测与监控(水系统分册).pdf VIP
- 大学发展心理学考试(习题卷1).pdf VIP
- 泌尿、男性生殖系统.ppt VIP
- 建筑工程图集 12R11612K512:污水源热泵系统设计与安装.pdf VIP
文档评论(0)