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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:32:16+00:00 2026-05-20T09:32:16+00:00

My test project consists of a set of input data files which is fed

  • 0

My test project consists of a set of input data files which is fed into a piece of legacy third-party software. Since the input data files for this software are difficult to construct (not something that can be done intentionally), I am not going to add new input data files.

Each input data file will be subject to a set of “test functions”. Some of the test functions can be invoked independently. Other test functions represent the stages of a sequential operation – if an earlier stage fails, the subsequent stages do not need to be executed.

I have experimented with the NUnit parametrized test case (TestCaseAttribute and TestCaseSourceAttribute), passing in the list of data files as test cases. I am generally satisfied with the the ability to select the input data for testing.

However, I would like to see if it is possible to customize its GUI’s tree structure, so that the “test functions” become the children of the “input data”. For example:

  • File #1
    • CheckFileTypeTest
    • GetFileTopLevelStructureTest
    • CompleteProcessTest
      • StageOneTest
      • StageTwoTest
      • StageThreeTest
  • File #2
    • CheckFileTypeTest
    • GetFileTopLevelStructureTest
    • CompleteProcessTest
      • StageOneTest
      • StageTwoTest
      • StageThreeTest

This will be useful for identifying the stage that failed during the processing of a particular input file.

Is there any tips and tricks that will enable the new tree layout? Do I need to customize NUnit to get this layout?

Edited: See the question Term for unit testing that separates test logic from test result data for an introduction to the concept of separating test data and test code. In my situation, the separation is driven by practical concerns, not by ideological reasons. The sources of my test data files are “in the wild”.

Other anecdotal use of data-driven tests:

  • http://www.clear-lines.com/blog/post/Data-driven-tests-with-NUnit-25.aspx
  • http://www.clear-lines.com/blog/post/No-Tolerance-for-NUnit-Data-Driven-tests.aspx
  • 1 1 Answer
  • 3 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-20T09:32:17+00:00Added an answer on May 20, 2026 at 9:32 am

    You are probably not going to be able to model the structure exactly like this. Tests can only exist in TestFixtures (classes) and the only thing that allows you to nest arbitrary levels in the GUI are namespaces.

    What you could do is this:

    * File001 (namespace)
      * Tests_File001 (class, text fixture)
        * CheckFileTypeTest (method, test)
        * GetFileTopLevelStructureTest (method, test)
      * CompleteProcessTest (namespace)
        * TestsCompleteProcessTest (class, text fixture)
          * StageOneTest (method, test)
          * StageTwoTest (method, test)
          * StageThreeTest (method, test)
    

    I assume you currently have a setup more along the lines of

    [Test]
    [TestCaseSource("TestFiles")]
    public void StageOneTest(String file)
    {
    }
    

    where one test method checks a specific thing and you run that test for every file. In that case you’d just have to remove the attributes and call this method from your new tests.

    I also get the feeling that you want your tests to execute in a specific order and the different test runners execute your test in different orders. I am not aware of any way to do that and generally speaking you shouldn’t. No test should depend on another test having succeeded.

    Assuming your tests are somewhat time intensive and you don’t want to run all of the “later” tests if an “earlier” test already failed you can consider putting them in appropriate categories like: “Preliminary”, “Stage1”, etc. Then you can execute one category after the other and see where the first fails.

    I hope this helps you.

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

Sidebar

Related Questions

I have a test project in which I needs to load an XLSX file.
I have a test project requiring some heavy jars which i put in ${M2_HOME}\test\src\main\resources\
I create simple Java Application project with src and test folders. src folder consists
I have a test project in my appharbor solution which uses the connectionstring located
I have android test project that i've integrated into the Hudson. I have created
Here is my PhantomJS test project which I run in cmd.exe by typing (for
I have simple test project which creates a frame and adds one JTextPane to
I am working on a mini-project which consists of doing a client-server chat application.
I am currently working on a project in .NET which consists of several logical
I have a test project, with an App.config that sets up default values for

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.