[已解决]回放时服务器响应为空,请各位DX帮忙分析~~~
脚本如下:........
start_time ["time"];
http_request ["wastest070"]
"POST /dfpoc/dfxz!dfxz_zhh.action HTTP/1.1\r\n"
"Accept: text/javascript, text/html, application/xml, text/xml, */*\r\n"
"Accept-Language: zh-cn\r\n"
"x-prototype-version: 1.5.0\r\n"
"Referer: " + SgenURI_001 + "\r\n"
/* "Referer: http://172.23.30.90:9080/dfpoc/dfxz.action" */
"x-requested-with: XMLHttpRequest\r\n"
"Content-Type: application/x-www-form-urlencoded; charset=UTF-8\r\n"
"Accept-Encoding: gzip, deflate\r\n"
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r"
"\n"
"Host: 172.23.30.90:9080\r\n"
"Content-Length: 174\r\n"
"Connection: Keep-Alive\r\n"
"Cache-Control: no-cache\r\n"
"Cookie: JSESSIONID=0000BEtaHTx7f9LIljvWC2sGVvI:-1\r\n"
"\r\n"
"zhh="
+datapool_value(DP1, "item1")+","+datapool_value(DP1, "item2")+","+datapool_value(DP1, "item3")+","+datapool_value(DP1, "item4")+","+datapool_value(DP1, "item5")+","+datapool_value(DP1, "item6")+","+datapool_value(DP1, "item7")+","+datapool_value(DP1, "item8")+","+datapool_value(DP1, "item9")+","+datapool_value(DP1, "item10")+
"&xzrq=2007-06-21%2010%3A00%3A00&xzdw="
""
+ http_url_encode(datapool_value(DP1, "xzdw"))+
"&mzflag="
+ http_url_encode(datapool_value(DP1, "mzflag"))+
"";
http_header_recv ["wastest071"]200; /* OK */
http_disconnect(D172_23_30_90_2);
stop_time ["time"];
........
100用户回放时,执行结果会有多用户失败,查看失败原因是成功发送以上请求后,期望得到200响应,实际为空(错误log:EXPECT=200ACTUAL=")
1.请问各位DX有否遇到这种情况?怎么解释?
2.是否可以将其理解为服务器没有回应,超时退出?(但是执行时timeout时间已设定为999000ms,回放时场景总用时远小于999S,说明并没有按照此设定执行场景)
3.何种情况下执行"http_header_recv ["wastest071"]200"语句会放弃等待,跳过执行下面的语句?
4.当实际得到的响应为空("...ACTUAL=")时,此时的time时间是否可以作为执行该请求得到的响应时间的依据?
问题已解决
[ 本帖最后由 just_cici 于 2007-7-12 09:05 编辑 ] 没遇见过此种情况,帮不了你sdlkfj5 已经一天了,难道这个问题没人知道???
很急啊~~~
BZ呢,放在上面当装饰的啊???晕!!!! 表激动呵呵,我在使用robot的时候也经常遇到无法解释的问题,不知道是我对于robot理解不够深呢,还是robot不稳定所致。
对于你的问题我也很关注,因为robot性能脚本的验证机制我一直都有疑惑,不知道回放的时候它到底以何种方式判断其成功与否,曾经进行过很多假设,但最终尝试结果都将其否定了-_-!,期望各位经验丰富的大虾帮忙解释下拉,在下感激不尽!!!!!! 自己解决的印象深刻!!
页:
[1]