[wtr-general] Watir tests - result reporting

2010-11-12 Thread Babitha
Hi,

I am new to Watir, and we are evaluating Watir as a tool to replace
Qtp.

One place I am stuck a little bit is regarding reporting the errors at
the end after all the test suites are done.

I have looked at various options those are discussed in the Watir
community, examples and blogs.

i started with Html reports from the examples, tweaked the code to
make the interface simpler - but found it to be still not simple
enough.

Then I looked at Test::Unit. The problem I find with Test::Unit is
that the output is in free text format, and consolidating the results
is a pain.

Please note we are not Agile practionitners. We are looking at Watir
as a testing tool for the testers - not for the developers. We do not
use BDD, so tools like Cucumber or RSpec probably will not suite us.
Also, I found even Rspec gives its output as free text format.

I am sure there must be a better simpler way. Probably I am just not
able to find any pointers towards it.

What I am looking at is a solution that will write the results to a
simple excel/csv file. I thought the Test::unit in itself could be
extended to do this, when any assertion passes or fails. I thought
this must be a simple thing to do, and probably somebody has already
done it. I also read in the Test::Unit documentation that Observers
can be added to Test::Unit TestResult. Is there any sample
implementations of this which will write it to an excel/csv as I
mentioned above?

Your help will be greatly appreciated.

Thanks,
Babitha

-- 
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


Re: [wtr-general] Watir tests - result reporting

2010-11-12 Thread Željko Filipin
On Fri, Nov 12, 2010 at 7:03 AM, Babitha babitha.augus...@gmail.com wrote:
 We do not
 use BDD, so tools like Cucumber or RSpec probably will not suite us.
 Also, I found even Rspec gives its output as free text format.

You can use RSpec just as a test runner for Watir tests, it does not have to
be used in the TDD/BDD way.

RSpec output is text by default, but you can specify that you want HTML
report. It is as easy as (at command line):

spec my_specs.rb -f h:log\report.htm

More information on RSpec output:

http://rspec.info/documentation/tools/spec.html

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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


Re: [wtr-general] Unable to call ruby script multiple times!!

2010-11-12 Thread Željko Filipin
On Fri, Nov 12, 2010 at 7:35 AM, chethan sarathy chethan2...@yahoo.co.in
wrote:
   require 'Ft_001' # This is my script

Replace require with load and it will work.

More information:

http://stackoverflow.com/questions/4140749/watir-script-called-within-a-watir-script/4143205#4143205

Željko

-- 
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


Re: [wtr-general] Re: Watir tests - result reporting

2010-11-12 Thread Željko Filipin
On Fri, Nov 12, 2010 at 12:44 PM, Alastair Montgomery doodl...@gmail.com
wrote:
 Do you need to do any changes to your test scripts to run them with
 RSpec?

It depends. :)

If you provide some sample code I could change it to use RSpec.

Željko

-- 
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