Example #1
0
 public XMLDoc(string path, IApplication app, string name = "")
 {
     this.App = app;
     Document = new XmlDocument();
     //Document.Load(path);
     FullPath = path;
     if (name == string.Empty)
     {
         Name = Path.GetFileName(path);
     }
     else
     {
         Name = name;
     }
     //Root = doc.DocumentElement;
     TestCases      = new List <ITestCase>();
     TestSuiteSaver = new TestSuiteSaver(Path.Combine(app.DataFolder, app.TestSuiteFolder), this);
 }
Example #2
0
 public XMLDoc(string path, IEnumerable <ITestCase> tests, IApplication app, string name = "")
 {
     this.App = app;
     Document = new XmlDocument();
     FullPath = path;
     if (name == string.Empty)
     {
         Name = Path.GetFileName(path);
     }
     else
     {
         Name = name;
     }
     //Root = doc.DocumentElement;
     TestCases      = new List <ITestCase>(tests);
     TestSuiteSaver = new TestSuiteSaver(Path.Combine(app.DataFolder, app.TestSuiteFolder), this);
     // set the testcase document for all tests
     foreach (ITestCase t in TestCases)
     {
         t.setDocument(this);
     }
 }