自动化测试脚本设计与框架设计【TIB自动化测试工作室】.pdf

自动化测试脚本设计与框架设计【TIB自动化测试工作室】.pdf

  1. 1、本文档共37页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

xxj1658888 + 关注
实名认证
内容提供者

教师资格证持证人

该用户很懒,什么也没介绍

领域认证该用户于2024年04月12日上传了教师资格证

1亿VIP精品文档

相关文档