Forum: Ruby Problem in Watir::Unit::TestCase

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cc704ce316e72af824ccd38cfa53104b?d=identicon&s=25 Raja Gopalan (arc)
on 2013-05-28 14:05
I was using Watir::TestCase for the xml report creation in ruby 1.8.7
&Watir 3.0 and the sample xml created was like
--------------------

<?xml version="1.0" encoding="UTF-8"?>
<testsuite time="106.481" errors="0" skipped="0" tests="1" failures="0"
name="TestProduct" assertions="0" date="May, 02 2013 at 21:16:23">
  <testcase time="106.479" name="test_4" assertions="0">
  </testcase>
  <system-out>
modal called
false
  </system-out>
  <system-err>
  </system-err>
</testsuite>
---------------------------------
When I am using MiniTest::Unit::TestCase in Ruby 2.0 and Watir 3.7,the
xml missed the <testcase> tag.

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="Test::Unit::TestCase" tests="0" time="0.0" failures="0"
errors="0" skipped="0" assertions="0">
  <system-out>
  </system-out>
  <system-err>
  </system-err>
</testsuite>

I need to have first xml in Ruby 2.0 (i.e) testcase tag has to be
included, Is there any way?

And also Watir::TestCase in Watir 3.7 but there is no such a file
available there with that name.
This topic is locked and can not be replied to.