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

  • Home
  • SEARCH
  • 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 3358640
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:46:36+00:00 2026-05-18T02:46:36+00:00

In our client / server application, the server side is exposed by a collection

  • 0

In our client / server application, the server side is exposed by a collection of web services. The client interacts with what we call an Application Context to make calls to the server. I’d like to be able to mock the Application Context during acceptance testing so as to isolate the testing to just the client, rather than letting the tests flow all the way from client to server to database and having to set up the database with the right data for each test that we want to run.

Is this possible? Or should I be taking a different approach?

  • 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-18T02:46:37+00:00Added an answer on May 18, 2026 at 2:46 am

    White runs using Microsoft UI Automation, which looks at any supported GUI. It doesn’t worry about the code underneath at all, and you can’t interact with that code in the same way you’d be able to with a unit test.

    Typically you’d start up your application via its .exe, then use White to automate it. To start it up with just the client, you’d need to cause the process itself to start with the mocked-out application context. That would mean compiling the .exe accordingly, or having two different executables, one of which configures your packages correctly and one of which doesn’t.

    Without the database, you’re not really running an acceptance test – one which verifies that the code is in a good state for acceptance into production. So I wouldn’t worry about mocking out the database.

    I would take one of these approaches:

    • Recreate the database for each test run, populating it with an appropriate context if required

    • Tag the data generated by the test with the date-time so that you can tell it apart from normal data

    • Make a mock version of your server which responds with fixed responses for the requests, and direct the application to use that instead (maybe with just a command line arg). Please note that this still won’t verify that everything works with the database. It may be appropriate if you just want to show error handling, or if another team is going to be responsible for producing the service.

    Hope these ideas help and provide options, anyway!

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

Sidebar

Related Questions

we have a java server-client application with an applet in the client side. our
We need to build an administration portal website to support our client/server application. Since
In our application, we are using RMI for client-server communication in very different ways:
Which is better to do client side or server side validation? In our situation
We are adapting our client side relatively complicated application (ActiveX / .net / Delphi
In our server/client-setup we're experiencing some weird behaviour. The client is a C/C++-application which
We are trying to come up with our client and server standard and there
Last Friday where I work, an oracle client was upgarded and our IIS server
We're about to start a new project, and our client's current application is .NET
We have an ASP.Net application hosted on our network and exposed to a specific

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.