51Testing软件测试论坛
标题:
LR 关联问题求助
[打印本页]
作者:
0325096
时间:
2012-12-13 16:34
标题:
LR 关联问题求助
客户端向服务端POST ,每次请求服务端都会response 一串字符串。
/*
Virtual User Script started at : 2012-12-13 16:24:29
Starting action vuser_init.
Web Turbo Replay of LoadRunner 11.0.0 for Windows 7; build 8859 (Aug 18 2010 20:14:31) [MsgId: MMSG-27143]
Run Mode: HTML [MsgId: MMSG-26000]
Run-Time Settings file: "C:\Users\Administrator\Desktop\2\\default.cfg" [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(10): Verification checks not enabled. web_find is skipped. See the 'Run-time settings/Preferences/Checks' [MsgId: MMSG-27197]
Action.c(10): web_find was successful [MsgId: MMSG-26392]
Action.c(15): t=382ms: 221-byte response headers for "http://localhost:8080/V3Serv/asn.do?reqvar=saveASN_Header" (RelFrameId=1, Internal ID=1)
Action.c(15): HTTP/1.1 200 OK\r\n
Action.c(15): Server: Apache-Coyote/1.1\r\n
Action.c(15): Set-Cookie: JSESSIONID=C60EBED9707ED1C6DE2158AB06E72A68; Path=/fluxWmsV3Serv\r\n
Action.c(15): RESULT: 0000\r\n
Action.c(15): Content-Type: text/html\r\n
Action.c(15): Content-Length: 254\r\n
Action.c(15): Date: Thu, 13 Dec 2012 08:24:29 GMT\r\n
Action.c(15): \r\n
Action.c(15): t=402ms: 254-byte response body for "http://localhost:8080/V3Serv/asn.do?reqvar=saveASN_Header" (RelFrameId=1, Internal ID=1)
Action.c(15): <?xml version="1.0" encoding="GBK"?>\r\n
Action.c(15): <ROOT-OUT>\r\n
Action.c(15): <RETURN-DATA>\r\n
Action.c(15): <DATA-ITEM />\r\n
Action.c(15): </RETURN-DATA>\r\n
Action.c(15): <RETURN-MESSAGE>\r\n
Action.c(15): <MESSAGE-ITEM>0000ASNNO=0002856;更新数据库:新增数据成功!影响的记录数为:1</MESSAGE-ITE
Action.c(15): M>\r\n
Action.c(15): </RETURN-MESSAGE>\r\n
Action.c(15): </ROOT-OUT>\r\n
Action.c(15): \r\n
Action.c(15): web_custom_request("asn.do_4") was successful, 254 body bytes, 221 header bytes [MsgId: MMSG-26386]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
*/
我想获取 <MESSAGE-ITEM>。。。。 </MESSAGE-ITEM>里的值,能通过关联来获取么?
作者:
0325096
时间:
2012-12-13 17:47
[attach]82756[/attach]
如 asn.do_5 我想获取
<
MESSAGE-ITEM
>里的返回值,需要怎么设置?
作者:
ffwithvv
时间:
2012-12-14 15:19
将<MESSAGE-ITEM>里的值参数化,然后用
lr_eval_string("{参数名}") 获取参数的值,不知道说的对不对啊
作者:
0325096
时间:
2012-12-19 16:27
嗯 3Q 第一次关联完成 谢谢指教
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2