本帖最后由 iceboy_361 于 2011-12-9 11:23 编辑
1.用html方式录制,回放时出现问题,尝试做关联解决 Action.c(199): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://172.16.1.101:8090/ph/*.js?temp=1323341878078"
[MsgId: MERR-26612] Action.c(199): web_custom_request("*.js") highest severity level was "ERROR", 0 body bytes, 286 header bytes
[MsgId: MMSG-26388]
Action.c(199): Notify: Transaction "LOGIN" ended with "Fail" status (Duration: 0.0630 Wasted Time: 0.0039).
2.在generation log中 找到
****** Response Header For Transaction With Id 40 ******
HTTP/1.1 200 OK
Date: Thu, 08 Dec 2011 10:57:08 GMT
Server: IBM_HTTP_Server
Vary: Accept-Encoding
x-response-code: 200
x-response-msg: Success
Content-Length: 75
Set-Cookie: JSESSIONID=0000-kfdZo77pd70ICsy-4AZGyI:16f358bhi; Path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Cache-Control: no-cache="set-cookie, set-cookie2"
Keep-Alive: timeout=10, max=95
Connection: Keep-Alive
Content-Type: text/javascript
****** Request Header For Transaction With Id 43 ******
POST /ph/*.jsonRequest?temp=1323341865629 HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Referer: http://172.16.1.101:8090/ph/
Content-Type: application/json
encoding: utf-8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; MALC)
Host: 172.16.1.101:8090
Content-Length: 50
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=0000-kfdZo77pd70ICsy-4AZGyI:16f358bhi
3.response和request中都存在 JSESSIONID=0000-kfdZo77pd70ICsy-4AZGyI:16f358bhi,且对应,对 JSESSIONID做关联
4.但脚本中提交的请求都为
web_custom_request("*.jsonRequest",
"URL=http://172.16.1.101:8090/ph/*.jsonRequest?temp=1323341855551",
"Method=POST",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://172.16.1.101:8090/ph/",
"Snapshot=t17.inf",
"Mode=HTTP",
"EncType=application/json",
"Body={\"serviceId\":\"logon\",\"uid\":\"\",\"psw\":\"\",\"rid\":\"\",\"deep\":false,\"forConfig\":true,\"replace\":true}",
LAST);
web_custom_request("*.jsonRequest_2",
"URL=http://172.16.1.101:8090/ph/*.jsonRequest?temp=1323341865629",
"Method=POST",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://172.16.1.101:8090/ph/",
"Snapshot=t18.inf",
"Mode=HTTP",
"EncType=application/json",
"Body={\"serviceId\":\"rolesLoader\",\"uid\":\"CYMYL\",\"psw\":\"\"}",
LAST);
的形式
5.问题:整个脚本中找不到0000-kfdZo77pd70ICsy-4AZGyI:16f358bhi的值,无法替代做关联,recording log中也没有,为[Web Request (1eb0: 868)] "POST /ph/*.jsonRequest?temp=1323341855551" 的形式;
是否和web_custom_request中的temp=1323341865629有关?在GENERATION LOG中得RESPONSE里也找不到1323341865629的值。
请教各位大侠问题可能出在哪里。。谢谢了
|