我使用 WCat Scenario Creator (http://fiddler2wcat.codeplex.com/) 通过网站生成许多请求的脚本。
我必须添加“端口:8888;” 对每一个请求。然后,在“所有客户端已连接,测试开始”之后。响应,测试产生了这个错误:
收到无效代码。接受远程连接时出错。
我知道前两个请求有效,所以下一个第三个请求出了什么问题是个问题。
请求看起来像
request {
id = "3";
url = "/Content/Telerik-Kendo/textures/highlight.png";
verb = GET;
cookies = True;
secure = False;
statuscode = 304;
setheader {
name = "Accept";
value = "image/png, image/svg+xml, image/*;q=0.8, */*;q=0.5";
}
setheader {
name = "Referer";
value = "http://server.compute-1.amazonaws.com:8888/Home/Winpoints/?sessionid=502hhfoij5ef4jedzouxz02z&low=0&high=150&companyid=3&verticalmarketid=8";
}
setheader {
name = "Accept-Language";
value = "en-US";
}
setheader {
name = "User-Agent";
value = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
}
setheader {
name = "Accept-Encoding";
value = "gzip, deflate";
}
setheader {
name = "Host";
value = "server.compute-1.amazonaws.com:8888";
}
setheader {
name = "If-Modified-Since";
value = "Thu, 27 Sep 2012 05:47:46 GMT";
}
setheader {
name = "If-None-Match";
value = ""0ed9e9e739ccd1:0"";
}
setheader {
name = "Connection";
value = "Keep-Alive";
}
setheader {
name = "Cookie";
value = "ASP.NET_SessionId=502hhfoij5ef4jedzouxz02z";
}
}