spiros has asked for the wisdom of the Perl Monks concerning the following question:
I am in the process of building a module for a webservice API. Think something simple, that works via SOAP and the input is A, and returns a job id. When the job is complete, you can poll it and it returns the data results.
What is the best way to build tests for something like this? In the past I have seen people writing tests which use the actual service which is online. Is this good practice? I would think not since the tests may fail for one reason on the other and be misleading. Would the best way be to mock a return from the service or so? I want to get it right this time so your help would be appreciate it. thank you for your help, Spiros
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: webservice API testing
by Unforgiven (Hermit) on Jun 24, 2009 at 19:50 UTC | |
by spiros (Beadle) on Jun 24, 2009 at 20:01 UTC | |
|
Re: webservice API testing
by Your Mother (Archbishop) on Jun 24, 2009 at 20:19 UTC | |
|
Re: webservice API testing
by stonecolddevin (Parson) on Jun 25, 2009 at 07:46 UTC |