[wtr-general] Re: Running Watir suite from Hudson

2009-05-22 Thread marekj

Yes Lisa, I am using Hudson wit ci_reporter for harvesting
'test/reports/*.xml' files
I have Rake plugin running the test.
every test sits in a Rakefile in the follwing format

task :name_of_test => [:set_ci_reporter] do
  require 'file_with_testcase_file'
  TestRunner.run TestCaseClassName # this may not be needed
end

# this is ci_reporter infrastructure

desc 'set ci reporter precondition for tests'
task :set_ci_reporter => [:test_helper] do
  gem 'ci_reporter'
  require 'ci/reporter/rake/test_unit'
  load 'ci/reporter/rake/test_unit_loader.rb'
end

desc "set test helper"
task :test_helper do
  require 'rake/testtask'
  require 'rake/rdoctask'
  require 'test/unit/ui/console/testrunner'
  include Test::Unit::UI::Console
end


Hudson jobs are set up using custom workspace: I don't need to pull
them from cvs, svn etc... at every build.
and post build action is to publish junit test result report


marekj

Watirloo: Semantic Page Objects in UseCases
http://github.com/marekj/watirloo/




On Thu, May 21, 2009 at 6:32 PM, Lisa Crispin  wrote:
> Is anyone using Hudson to run their Watir suites? Is there a Hudson plugin
> for Watir?
>
> We've always run our suites from the DOS window, using testrunner (we use
> the test/unit framework). But we really need to get it into a scheduled
> build. We can run it on a slave Windows vm from Hudson, but we aren't sure
> how to be able to see the results.
>
> Thanks,
> Lisa
>
> --
> Lisa Crispin
> Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
> and Agile Teams_ (Addison-Wesley 2009)
> http://lisacrispin.com
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Running Watir suite from Hudson

2009-05-22 Thread Lisa Crispin
We don't use Watircraft or rspec, but I'll look into that batch task.
Thanks!
-- Lisa

On Fri, May 22, 2009 at 1:33 AM, karim rayani  wrote:

>
> yeh watircraft does the same. we need to define the tasks in the spec
> folder and run with the command rake rspec. i did try it for a couple
> of tasks
>
> On Fri, May 22, 2009 at 12:50 PM, al3kc  wrote:
> >
> > I think the Batch Task is all you need to run your tests. This plugin
> > should be installed by default.
> > >
> >
>
>
>
> --
> Regards,
>
> Alkarim Rayani
>
> >
>


-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
http://lisacrispin.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Running Watir suite from Hudson

2009-05-22 Thread karim rayani

yeh watircraft does the same. we need to define the tasks in the spec
folder and run with the command rake rspec. i did try it for a couple
of tasks

On Fri, May 22, 2009 at 12:50 PM, al3kc  wrote:
>
> I think the Batch Task is all you need to run your tests. This plugin
> should be installed by default.
> >
>



-- 
Regards,

Alkarim Rayani

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Running Watir suite from Hudson

2009-05-22 Thread al3kc

I think the Batch Task is all you need to run your tests. This plugin
should be installed by default.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Running Watir suite from Hudson

2009-05-22 Thread al3kc

I
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Running Watir suite from Hudson

2009-05-21 Thread karim rayani

How about using watircraft, i guess we can perform batch run's of test
cases in that rite??



On Fri, May 22, 2009 at 5:02 AM, Lisa Crispin  wrote:
> Is anyone using Hudson to run their Watir suites? Is there a Hudson plugin
> for Watir?
>
> We've always run our suites from the DOS window, using testrunner (we use
> the test/unit framework). But we really need to get it into a scheduled
> build. We can run it on a slave Windows vm from Hudson, but we aren't sure
> how to be able to see the results.
>
> Thanks,
> Lisa
>
> --
> Lisa Crispin
> Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
> and Agile Teams_ (Addison-Wesley 2009)
> http://lisacrispin.com
>
>
> >
>



-- 
Regards,

Alkarim Rayani

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---