I added an XML file to a directory that i have in the test project.
How can i access it from the test code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You didn’t mention what language or IDE you’re using, but here is what I’ve done with C# in Visual Studio:
In the unit test:
string testxml = File.ReadAllText(“test.xml”)