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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:46:52+00:00 2026-05-23T10:46:52+00:00

As part of the program i am working on, i need to accept and

  • 0

As part of the program i am working on, i need to accept and process a input configuration file from the user. Input file is reasonably complicated and file parser needs to be tested thoroughly.

As part of my testing approach, i created a bunch of resource files:

sample_ActionValueAssignedValid.json
sample_ActionValueMissing.json
sample_ActionValueInvalid.json
sample_ActionValueAssignedWhiteSpace.json

and many many more, each being slightly different, reflecting user’s possible input.

At some point, a customer came over and asked for data structure to be modified to include some data and remove something else. Lovely.

Now, I come up with a new perfect sample.json file that has it all. But what to do with all the other resource files, for which tests have already been written? I suppose i can update them one by one … but i can’t but wonder … there’s got to be a better way?

Please let me know, how you would approach a situation 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-23T10:46:53+00:00Added an answer on May 23, 2026 at 10:46 am

    In a similar situation I had to deal with I created a correct and complete input as a base. Then for each test, I programmatically “broke” it to test each scenario. This way you only need to update the main structure once if it changes and update tests only where changes are meaningful.

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

Sidebar

Related Questions

im working on a part of program where i need to send null to
This is the last part of the program I am working on. I want
I am working on a program and part of it requires me to create
We're working on a group assignment. Part of the program is for the use
I tried prepared statement in my program, but not working. The part commented is
As part of the program that I am writing I need it to: Compare
For a part of a program i need the following 2 methods. The first
I'm working on an older project, updating it. Part of the program has a
I'm working on a program where I need to know the exact boundaries on
I've been working on a console based Inventory program as part of my course,

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.