public void CheckSingleSiteWithGzipTest() { var tester = new StressTester(); tester.Options.MaxResponseSize = 0; var resp = tester.CheckSite(new HttpRequestData() { HttpVerb = "GET", Url = "http://weblog.west-wind.com/posts/2014/Feb/22/Using-CSS-Transitions-to-SlideUp-and-SlideDown" }); Console.WriteLine(resp.StatusCode); Console.WriteLine(resp.TimeTakenMs); Console.WriteLine(resp.ResponseContent); }
public void CheckSiteSyncTest() { SessionParser parser = new SessionParser(); List <HttpRequestData> httpRequests = null; Assert.IsNotNull(httpRequests); foreach (var req in httpRequests) { var tester = new StressTester(); var res = tester.CheckSite(req); Assert.IsNotNull(res, "No Result Returned."); Assert.IsNotNull(res.IsError, res.ErrorMessage); Console.WriteLine(res.StatusCode + " " + res.Url + " " + res.TimeTakenMs.ToString("n0") + " " + res.ErrorMessage); //Console.WriteLine(res.ResponseContent); } }