예제 #1
0
        public void SetSuccessData(BrowserDriver driver, CFarmXmlLister cFarmXml, CFarmXmlLister.CFarmReportData reportData)
        {
            var report = new CFarmXmlReport(gMethods, driver, cFarmXml, reportData);

            data += "<div style='height:200px; border:thick solid green; padding:2px; overflow-y:auto;'><b>Successful Test:</b> " + cFarmXml._path + "<br>";
            data += report.EmailDataString() + "</div>";
            data += "<br><Separator/>";
            IndividualResults.Add(MakeResJson(cFarmXml._path, report));
        }
예제 #2
0
        public string MakeResJson(String whichTest, CFarmXmlReport report)
        {
            var ret = new
            {
                name   = whichTest,
                error  = "",
                result = report.ResultObj()
            };


            return(new JavaScriptSerializer {
                MaxJsonLength = Int32.MaxValue
            }.Serialize(ret));
        }