Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: webservice API testing

by Unforgiven (Hermit)
on Jun 24, 2009 at 19:50 UTC ( #774497=note: print w/replies, xml ) Need Help??

in reply to webservice API testing

Your description is a little vague, but would something like Test::MockObject help solve your problem? If you're using it in a way in which the API is represented by an object or objects, something like this might let you test the rest of your program without having to actually use the API.

Replies are listed 'Best First'.
Re^2: webservice API testing
by spiros (Beadle) on Jun 24, 2009 at 20:01 UTC
    Hm, well what i was getting at is: how can i mock something that is supposed to be coming over the network, in this case, the results from the webservice. I want to do this in a clean and modular way.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://774497]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2020-10-22 06:50 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (225 votes). Check out past polls.