WCat抛出来自WCat Scenario Creator生成的ubr文件的错误

时间:2012-10-01 23:36:26

标签: iis wcat

我使用WCat Scenario Creator(http://fiddler2wcat.codeplex.com/)通过网站生成许多请求的脚本。

我不得不添加“port: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";
        }
    }

1 个答案:

答案 0 :(得分:0)

答案,至少在这个问题上是“If-None-Match”标题值的双引号。

            setheader {
            name = "If-None-Match";
            value = ""0ed9e9e739ccd1:0"";
        }

将此更改为有1个开始和结束双引号修复它。

            setheader {
            name = "If-None-Match";
            value = "0ed9e9e739ccd1:0";
        }