locked
Multiple XML Files with Data driven Unit test RRS feed

  • Question

  • Hello there,

    is it possible to do a data driven unit test not with just one XML-File, but with multiple XML-Files?

    Thanks

     

    xxCoffeebeanxx

    Thursday, December 1, 2011 11:39 AM

Answers

  • Hi,

    You can create two unit tests and have seperate datasource for each. But you cannot have multiple datasource for a single unit test.

    Thanks,

    Anuj


    http://www.anujchaudhary.com
    Sunday, December 4, 2011 4:46 AM
  • Hi xxCoffeebeanxx,

    Anuj's opinion is reasonable.

    Currently it's not possible to have more than one datasource for a unit test. Because the concept for data-driven is that the unit test runs once per row in the data source where the data points are parameters to the test.

    Thanks,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us
    Monday, December 5, 2011 9:30 AM

All replies

  • Hi,

    You can create two unit tests and have seperate datasource for each. But you cannot have multiple datasource for a single unit test.

    Thanks,

    Anuj


    http://www.anujchaudhary.com
    Sunday, December 4, 2011 4:46 AM
  • Hi xxCoffeebeanxx,

    Anuj's opinion is reasonable.

    Currently it's not possible to have more than one datasource for a unit test. Because the concept for data-driven is that the unit test runs once per row in the data source where the data points are parameters to the test.

    Thanks,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us
    Monday, December 5, 2011 9:30 AM