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 6723977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:37:59+00:00 2026-05-26T09:37:59+00:00

I am currently writing integration/functional tests for my system. Part of the functionality is

  • 0

I am currently writing integration/functional tests for my system. Part of the functionality is to hit a web service via http (another system I run).

How should I set up a test instance of the web service to allow for good functional testing? I want to have my system run against this service with live production data.

Should the web service be an independent instance that always has the live production data that I reload manually (maybe reset every time I start an instance of it)?

Should the web service be setup and teared down with every test?

What are some common practices to deal with situations like this?

  • 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-26T09:38:00+00:00Added an answer on May 26, 2026 at 9:38 am

    As first thing please make sure you know difference between Functional Testing and Integration Testing. You can do a pretty good functional tetsing wthout major efforts which are required by integration testing (instantiating web services, accessing a data base). Basically Mocking technique works pretty well even to simulate the Data Layer responses and web service behaviour (I believe such details like HTTP as transport could be ignored for most test cases)

    For such integration testing I would suggest having a separate SIT environment which includes a separate Web service and a Data Base as well.

    Should the web service be an independent instance that always has the live production data
    that I reload manually (maybe reset every time I start an instance of it)?

    Yep, it should be completely separate but data could be manually generated/prepared. For instance, you can prepare some set of data which allows testing some predefined test cases, this could be test data sets which are deployed to the SIT DB instance before the actual test run and then cleaned up in test TearDown.

    Should the web service be setup and teared down with every test?

    Yep, tests should be isolated one from each other so should not affect each one in any way.

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

Sidebar

Related Questions

I read Maven Failsafe plugin is designed specifically to run integration tests. Currently I'm
As part of a suite of integration tests I am writing, I want to
I'm currently writing some tests so that I may improve my skills with the
I'm writing some integration tests using a robot. I have the robot opening a
I'm currently writing a class that implements the SeekableIterator interface and have run into
I am writing an application in C# that needs to run as a service
I am writing a set of integration tests (Unit tests with MS Test which
I am writing some integration tests for an ASP.NET MVC application, and I am
I'm currently writing a plugin for our integration server that uses libxml2's xmllint command
I’m currently writing a windows service that’s sole purpose in life is to poll

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.