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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:25:23+00:00 2026-06-15T20:25:23+00:00

I have built a bunch of tests for my employer using Test Driven Development.

  • 0

I have built a bunch of tests for my employer using Test Driven Development. I am now trying to use Data Driven Development for these tests. Unfortunately, whenever I try to setup the Data Connection String with an XML file, Visual Studio 2010 keeps giving me the same error.

I don’t have a high enough reputation on the site to post an image. The error says, “Error trying to sample data from , please make sure the file is valid.

I have tried a simple XML files instead of my more complex one. I have set the “Copy to Output Directory” property for the file to “Copy Always”. I have tried to manually fill in the data source attribute instead of using the wizard. I have gone to test -> edit local test settings and enabled deployment. I am out of ideas can anyone help. Perhaps it is the way I am making the xml files? I have been building them in notepad+ and saving with .xml.

Thank you!

  • 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-15T20:25:24+00:00Added an answer on June 15, 2026 at 8:25 pm

    This sound to me like your tests cannot find the physical locatin of the XML file.

    Have a look at MSDN article How to: Create a Data-Driven Unit Test for walkthrough at how to implement data driven tests, including example ConnectionString.

    Also make sure that under dialog Test -> Edit test settings -> Local (local.testsettings) the CheckBox Deployment -> Enable deployment is activated. This forces the deployment of your files rather than just relying on the attributes. For more explanation, see this article MSTest Aggravation and a Solution (For Me Anyway).

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

Sidebar

Related Questions

I have written a bunch of entities. I am trying to test them now.
we have a bunch of reports (RDL) on SSRS built using officewriter. Sometimes errors
I have built a mock object using EasyMock, and I'm trying to have the
I have a Junit process that runs a bunch of data integrity tests every
I have built a site which requires user to login. Now I have decided
I have built a local DVD Database using Codeigniter, With film names etc in.
I have built a game in HTML5 and a web form posts data to
I have built the UI for my Google Chrome Extension, but I am trying
We have a bunch of tests in a maven2 project and build with cruisecontrol.
I have source in a bunch of subdirectories like: src/widgets/apple.cpp src/widgets/knob.cpp src/tests/blend.cpp src/ui/flash.cpp In

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.