Hi. Thanks for the suggestions. I have only just started with WATiR so still feeling my way into it. OO is a bit of a new thing for me and I need to get some thing up and running quickly to demostrate the benefit of automation.
I have started with a driver script to call my test scripts. In the driver script I have set up the environment variables (servers, port number) for all the called scripts to use. Where is the usual place for Watir people to store test and envionrment data? Thank for the help. Ian On 8/26/05, Jeff Wood <[EMAIL PROTECTED]> wrote: > There is usually a clean way to build something into an object instead > of simply blasting things to a global variable. > > If all of your tests are within a single TestCase object, then you can > easily use instance variables for that class ( @blah ) and then all of > the methods within that instance object will have access. > > Beyond that, if you have multiple separate TestCase objects then you > either need to use something like a global ( even if that global is > simply an object to hold your real globals ... still not the > recommended solution ... globals are almost always sloppy ) or maybe > serialize your values out to environment variables or a properties > file and have each class load it... ( Think YAML! ) > > Those are the options I would use... Hope that helps. > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
