I have to run a test in which i use a xml file which gives me the information about the
expected data on the page.
At the moment i find the xml document via an fixed path name.
This is an example in code:
string xmlFile =@"C:\Users\\Documents\Test Studio Projects\myproject\mydata.xml";
Assert.IsTrue(File.Exists(xmlFile), String.Format ("Configuration file {0} not found", xmlFile));
using (StreamReader xmlReader = new StreamReader(xmlFile, Encoding.GetEncoding("iso-8859-1")))
This works fine on my local development environment, but the test has to be executed on an external scheduling server.
How can i include this xml in the test project, so that it is correctly included on the scheduling server?
Thanks for help?
Michael
expected data on the page.
At the moment i find the xml document via an fixed path name.
This is an example in code:
string xmlFile =@"C:\Users\\Documents\Test Studio Projects\myproject\mydata.xml";
Assert.IsTrue(File.Exists(xmlFile), String.Format ("Configuration file {0} not found", xmlFile));
using (StreamReader xmlReader = new StreamReader(xmlFile, Encoding.GetEncoding("iso-8859-1")))
How can i include this xml in the test project, so that it is correctly included on the scheduling server?
Thanks for help?
Michael