private TestInfo GetCurrentTestInfo() { XmlNode n = (XmlNode)_tests.Current; TestInfo ti = new TestInfo(); ti.Name = n.Attributes["name"].Value; ti.Url = n.Attributes["url"].Value; return ti; }
public SingleWebTest(TestInfo testInfo, string baseUrl) : base(null, testInfo.Url) { _testInfo = testInfo; _baseUrl = baseUrl; }
public abstract XmlDocument GetTestXml(TestInfo testInfo);
public override XmlDocument GetTestXml(TestInfo testInfo) { return BuildXml( GetSubTests( GetUrl(testInfo.Url) ), testInfo ); }
private XmlDocument BuildXml(ArrayList subTests, TestInfo ti) { StringBuilder xmltext = new StringBuilder(); xmltext.Append("<TestResults name=\"" + ti.Name + "\">"); foreach(string st in subTests) { xmltext.Append(st); } xmltext.Append("</TestResults>"); XmlDocument r = new XmlDocument(); r.LoadXml(HtmltoXml(xmltext.ToString())); return r; }