Hi there, We have used cruise control to run our test suites. We have structured our test scripts with certain conventions.
1) We have an ERP suite which has different watir scripts for different projects. each set is developed and maintained by different testers. 2) All of us follow this. - we have a folder called "*regression*" where all our test case ruby files are stored in there. Each testcase file is named as *test_*<filename>.rb. Each test case class name starts with <PROJECTNAME>_TC_<CLASSNAME>. We use TEST::UNIT framework. Using Watir::TestCase did not solve the problem of determining the order of execution. So we instead used <PROJECTNAME> in the class name so that all those testcases under that project will be executed as one set after which other scripts of another PROJECT is run. Does not matter which PROJECT is run first as long as the whole set is run. 3) Along with regression as a folder, we also have "*common*" as another folder where our common files like utils and constants are placed there 4) On cruise control, on top of all the PROJECT folders, we have a *setup.rb * file which is a simple ruby file with one line - which does the foll: "require' all those testcases under regression folder starting with test_* this will get all the scripts grouped by PROJECTNAME class. 5) In Cruise control build file, have set up the ant target as run.watir which runs *setup.rb* Before we started using <PROJECTNAME> in the class name, all the testcase scripts in different projects were getting jumbled up and hence the name. 6) We are using ci_reporter for results and publising the results by sending a mail (<email>target is set in cruise control config.xml) and we give the CC dashboard link in the mail to view the results. Regards, Pallavi On Mon, Jul 13, 2009 at 5:57 AM, Zhimin <[email protected]> wrote: > > > > http://www.itest2.com/articles/2009/03/22/setup-continuous-build-server-to-include-acceptance-tests/ > > It uses ci_reporter as well. > > Zhimin > http://www.itest2.com > > On Jul 10, 3:58 am, Dylan <[email protected]> wrote: > > Does anyone know of a good tutorial/step-by-step instructions for how > > to integrate watir/ruby into a cruise control build cycle. I have 1 > > xml output file (from ci_reporter) and I want my script to run after > > the build and then integrate the xml results into the cruise control > > output. Thanks! > > > > -Dylan > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
