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

5dfc843f9ecf6fb64b52a35bdce43910?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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.