develooper Front page | perl.module-authors | Postings from October 2005

Re: Tests needing user parameters

Thread Previous | Thread Next
From:
Mark Stosberg
Date:
October 19, 2005 14:58
Subject:
Re: Tests needing user parameters
Message ID:
20051019215745.GI19441@summersault.com
On Wed, Oct 19, 2005 at 10:50:04PM +0100, Jess Robinson wrote:
> > > 
> > > I'm writing a module which will need user account data for it's tests, and 
> > > I'm wondering if there's a standard way (or module) for doing this.. 
> > 
> > What do you mean by "user account data"? 
> > 
> > Perhaps UNIX/Linux UIDs and GIDs?
> 
> Oops, sorry, thought it made sense ;)
> 
> My module will login to a web service and manipulate data 
> programmatically.. Nothing critical I assure you, just a tool ;) Since 
> theres no dummy/test account that I know of, I'll need the users 
> account/email address and password to login.

Using an OO approach is one way to go:

my $t = Test::Foo->new(\%my_params);

$t->wobble_ok('zoop');

    Mark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About