![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
测试_ruby&watir
iteye_7790
这个作者很懒,什么都没留下…
展开
-
Watir输出测试报告的问题研究
众所周知,Watir做为一个便捷的Web应用测试工具并没有给出很好的测试结果报告模板,一般我们都需要在测试中自行进行测试结果的输出。 一般来讲报告的输出大致有这2种方式,一种是以Logger的形式,在测试的过程中进行打印,或者自己设计一下通过HTML的格式输出,其本质仍然是一种以记录的方式输出。 还有一种方式就是自行修改Ruby的Unit test库,让测试用例在运行的过程中自动捕捉,通过,失...原创 2010-01-29 16:00:27 · 90 阅读 · 0 评论 -
ruby下的testsuite使用
一个比较简单的应用: require 'test/unit/testsuite' require 'tc_XXX' require 'tc_xxx' require 'tf_anthersetoftests' class Ts_MyTests def self.suite suite = Test::Unit::TestSuite.new suit...原创 2010-01-29 16:18:49 · 123 阅读 · 0 评论 -
Watir 1.5.6的版本的安装以及要解决的问题
1. ruby 1.8.6 最高只支持到1.5.4,所以需要:gem update --system 2. 使用ruby 1.9.X貌似,对中文的支持有问题,没搞定,以后再研究。 3. 解决输入中文的问题:1.5.6以上不需要 一.问题 使用watir1.5时候,如果发现它不支持中文,可以尝试修改 一下它的源代码。 二. 解决方案 1.打开watir.rb 2....2010-06-09 16:34:52 · 117 阅读 · 0 评论 -
continue execution when TEST::UNIT assertion fails(转)
continue execution when TEST::UNIT assertion fails Hi, Is is possible not to halt the execution of a ruby script when an TEST::UNIT assertion fails? cheers aidy On...原创 2010-06-25 10:14:09 · 129 阅读 · 0 评论 -
Automatically Measuring Your Code Coverage Using Selenium (or Watir) and Rcov
[code="java"]desc "Measure coverage of selenium specs" task :coverage do FileUtils.rm_rf "selenium_coverage" mongrel_pid = fork { exec("rcov script/server -o selenium_coverage --rails -- -e tes...原创 2012-02-29 15:22:51 · 124 阅读 · 0 评论