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)
Run Mode: HTML
Run-Time Settings file: "C:\Users\Administrator\Desktop\2\\default.cfg"
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'
Action.c(10): web_find was successful
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
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
*/
我想获取<MESSAGE-ITEM>。。。。 </MESSAGE-ITEM>里的值,能通过关联来获取么?
如 asn.do_5 我想获取<MESSAGE-ITEM>里的返回值,需要怎么设置? 将<MESSAGE-ITEM>里的值参数化,然后用
lr_eval_string("{参数名}") 获取参数的值,不知道说的对不对啊 嗯 3Q 第一次关联完成 谢谢指教
页:
[1]