Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 626943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:28:28+00:00 2026-05-13T19:28:28+00:00

What are approaches to test custom clients for public web services? Today there are

  • 0

What are approaches to test custom clients for public web services?

Today there are many online services which provide an API. There is a boom of little apps using those APIs. Examples: desktop/mobile clients for social networks and blogging platforms, document storage and processing centers, cloud databases, real-time data streams, GIS data etc.

The problem is that often the non-trivial part in such applications is communicating with the online service (handling errors, encoding/decoding data, dealing with quotas, adjusting to API updates etc.), but developers of the client do not control the service. So one cannot see directly what effects of the tests are, and one cannot always rollback the state of the service back to the original.

  • how do you design your client tests to be reproducible?
  • what behaviors do you test?
  • how do you test destructive or heavy-load behaviors? (against a public service)
  • do you run such tests automatically (e.g. as a pre-commit hook)?
  • how do you test against extraordinary situations (from service is down to exceeding quota, to inconsistent state, to sudden change of service behavior)?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:28:28+00:00Added an answer on May 13, 2026 at 7:28 pm

    Be very clear what you are testing. Are you testing that your code does what it’s supposed to when it receives responses from the service? Both normal and extraordinary? Then mock the service, so that you can readily exercise those paths.

    Yes I would design reprodicible tests and run them under some framework that lets me run them automatically, ideally as part of a build/commit too.

    But what about testing the service itself. Some tests just emerge from validating your solution. For example heavy load. Well, although it’s important not to be anti-social and it’s not reasonable to saturate a public service, if there is a publised SLA, then I think it’s reasonable to test up to that. So if your app is expected to emit n requests a second, then surely we should test at least this. Testing our overall solution up to its required throughput.

    To destruction? Maybe too anti social. However I do think that sending both valid and invalid requests and checking that expected responses occur may be valid and valuable if only as a sanity check of the service you’re using. So I would have at least a regression-suite for the public service, so that I can readily validate that it is behaving as documented.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have test classes which are built on Spring 2.0.8's AbstractTransactionalDataSourceSpringContextTests. There are a
I have a (custom) embedded jetty launcher which I had been using to develop/test
I've a following method Test which accepts a params list: Public void method Test(params
I am looking at approaches to Unit Test embedded systems code written in C.
are there any exisiting approaches on how to apply Ken Burns slideshow effects (take
I was wondering what approaches others might have for testing domain services against a
I have a Java client that consumes SharePoint 2010 standard web services (sitedata.asmx, permissions.asmx,
When I worked on asp.net mvc web site project, I investigated different approaches for
I'm using EWS (Exchange Web Services) with Exchange 2010 to generate and send emails
I tried these two methods: os.system(python test.py) subprocess.Popen(python test.py, shell=True) Both approaches need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.