1 / 11

基于 Ruby 的自动化测试框架的设计与实现

基于 Ruby 的自动化测试框架的设计与实现. 答辩人:王宝峰 指导教师: 吴刚. 课题目标. 实现 Web 应用测试的自动化执行。 允许用户对测试用例的配置管理。 将外部数据的注入到测试用例。 将外部对象的注入到测试用例。 自动生成测试结果报告。 良好的异常处理功能。. 测试自动化的实现. 脚本语言 Ruby Ruby 是一种为简单快捷面向对象编程而创的脚本语言 Web 自动化测试库 Watir 是搭建在脚本语言 Ruby 上的一个 Web 应用测试工具库,用来实施基于浏览器的针对 Web 应用开发的自动化测试. 测试用例的配置管理. 用例配置文件:

brice
Télécharger la présentation

基于 Ruby 的自动化测试框架的设计与实现

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 基于Ruby的自动化测试框架的设计与实现 答辩人:王宝峰 指导教师: 吴刚

  2. 课题目标 • 实现Web应用测试的自动化执行。 • 允许用户对测试用例的配置管理。 • 将外部数据的注入到测试用例。 • 将外部对象的注入到测试用例。 • 自动生成测试结果报告。 • 良好的异常处理功能。

  3. 测试自动化的实现 • 脚本语言Ruby • Ruby是一种为简单快捷面向对象编程而创的脚本语言 • Web自动化测试库Watir • 是搭建在脚本语言Ruby上的一个Web应用测试工具库,用来实施基于浏览器的针对Web应用开发的自动化测试

  4. 测试用例的配置管理 用例配置文件: <config> <overall> <reportPath>D:\report</reportPath> <data-source>data-config.xml</data-source> <objects>objects.xml</objects> …… </overall> <cases enableAll="false"> <module name="demo" enable="false"> <case enable="true" varFile="smf_var/SMF-2.xml" reportFile="SMF-2" object="smf_obj/obj.xml">smf/SMF-2.rb</case> …… </module> …… </cases> </config>

  5. 公共对象服务 公共对象(Common Objects)配置属性及其描述

  6. 数据对象服务 数据源(Data Source)配置属性及其描述

  7. 结果生成模块 数据汇总表格

  8. 结果生成模块 可配置的数据视图

  9. 结果生成模块 具体数据表

  10. 异常处理模块 异常报告表

  11. Q&A

More Related