测试报告:

加载minitest-reporters库,并设置相关的参数。既可以在每次运行测试后生成响应的测试报告。

默认会生成一份html的报告在当前目录的test目录下

我们可以指定参数对报告的标题、报告存放目录、html的文件名进行设置。

#测试报告标题
$testReportTitle = "CrowdSysAutoTestResults(#{Time.now.strftime("%m%d%H%M")})"
#测试报告目录
$testReportDir = 'C:\AutoTest\rails\testReport\app\views\reports'

Minitest::Reporters.use! [Minitest::Reporters::HtmlReporter.new(:title => $testReportTitle,:reports_dir => $testReportDir,:output_filename => 'index_new.html')]
  • 搭建web服务器提供报告给公司所有人访问

既然是使用ruby做的自动化,我们搭建一个简单的rails即可。搭建过程略。请参考(http://guides.ruby-china.org/getting_started.html

rails搭建正常运行起来后。

我们将测试报告的生成目录设置为rails的:\app\views\reports

然后所有人就可以通过rails的服务端口来访问测试报告了

  • 邮件推送

测试完成后,自动发送邮件将测试结果推送给相关人。相关代码片段:

############## 开始发送邮件 #########
##获取执行结果数据
File.readlines($testReportDir+'\index.html').each{ |line|
$testCaseNum = line.force_encoding('utf-8').scan(/\d+\s*tests/) if line.force_encoding('utf-8')=~/span class=".*">\d+\s*tests/
$assertionsNum = line.force_encoding('utf-8').scan(/\d+\s*assertions/) if line.force_encoding('utf-8')=~/span class=".*">\s*\d+\sassertions/
$failuresNum = line.force_encoding('utf-8').scan(/\d+\s*failures/) if line.force_encoding('utf-8')=~/span class=".*">\s*\d+\s*failures/
$errorsNum = line.force_encoding('utf-8').scan(/\d+\s*errors/) if line.force_encoding('utf-8')=~/span class=".*">\s*\d+\s*errors/
$skipsNum = line.force_encoding('utf-8').scan(/\d+\s*skips/) if line.force_encoding('utf-8')=~/span class=".*">\s*\d+\s*skips/
$finishTime = line.force_encoding('utf-8').scan(/finished in .+?s/).to_s.sub('["','').sub('"]','') if line.force_encoding('utf-8')=~/finished in/
} $pwd = Pathname.new(__FILE__).realpath.dirname
File.readlines("#{$pwd}/startTest.ini").each{ |line|
@username = line.sub(/.+\s*=\s*/,'').chomp if line=~/username\s*=/
@passwd = line.sub(/.+\s*=\s*/,'').chomp if line=~/passwd\s*=/
@smtpaddress = line.sub(/.+\s*=\s*/,'').chomp if line=~/smtpaddress\s*=/
@port = line.sub(/.+\s*=\s*/,'').chomp if line=~/port\s*=/
@domain = line.sub(/.+\s*=\s*/,'').chomp if line=~/domain\s*=/
$from = line.sub(/.+\s*=\s*/,'').chomp if line=~/from\s*=/
$to = line.sub(/.+\s*=\s*/,'').chomp if line=~/to\s*=/
} smtp = { :address => @smtpaddress, :port => @port, :domain => @domain, :user_name => @username, :password => @passwd, :enable_starttls_auto => true, :openssl_verify_mode => 'none' }
Mail.defaults { delivery_method :smtp, smtp }
mail = Mail.new do
from $from
to $to
subject "【#{$crowdSysVersionNum}】Crowd System AutomationTest Reports #{curr_time}."
body "\n\nAutomation test #{$finishTime}.\n\n\n\n#{$testCaseNum},#{$assertionsNum},#{$failuresNum},#{$errorsNum},#{$skipsNum}\n\n\n\nDetail reports: http://172.17.2.44:9527/reports/index\n\n\n\nSystem under test: #{$crowdSysURL}"
end
mail.deliver!

邮件效果图:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABAsAAAHuCAIAAAB26RJ2AAAgAElEQVR4nO3da5Md1bnY8flmKV4cvYs+0aniK5BK4jqVCq7YLpxAGcp2nMTYB4SNJCOJm2QEuiCQZBtxyjZGFgKfo5DJizGzNt29Vj+rL7u7Z36/+hc1s6fve9D0M3tGOrh9/1NJkiRJOupg8SOQJEmStJ5MCJIkSZJSJgRJkiRJKROCJEmSpJQJQZIkSVLKhCBJkiQpZUKQJKmim3c/WfwYJGnWTAiSJEW7de/B+Svv3Lr3YPEjkaT5MiFIkhTt6gd3Xn390tUP7ix+JJI0X0MmhH935t93tvjJbDEXU5I21PlL77x28cr5S+8sfiSSNF+TTQiLn8l2cz0laRNdv33v1fOXXrt45dXzl67fvrf48UjSTE0zIeQ+2n63vfqwvQ842qn2Uthg5Jr0rth7tIuME1X72vrAs8Vjblz5CTe17FO5hmPY29nlPpp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A67GnCaH2e+2sRPAH6wEAODH2+hoCAACwciYEAAAgMSEAAACJCQEAAEhMCAAAQGJCAAAAEhMCAACQmBAAAIDEhAAAACQmBAAAIDEhAAAAiQkBAABITAgAAEBiQgAAABITAgAAkJgQAACAxIQAAAAkJgQAACAxIQAAAIkJAQAASEwIAABAYkIAAAASEwIAAJCYEAAAgMSEAAAAJCYEAAAgMSEAAACJCQEAAEhMCAAAQGJCAAAAEhMCAACQmBAAAIDEhAAAACQmBAAAIDEhAAAAiQkBAABITAgAAEBiQgAAABITAgAAkJgQAACAxIQAAAAkJgQAACAxIQAAAIkJAQAASEwIAABAYkIAAAASEwIAAJCYEAAAgMSEAAAAJCYEAAAgMSEAAACJCQEAAEhMCAAAQGJCAAAAEhMCAACQmBAAAIDEhAAAACQmBAAAIDEhAAAAiQkBAABITAgAAEBiQgAAABITAgAAkJgQAACAxIQAAAAkJgQAACAxIQAAAIkJAQAASEwIAABAYkIAAAASEwIAAJCYEAAAgMSEAAAAJCYEAAAgMSEAAACJCQEAAEhMCAAAQGJCAAAAEhMCAACQmBAAAIDEhAAAACQmBAAAIDEhAAAAiQkBAABITAgAAEBiQgAAABITAgAAkJgQAACAxIQAAAAkJgQAACAxIQAAAIkJAQAASEwIAABAYkIAAAASEwIAAJCYEAAAgMSEAAAAJCYEAAAgMSEAAACJCQEAAEhMCAAAQGJCAAAAEhMCAACQmBAAAIDEhAAAACQmBAAAIDEhAAAAiQkBAABITAgAAEBiQgAAABITAgAAkJgQAACAxIQAAAAkJgQAACAxIQAAAIkJAQAASEwIAABAYkIAAAASEwIAAJCYEAAAgKQxIfx/GyJciaHtoMIAAAAASUVORK5CYII=" alt="" />

web自动化测试:watir+minitest(五)的更多相关文章

  1. Web自动化测试项目(五)测试结果通知

    一.邮件通知 使用第三方邮件发送库yagmail github地址:https://github.com/kootenpv/yagmail 安装 pip3 install yagmail demo.p ...

  2. Web自动化测试项目搭建目录

    Web自动化测试项目搭建(一) 需求与设计 Web自动化测试项目(二)BasePage实现 Web自动化测试项目(三)用例的组织与运行 Web自动化测试项目(四)测试报告 Web自动化测试项目(五)测 ...

  3. web自动化测试:watir+minitest(一)

    基本介绍: 本课程的测试环境和工具为:win7+ruby+watir+minitest Watir 全称是"Web Application Testing in Ruby".它是一 ...

  4. Windows环境搭建Web自动化测试框架Watir

    Windows环境搭建Web自动化测试框架Watir 一.前言     Web自动化测试一直是一个比较迫切的问题,对于现在web开发的敏捷开发,却没有相对应的敏捷测试,故开此主题,一边研究,一边将We ...

  5. Web自动化测试框架Watir(基于Ruby) - 第2章 使用Watir写自动化测试脚本

    一.先来看一个小DEMO 通过上一篇博文<Web自动化测试框架Watir(基于Ruby) - 第1章 Windows下安装与部署>的介绍,我们已经有了完整Watir运行环境,现在我们可以来 ...

  6. Web自动化测试框架Watir(基于Ruby) - 第1章 Windows下安装与部署

    一.前言 Web自动化测试一直是一个比较迫切的问题,对于现在web开发的敏捷开发,却没有相对应的敏捷测试,故开此主题,一边研究,一边将Web自动化测试应用于工作中,进而形成能够独立成章的博文,希望能够 ...

  7. TestNG测试框架在基于Selenium进行的web自动化测试中的应用

    转载请注明出自天外归云的博客园:http://www.cnblogs.com/LanTianYou/ TestNG+Selenium+Ant TestNG这个测试框架可以很好的和基于Selenium的 ...

  8. 使用 Sahi 实现 Web 自动化测试

    Sahi 是 Tyto Software 旗下的一个基于业务的开源 Web 应用自动化测试工具.Sahi 运行为一个代理服务器,并通过注入 JavaScript 来访问 Web 页面中的元素.Sahi ...

  9. 从手工测试转型web自动化测试继而转型成专门做自动化测试的学习路线。

    在开始之前先自学两个工具商业web自动化测试工具请自学QTP:QTP的学习可以跳过,我是跳过了的.开源web自动化测试工具请自学Selenium:我当年是先学watir(耗时1周),再学seleniu ...

  10. 自动化测试(—)Web自动化测试理解

          最近几天,由于工作需要接触Web自动化测试,所以我从网上找的资料,学习了解,然后自己总结汇总的随笔,如文章中有不足的地方,请大家多多指教:或者文章内容与他人相似,望见谅. 手工测试跟自动化 ...

随机推荐

  1. java设计模式——桥接模式

    一. 定义与类型 定义:将抽象部分与他的具体实现部分分离,使它们都可以独立的变化,通过组合的方式建立两个类之间的联系,而不是继承 类型:结构性. 二. 使用场景 (1) 抽象和具体实现之间增加更多的灵 ...

  2. class 类 this指向的问题

    ES6 实现了类的概念 class Prosen { } ES5使用函数模拟 function Prosen() { } ES6中的 class定义一个类, 其内部包含 constructor构造函数 ...

  3. Decrypt.java

    import java.io.PrintStream;import weblogic.security.internal.*;import weblogic.security.internal.enc ...

  4. Web as a App(Web既APP)的概念可以提出吗?

    Web as a App (WaaA),Web既APP.灵感出于SaaS.PaaS.IaaS等~ 最近在做一个PC项目,即便我的项目是to B的,用户量没那么大,但是我仍然很注重性能及用户体验,我把我 ...

  5. 使用JavaScript动态的绑定、解绑 a 标签的onclick事件,防止重复点击

    页面上的 a 标签如下: <a class="more" style="cursor: pointer;" id="commentMore&qu ...

  6. Docker迁移学习及其他

    起因: 有在一台服务器A上通过docker搭建git服务,由于某些原因需要将其迁移到另一台服务器B. 过程: 最终采用方式: 首先通过docker ps(-a) 查看目标容器,然后通过commit命令 ...

  7. Delphi7卸载indy9,安装indy10步骤

    1. 找到C:\Program Files\Borland\Delphi7\Borland Delphi7.msi——双击——点Next——选择Modify,点Next——找到Program File ...

  8. 微信小程序相关

    https://www.cnblogs.com/shenzikun1314/p/7805168.html

  9. Git-Git里程碑

    里程碑即Tag,是人为对提交进行的命名.这和Git的提交ID是否太长无关,使用任何数字版本号无论长短,都没有使用一个直观的表意的字符串来得方便.例如:用里程碑名称"v2.1"对应于 ...

  10. Diycode开源项目 如何解决InputMethodManager造成的内存泄漏问题

    1.内存泄漏的状况及原因 1.1.利用LeakCanary查看内存泄漏的状况 1.2.内存泄漏怎么产生的呢? InputMethodManager.mServicedView持有一个最后聚焦View的 ...