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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:35:40+00:00 2026-06-03T22:35:40+00:00

need advice on data driven test automation. I am doing test automation using C#

  • 0

need advice on data driven test automation.

I am doing test automation using C# ann Nunits for a web application which is developed using MVC. We are using Selenium web drivers for this.

As part of data driven testing, which one is good to use for input test data is it xml files or a sql server db.

If we are using db is it good to have some ORM(NHibernate) for db connectivity.

Thanks

  • 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-06-03T22:35:41+00:00Added an answer on June 3, 2026 at 10:35 pm

    data-driven-test-in-nunit-with-csv

    Parameterized Tests in NUnit

    How to use

       [Test, TestCaseSource("GetTestData")]
        public void MyExample_Test(int data1, int data2, int expectedOutput)
        {
            var methodOutput = MethodUnderTest(data2, data1);
            Assert.AreEqual(expectedOutput, methodOutput, string.Format("Method failed for data1: {0}, data2: {1}", data1, data2));
        }
    
    
        private IEnumerable<int[]> GetTestData()
        {
             while (data.ReadNext()) // Use your custom logic based on Stream to get new data (basically Implement IEnumerator on data class)
              yield return new[] { data.Current };
        }
    

    Other testing frameworks
    MS Test
    XUnit

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

Sidebar

Related Questions

I need advice on using stored procedures with Entity Framwork 4.x to return data
I need your advice. We have an already working web resource management application, we
I have a file from which I am reading the data. I need advice
I have 3 tables, I need advice on how to get data from them.
I need some advice on where to start in profiling a silverlight 3 application
I need some advice on how I am using JQuery, JSP and Lucene to
I am developing the framework for what will be a large data-driven Silverlight application
Need advice here: which of the STL container's operations are considered read-only? Take vector<int>
Recently I'm exploring NoSQL Databases. I need an advice about how to store data
I need some advice on modelling my data tables. I need to apply inheritance

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.