1

私が手動で関連付けを行う通常の方法は、最初の Web ページの html で見つけたように、左と右の境界を設定することです。ただし、LoadRunner で拡張ログを使用すると、JSESSIONID がサーバーから次のように返されることがわかります。

Action.c(4): Redirecting "http://xxx/xxx/" (redirection depth is 1)      [MsgId: MMSG-26694]

Action.c(4): To location "http://xxx/xxx/xxx/xxx"        [MsgId: MMSG-26693]

Action.c(4): t=3707ms: 384-byte response headers for "http://xxx/xxx/xxx/xxx" (RelFrameId=1,     Internal ID=3)

Action.c(4):     HTTP/1.1 302 Moved Temporarily\r\n

Action.c(4):     Server: Apache-Coyote/1.1\r\n

Action.c(4):     Set-Cookie: JSESSIONID=b6A10tdvDpwexLDVS4VKGHEX; Path=/xxx\r\n

Action.c(4):     Date: Thu, 17 Jan 2013 12:04:38 GMT\r\n

Action.c(4):     Expires: Thu, 01 Jan 1970 00:00:00 GMT\r\n

Action.c(4):     Pragma: no-cache\r\n

Action.c(4):     Cache-Control: no-cache, no-store\r\n

Action.c(4):     Location: http://xxx/xxx/xxx/xxx;jsessionid=b6A10td

Action.c(4):     vDpwexLDVS4VKGHEX?0\r\n

Action.c(4):     Content-Length: 0\r\n

Action.c(4):     \r\n

Action.c(4): Redirecting

この値を取得するにはどうすればよいですか? サーバーから返された HTML に含まれていないのでしょうか。

BRマグナス

4

1 に答える 1

2

わかりました、これを使用して解決しました:

web_reg_save_param("JSessionID", "LB=JSESSIONID=", "RB=;", LAST);
于 2013-01-17T12:36:32.590 に答える