Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?
[Tanktalus]: Problem is, it's a test for another monk - as in, another monk letting me interview for his company :)
[Tanktalus]: He might see me here... :D
[Discipulus]: it's me? ;=)
[marioroy]: Lady_Aleena could it be a quoting issue? I just tried find with -exec on the command line. find . -name "*.pl" -exec ls -l {} \;
[Tanktalus]: No, I know who he is, nice try. But if you're hiring, let me know :)
[Tanktalus]: Lady_Aleena: yeah, I can reproduce your issue, it's confusing alright :)
[Tanktalus]: I'm sure it'll make perfect sense once we figure it out :)
[Lady_Aleena]: marioroy, not a quoting error. I can't run it on the command line. It is when I put it in qx() where it falls apart.
Discipulus hired to use Perl in Eataly? haired maybe
[choroba]: We're hiring

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2017-04-23 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.