You can use Watir with any unit testing framework, I think the best unit testing framework to use is one that the team understands.
On Tue, Jan 6, 2015 at 4:05 PM, Oscar Rieken <[email protected]> wrote: > I would suggest you ask in the test unit user group, or try searching for > test unit reporting, as this question really has nothing to do with Watir > > On Tue, Jan 6, 2015 at 3:52 PM, Ma St <[email protected]> wrote: > >> Hi. Yes, I used the following in my script: >> >> require "rubygems" >> require "watir-webdriver" >> require "rspec" >> require "selenium-webdriver" >> require "rspec/expectations" >> require "test/unit" >> require "logger" >> >> I then run from the command prompt: rspec -f TestResearch.rb > >> results.html >> >> I get the following result. >> >> >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/formatters.rb:168:in >> `find_formatter': Formatter 'TestResearch.rb' unknown - maybe you meant >> 'documentation' o >> r 'progress'?. (ArgumentError) >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/formatte >> rs.rb:127:in `add' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/configur >> ation.rb:672:in `add_formatter' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/configur >> ation_options.rb:108:in `block in load_formatters_into' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/configur >> ation_options.rb:108:in `each' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/configur >> ation_options.rb:108:in `load_formatters_into' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/configur >> ation_options.rb:24:in `configure' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/runner.r >> b:95:in `setup' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/runner.r >> b:84:in `run' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/runner.r >> b:69:in `run' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/lib/rspec/core/runner.r >> b:37:in `invoke' >> from >> C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.7/exe/rspec:4:in `<top (r >> equired)>' >> from C:/Ruby193/bin/rspec:23:in `load' >> from C:/Ruby193/bin/rspec:23:in `<main>' >> >> On Tuesday, January 6, 2015 2:35:37 PM UTC-6, Anisha wrote: >> >>> You could try using rspec or Cucumber along with watir webdriver which >>> will help you generate HTML reports. >>> >>> On Wed, Jan 7, 2015 at 1:05 AM, Ma St <[email protected]> wrote: >>> >>>> I have created a ruby script and am attempting to understand how to >>>> generate an HTML results file. I am using Test:Unit for the Framework. I >>>> have searched on Google, but the sites refer to something called "OpenQA" >>>> that no longer exists. >>>> >>>> If I am doing functional automation with Watir, is Test:Unit the best >>>> framework? If so, how do I generate a HTML file from my assert and If >>>> validation statements? >>>> >>>> Thanks. >>>> >>>> -- >>>> -- >>>> Before posting, please read http://watir.com/support. In short: search >>>> before you ask, be nice. >>>> >>>> [email protected] >>>> http://groups.google.com/group/watir-general >>>> [email protected] >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Watir General" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Regards, >>> Anisha Narang >>> >> -- >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> [email protected] >> http://groups.google.com/group/watir-general >> [email protected] >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Watir General" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
