|
脚本如下:
........
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=200 ACTUAL=")
1.请问各位DX有否遇到这种情况?怎么解释?
2.是否可以将其理解为服务器没有回应,超时退出?(但是执行时timeout时间已设定为999000ms,回放时场景总用时远小于999S,说明并没有按照此设定执行场景)
3.何种情况下执行"http_header_recv ["wastest071"] 200"语句会放弃等待,跳过执行下面的语句?
4.当实际得到的响应为空("...ACTUAL=")时,此时的time时间是否可以作为执行该请求得到的响应时间的依据?
问题已解决
[ 本帖最后由 just_cici 于 2007-7-12 09:05 编辑 ] |
|