Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Sharing data between tests?

by ghenry (Vicar)
on Jan 31, 2012 at 21:33 UTC ( #951076=note: print w/replies, xml ) Need Help??


in reply to Re: Sharing data between tests?
in thread Sharing data between tests?

Thanks. Maybe I should just do the create user in one test and verify it's there and then use a known user in all the other tests.

They don't have to be ordered, but it would be good to check the freshly created user and do everything the API allows using said user.

It's things like update their own info, order telephone numbers, send a fax, send an SMS, email to fax, make a call etc. etc.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!

Replies are listed 'Best First'.
Re^3: Sharing data between tests?
by chromatic (Archbishop) on Jan 31, 2012 at 23:57 UTC
    Maybe I should just do the create user in one test and verify it's there and then use a known user in all the other tests.

    That's what I do. Many of my hardcoded expectations eventually bite me later.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951076]
help
Chatterbox?
and a soft breeze sighs...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2016-12-09 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (158 votes). Check out past polls.