Example #1
0
			internal virtual void Run(JsDriver.Tests.Script script, ShellTest.Parameters parameters)
			{
				string path = script.GetPath();
				FilePath test = script.GetFile();
				JsDriver.ConsoleStatus cStatus = new JsDriver.ConsoleStatus(arguments.GetConsole(), trace);
				JsDriver.HtmlStatus hStatus = new JsDriver.HtmlStatus(arguments.GetLxrUrl(), arguments.GetBugUrl(), path, html, (XmlElement)failureHtml.CloneNode(true));
				JsDriver.XmlStatus xStatus = new JsDriver.XmlStatus(path, this.xml.DocumentElement);
				ShellTest.Status status = ShellTest.Status.Compose(new ShellTest.Status[] { cStatus, hStatus, xStatus });
				try
				{
					ShellTest.Run(factory, test, parameters, status);
				}
				catch (Exception e)
				{
					throw new Exception(e);
				}
				tests++;
				if (hStatus.Failed())
				{
					failures++;
				}
				hStatus.Finish();
			}