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
In reply to webservice API testing by spiros
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |