[wtr-general] Re: Report generation with the Watir

2011-06-28 Thread Parag Dave
Thanks Zeljko,

This will really helpful.

But i have some problem i am not able to understand how to run this
test.
I created one file named bowling_spec.rb

# bowling_spec.rb
require 'bowling'
require 'rubygems'
require 'rspec'

describe Bowling, #score do
  it returns 0 for all gutter game do
bowling = Bowling.new
20.times { bowling.hit(0) }
bowling.score.should == 0
  end
end

Run the script bowling_spec.rb in command prompt. and getting the
error No such file or Directory -- bowling_spec.rb Load Error

So what i am missing here (Sorry for the questions as i am new-bee to
the testing with watir/rspec)
I followed example http://rspec.info/

I also followed the http://relishapp.com/rspec but i am not able to
generate the html report.

Please guide me on that


On Jun 28, 10:03 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Tue, Jun 28, 2011 at 3:55 PM, Parag Dave parag...@gmail.com wrote:
  How can i generate report (That has visual identification like Fail
  test is in red line or any symbol and Pass test is in Green) with
  watir. Also how much time it took in the one test script. Is there any
  tool or gem that help to create logger report generation that might in
  XML or HTML.

 Sure, use RSpec gem:

 http://rspec.info/http://relishapp.com/rspec

  If possible please post the example code. or site that have example.

 This will create html file named report.htm:

 rspec file_name.rb --format html --out report.htm

 More information:

 http://relishapp.com/rspec/rspec-core/v/2-6/dir/command-line/format-o...

 Željko
 --
 watir.com - community manager
 watir.com/book - author
 watirpodcast.com - host

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Report generation with the Watir

2011-06-28 Thread orde
This thread should have useful information:
http://stackoverflow.com/questions/5073552/rspec-ruby-basic-example-error

Hope it helps.

orde

On Jun 28, 7:39 am, Parag Dave parag...@gmail.com wrote:
 Thanks Zeljko,

 This will really helpful.

 But i have some problem i am not able to understand how to run this
 test.
 I created one file named bowling_spec.rb

 # bowling_spec.rb
 require 'bowling'
 require 'rubygems'
 require 'rspec'

 describe Bowling, #score do
   it returns 0 for all gutter game do
     bowling = Bowling.new
     20.times { bowling.hit(0) }
     bowling.score.should == 0
   end
 end

 Run the script bowling_spec.rb in command prompt. and getting the
 error No such file or Directory -- bowling_spec.rb Load Error

 So what i am missing here (Sorry for the questions as i am new-bee to
 the testing with watir/rspec)
 I followed examplehttp://rspec.info/

 I also followed thehttp://relishapp.com/rspecbut i am not able to
 generate the html report.

 Please guide me on that

 On Jun 28, 10:03 am, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:







  On Tue, Jun 28, 2011 at 3:55 PM, Parag Dave parag...@gmail.com wrote:
   How can i generate report (That has visual identification like Fail
   test is in red line or any symbol and Pass test is in Green) with
   watir. Also how much time it took in the one test script. Is there any
   tool or gem that help to create logger report generation that might in
   XML or HTML.

  Sure, use RSpec gem:

 http://rspec.info/http://relishapp.com/rspec

   If possible please post the example code. or site that have example.

  This will create html file named report.htm:

  rspec file_name.rb --format html --out report.htm

  More information:

 http://relishapp.com/rspec/rspec-core/v/2-6/dir/command-line/format-o...

  Željko
  --
  watir.com - community manager
  watir.com/book - author
  watirpodcast.com - host

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com