Пример #1
0
        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);
                }
            }
        }
Пример #2
0
        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");
            }
        }
Пример #3
0
		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);
				}
			}
		}
Пример #4
0
		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");
			}
		}