static void RunTests(string baseUrl) { TestsCatalog tc = new TestsCatalog(_catalogFile, _runExcluded); foreach (TestInfo ti in tc) { try { RunSingleTest(baseUrl, ti); } catch (Exception e) { Console.WriteLine(e.Message); } } }
static void CreateExpectedResults(string baseUrl) { TestsCatalog tc = new TestsCatalog(_catalogFile, _runExcluded); HtmlDiff wt = new HtmlDiff(); wt.TestsBaseUrl = baseUrl; wt.IgnoreListFile = _ignoreListFile; if ((_outputPath != "") && (!Directory.Exists(_outputPath))) { Directory.CreateDirectory(_outputPath); } Console.WriteLine("Running expected results..."); foreach (TestInfo ti in tc) { Console.WriteLine("Running... " + ti.Url); XmlDocument d = wt.GetTestXml(ti); d.Save(_outputPath + ti.Url.Replace("/", "_") + ".xml"); } }
static void CreateExpectedResults(string baseUrl) { TestsCatalog tc = new TestsCatalog(_catalogFile, _runExcluded); HtmlDiff wt = new HtmlDiff(); wt.TestsBaseUrl = baseUrl; wt.IgnoreListFile = _ignoreListFile; if ((_outputPath != "") && (!Directory.Exists(_outputPath))) { Directory.CreateDirectory(_outputPath); } Console.WriteLine("Running expected results..."); foreach (TestInfo ti in tc) { Console.WriteLine("Running... " + ti.Url); XmlDocument d = wt.GetTestXml( ti ); d.Save(_outputPath + ti.Url.Replace("/", "_") + ".xml"); } }