LoadRunner 9.1 AMF+WEB 脚本多用户执行,数据库没有数据问题
压力机操作系统:Windows XpLoadRunner:9.1 英文版(破解)
录制协议:多协议,AMF+WEB
被测系统:基于Flex的Web应用
录制了一个简单的脚本,增加一条数据;回放是没有问题的,可以在数据库中查到数据,一个虚拟用户执行也是可以的,但2个以上虚拟用户执行就查不到数据了,请问是什么问题?谢谢! 楼主,你们基于flex的web应用是用flex2.0做的还是flex3.0做的啊?
看到资料说lr目前只能支持flex2.0的程序,是么? 我们现在用的是FLEX3.2,第一次测flex,lr是否支持flex3.x不是很清楚。
[ 本帖最后由 wangz2223 于 2009-8-31 14:38 编辑 ] LR 9.1很明确说明仅支持FLEX 2.0
9.5开始支持FLEX 3.0 谢谢!
那上面的问题是不是由于Loadrunner版本的问题引起的呢? lr9.5是不是需要装flex2or3的sdk才行? 我装一个lr9.5试试吧,初次测试flex,很多东西还没搞清楚。 楼上的,装了lr9.5后结果怎么样啊? 原帖由 love_yebin 于 2009-8-31 15:45 发表 http://bbs.51testing.com/images/common/back.gif
LR 9.1很明确说明仅支持FLEX 2.0
9.5开始支持FLEX 3.0
我用9.5也无法录制flex3的app的脚本,是不是有什么需要设置的?
看hp的客服也是说lr9.5可以支持flex3的~~ 你的协议选择可能有问题,使用LR9.5的protocol Advisor可以帮你确定正确的协议,建议你选择Flex+Web(HTTP/HTML)协议 学习了 原帖由 linlinxu 于 2009-9-3 16:28 发表 http://bbs.51testing.com/images/common/back.gif
你的协议选择可能有问题,使用LR9.5的protocol Advisor可以帮你确定正确的协议,建议你选择Flex+Web(HTTP/HTML)协议
flex+web的用过了,依旧不行啊~ 你那条数据是插入的什么,我觉得可能是你脚本有问题,两个虚拟用户,你确定你插入的数据主键值是唯一的么(或者其他的?是否正确参数化?)?还有一些从属的对应关系等。 你可以将需要的数据 通过insert,看数据库有什么提示。 参数就一个,是个唯一索引 “AN_NAME”,参数化后,回放是没问题的。
参数使用:
Select next row:Unique
Updatealue on:Each occurrence
其它参数也试过,也不好使,请各位大侠指教。
是不是Run- time settings 里还要设置什么,我都是缺省的。
[ 本帖最后由 wangz2223 于 2009-9-7 15:30 编辑 ] Loadrunner 9.5 脚本(3-1):
vuser_init()
{
web_url("index.htm",
"URL=http://192.168.100.233:7991/trms/index.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_add_header("x-flash-version",
"10,0,32,18");
web_url("trms.swf",
"URL=http://192.168.100.233:7991/trms/trms.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/index.htm",
"Snapshot=t2.inf",
LAST);
web_add_auto_header("x-flash-version", "10,0,32,18");
web_custom_request("amf",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"1\\x00\\x00\\x00\\xE0\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Mflex.messaging.messages.CommandMessage\\x13operation\\x1Bco"
"rrelationId\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x04\\x05\\x06\\x01\\x06I15DDCD7C-2C4"
"4-846B-26FB-927D1779C3E1\\x01\\x04\\x00\\x04\\x00\n\\x0B\\x01\\x01\n"
"\\x05%DSMessagingVersion\\x04\\x01\tDSId\\x06\\x07nil\\x01\\x06\\x01",
LAST);
web_custom_request("amf;jsessionid="
"nTvmKk4J9v9dwvVDGjMmQDGTSbJvDrkl1ZQpQvD4R2M95swD7syp!-464848052",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf;jsessionid="
"nTvmKk4J9v9dwvVDGjMmQDGTSbJvDrkl1ZQpQvD4R2M95swD7syp!-464848052",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t4.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"1\\x00\\x00\\x01+\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Oflex.messaging.messages.RemotingMessage\\x13operation\r"
"source\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x06\r"
"invoke\\x01\\x06I0A419DB4-2252-B956-EF93-927D173A8474\\x01\\x04\\x00\\"
"x04\\x00\t\\x05\\x01\\x01\\x067findValidSysLocalCacheEvent\n"
"\\x0B\\x01\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x15DSEndpoint\\x01\\x0"
"1\\x06-sysLocalCacheEventDest",
LAST);
web_concurrent_start(NULL);
web_url("chinatelecom.swf",
"URL=http://192.168.100.233:7991/trms/common/css/chinatelecom.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t5.inf",
LAST);
web_url("topright.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/topright.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t6.inf",
LAST);
web_url("logo.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/logo.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t7.inf",
LAST);
web_url("titlewindow.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/titlewindow.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t8.inf",
LAST);
web_url("cascadewindow.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/cascadewindow.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t9.inf",
LAST);
web_url("layout_switcher_2.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/layout_switcher_2.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t10.inf",
LAST);
web_url("layout_switcher_3.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/layout_switcher_3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t11.inf",
LAST);
web_url("favor.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/favor.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t12.inf",
LAST);
web_url("fullscreen.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/fullscreen.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t13.inf",
LAST);
web_concurrent_end(NULL);
web_revert_auto_header("x-flash-version");
web_url("historyFrame.html",
"URL=http://192.168.100.233:7991/trms/common/js/flex/historyFrame.html?",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.100.233:7991/trms/index.htm",
"Snapshot=t14.inf",
"Mode=HTML",
LAST);
web_add_header("x-flash-version",
"10,0,32,18");
web_concurrent_start(NULL);
web_url("head_bg.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/head_bg.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t15.inf",
LAST);
web_add_header("x-flash-version",
"10,0,32,18");
web_url("bottom_bg.jpg",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/bottom_bg.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t16.inf",
LAST);
web_add_header("x-flash-version",
"10,0,32,18");
web_url("body_menu_bg.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/body_menu_bg.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t17.inf",
LAST);
web_add_header("x-flash-version",
"10,0,32,18");
web_url("head_center.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/head_center.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t18.inf",
LAST);
web_add_header("x-flash-version",
"10,0,32,18");
web_url("LoginDialog.swf",
"URL=http://192.168.100.233:7991/trms/oss/rms/mainframe/view/LoginDialog.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t19.inf",
LAST);
web_add_header("x-flash-version",
"10,0,32,18");
web_url("login_bg.jpg",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/login_bg.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t20.inf",
LAST);
web_concurrent_end(NULL);
lr_start_transaction("Login");
web_add_auto_header("x-flash-version", "10,0,32,18");
web_custom_request("amf_2",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t21.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"1\\x00\\x00\\x01\\x01\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Mflex.messaging.messages.CommandMessage\\x13operation\\x1Bco"
"rrelationId\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x04\\x05\\x06\\x01\\x06ICFEC062E-CC7"
"6-1062-ED34-927D49858CB9\\x01\\x04\\x00\\x04\\x00\n\\x0B\\x01\\x01\n"
"\\x05%DSMessagingVersion\\x04\\x01\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x01\\x06\\x01",
LAST); Loadrunner 9.5 脚本(3-2):
web_custom_request("amf_3",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t22.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"2\\x00\\x00\\x01Q\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Oflex.messaging.messages.RemotingMessage\\x13operation\r"
"source\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x06\r"
"invoke\\x01\\x06I4171FFF2-5823-458B-E282-927D49765F07\\x01\\x04\\x00\\"
"x04\\x00\t\\x05\\x01\n\\x13)oss.util.service.SDO\\x17propertyMap\n"
"\\x0B\\x01\\x11password\\x06\t"
"1212\\x11username\\x06\\x05gc\\x01\\x06\\x0Blogin\n\t\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x15DSEndpoint\\x01\\x0"
"1\\x06#secuContainerDest",
LAST);
web_custom_request("amf_4",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t23.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"1\\x00\\x00\\x01\\x01\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Mflex.messaging.messages.CommandMessage\\x13operation\\x1Bco"
"rrelationId\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x04\\x05\\x06\\x01\\x06I48CB0FD6-04E"
"8-8263-24AF-927D51172B02\\x01\\x04\\x00\\x04\\x00\n\\x0B\\x01\\x01\n"
"\\x05%DSMessagingVersion\\x04\\x01\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x01\\x06\\x01",
LAST);
web_custom_request("amf_5",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t24.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"2\\x00\\x00\\x01L\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Oflex.messaging.messages.RemotingMessage\\x13operation\r"
"source\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x06\r"
"invoke\\x01\\x06I6E45C8DC-763D-B3BB-C4BF-927D50F8ACF3\\x01\\x04\\x00\\"
"x04\\x00\t\\x05\\x01\n\\x13)oss.util.service.SDO\\x17propertyMap\n"
"\\x0B\\x01\\x17uppernodeid\\x06\\x030\\x0Bowner\\x06\\x05-3\\x01\\x06"
"\\x11initMenu\n\t\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x15DSEndpoint\\x01\\x0"
"1\\x06\\x19menuTreeDest",
LAST);
lr_think_time(5);
web_url("BulletinView.swf",
"URL=http://192.168.100.233:7991/trms/oss/rms/mainframe/view/BulletinView.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t25.inf",
LAST);
web_custom_request("amf_6",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t26.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"1\\x00\\x00\\x01\\x01\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Mflex.messaging.messages.CommandMessage\\x13operation\\x1Bco"
"rrelationId\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x04\\x05\\x06\\x01\\x06I5ACA017C-E31"
"3-A1EF-CF4D-927D526F0CD2\\x01\\x04\\x00\\x04\\x00\n\\x0B\\x01\\x01\n"
"\\x05%DSMessagingVersion\\x04\\x01\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x01\\x06\\x01",
LAST);
web_custom_request("amf_7",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t27.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"2\\x00\\x00\\x01?\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Oflex.messaging.messages.RemotingMessage\\x13operation\r"
"source\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x06\r"
"invoke\\x01\\x06I6A7EED74-62FF-0AFA-BB43-927D525FB028\\x01\\x04\\x00\\"
"x04\\x00\t\\x05\\x01\n\\x13)oss.util.service.SDO\\x17propertyMap\n"
"\\x0B\\x01\ruserid\\x04\\x01\\x01\\x06\\x0FfindAll\n\t\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x15DSEndpoint\\x01\\x0"
"1\\x06!menuShortcutDest",
LAST);
web_concurrent_start(NULL);
web_url("createTitle_wrap_down.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/createTitle_wrap_down.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t28.inf",
LAST);
web_url("createTitle_bg.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/createTitle_bg.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t29.inf",
LAST);
web_url("createTitle_icon.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/createTitle_icon.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t30.inf",
LAST);
web_concurrent_end(NULL);
web_custom_request("amf_8",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t31.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"1\\x00\\x00\\x01\\x01\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Mflex.messaging.messages.CommandMessage\\x13operation\\x1Bco"
"rrelationId\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x04\\x05\\x06\\x01\\x06I9830F8FB-A76"
"A-FBD1-5300-927D54EF8278\\x01\\x04\\x00\\x04\\x00\n\\x0B\\x01\\x01\n"
"\\x05%DSMessagingVersion\\x04\\x01\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x01\\x06\\x01",
LAST);
web_custom_request("amf_9",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t32.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"2\\x00\\x00\\x01a\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Oflex.messaging.messages.RemotingMessage\\x13operation\r"
"source\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x06\r"
"invoke\\x01\\x06I9AC7E737-E74B-DD24-D659-927D54B1BB1A\\x01\\x04\\x00\\"
"x04\\x00\t\\x05\\x01\n\\x13)oss.util.service.SDO\\x17propertyMap\n"
"\\x0B\\x01\\x11userName\\x06+"
"搴旂敤绯荤粺绠$悊鍛\\x98\\x01\\x06\\x1FgetLastBulletin\n\t\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x15DSEndpoint\\x01\\x0"
"1\\x06'bulletinServiceDest",
LAST);
web_concurrent_start(NULL);
web_url("createTitle_icon1.gif",
"URL=http://192.168.100.233:7991/trms/common/images/chinatelecom/createTitle_icon1.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.100.233:7991/trms/trms.swf/[]/1",
"Snapshot=t33.inf",
LAST);
web_url("ServiceAreaDialog.swf",
"URL=http://192.168.100.233:7991/trms/oss/rms/mainframe/view/ServiceAreaDialog.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t34.inf",
LAST);
web_concurrent_end(NULL);
lr_end_transaction("Login",LR_AUTO); Loadrunner 9.5 脚本(3-3):
web_custom_request("amf_10",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t35.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"1\\x00\\x00\\x01\\x01\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Mflex.messaging.messages.CommandMessage\\x13operation\\x1Bco"
"rrelationId\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x04\\x05\\x06\\x01\\x06IC715F283-4D9"
"7-FAEA-7CC3-927D84F88E5D\\x01\\x04\\x00\\x04\\x00\n\\x0B\\x01\\x01\n"
"\\x05%DSMessagingVersion\\x04\\x01\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x01\\x06\\x01",
LAST);
web_custom_request("amf_11",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t36.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"2\\x00\\x00\\x01b\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Oflex.messaging.messages.RemotingMessage\\x13operation\r"
"source\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x06\r"
"invoke\\x01\\x06I8994AE4E-6029-88CB-0FD2-927D84E8DDDF\\x01\\x04\\x00\\"
"x04\\x00\t\\x05\\x01\n\\x13)oss.util.service.SDO\\x17propertyMap\n"
"\\x0B\\x01\\x15localNetId\\x06\\x07431\\x15workAreaId\\x05A拱绸\\x00\\"
"x00\\x00\\x01\\x06\\x1DselectWorkArea\n\t\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x15DSEndpoint\\x01\\x0"
"1\\x06#secuContainerDest",
LAST);
return 0;
}
Action()
{
lr_start_transaction("AN");
lr_think_time(20);
web_concurrent_start(NULL);
web_url("AnNetView.swf",
"URL=http://192.168.100.233:7991/trms/oss/rms/inventory/network/access/annet/web/flex/view/AnNetView.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t37.inf",
LAST);
web_url("mate-0.8.8.1.swf",
"URL=http://192.168.100.233:7991/trms/flex/libs/mate-0.8.8.1.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t38.inf",
LAST);
web_url("flexlib-bin-2.4.swf",
"URL=http://192.168.100.233:7991/trms/flex/libs/flexlib-bin-2.4.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t39.inf",
LAST);
web_url("flexmdi-1.1.swf",
"URL=http://192.168.100.233:7991/trms/flex/libs/flexmdi-1.1.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t40.inf",
LAST);
web_url("as3xls-1.0.swf",
"URL=http://192.168.100.233:7991/trms/flex/libs/as3xls-1.0.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t41.inf",
LAST);
web_url("osslib-6.5-SNAPSHOT.swf",
"URL=http://192.168.100.233:7991/trms/flex/libs/osslib-6.5-SNAPSHOT.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t42.inf",
LAST);
web_url("rmslib-6.5-20090901.030315-2.swf",
"URL=http://192.168.100.233:7991/trms/flex/libs/rmslib-6.5-20090901.030315-2.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t43.inf",
LAST);
web_url("gislib-6.5-20090902.021026-3.swf",
"URL=http://192.168.100.233:7991/trms/flex/libs/gislib-6.5-20090902.021026-3.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t44.inf",
LAST);
web_url("AnNetEditDialog.swf",
"URL=http://192.168.100.233:7991/trms/oss/rms/inventory/network/access/annet/web/flex/view/AnNetEditDialog.swf",
"Resource=1",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t45.inf",
LAST);
web_concurrent_end(NULL);
lr_end_transaction("AN",LR_AUTO);
lr_start_transaction("Save");
web_custom_request("amf_12",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t46.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"1\\x00\\x00\\x01\\x01\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Mflex.messaging.messages.CommandMessage\\x13operation\\x1Bco"
"rrelationId\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x04\\x05\\x06\\x01\\x06I1DD3BD22-A3F"
"C-D4FA-6CE0-927E329D7A43\\x01\\x04\\x00\\x04\\x00\n\\x0B\\x01\\x01\n"
"\\x05%DSMessagingVersion\\x04\\x01\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x01\\x06\\x01",
LAST);
web_custom_request("amf_13",
"URL=http://192.168.100.233:7991/trms/messagebroker/amf",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.100.233:7991/trms/trms.swf",
"Snapshot=t47.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"2\\x00\\x00\\x02&\n\\x00\\x00\\x00\\x01\\x11\n"
"\\x81\\x13Oflex.messaging.messages.RemotingMessage\\x13operation\r"
"source\\x13messageId\\x11clientId\\x15timeToLive\\x13timestamp\t"
"body\\x0Fheaders\\x17destination\\x06\r"
"invoke\\x01\\x06I9B669224-1061-7427-9BC5-927E326EF7ED\\x01\\x04\\x00\\"
"x04\\x00\t\\x05\\x01\n\\x13)oss.util.service.SDO\\x17propertyMap\n"
"\\x0B\\x01\\x0BanNet\n"
"\\x813goss.rms.inventory.network.access.annet.domain.AnNet\\x05id\t"
"name\r"
"status\\x1BserviceAreaId\\x0Faddress\\x1FserviceAreaName\\x11capacity"
"\raccWay\\x11exchName\\x15createTime\r"
"exchId\\x01\\x06\\x1B{AN_Name}\\x04\\x01\\x04傂]\\x06\\x19Xueyuan "
"Road\\x06\\x13闀挎槬甯\\x82\\x04\\x08\\x04\\x01\\x06'B鍏竴鏉戞帴鍏ョ"
"綉\\x08\\x01Br9'\\xDE%\\xA0\\x00\\x04\\x81\\x02\\x01\\x06\\x11addAnNet"
"\n\t\t"
"DSId\\x06ID890F967-8E19-FFA9-947F-ED23B08EDBB6\\x15DSEndpoint\\x01\\x0"
"1\\x06\\x1BanNetViewDest",
LAST);
lr_end_transaction("Save",LR_AUTO);
return 0;
} 原帖由 davids 于 2009-9-1 11:11 发表 http://bbs.51testing.com/images/common/back.gif
lr9.5是不是需要装flex2or3的sdk才行?
还是不行。 flex本身是单线程的,可能是session的问题,需要做一个关联,不知道是不是这样,请高手指教! loadrunner9.5对flex的支持也不是很好,已经定位是session问题。loadrunner不能关联由服务端生成的DSid(见上面脚本),需要手工关联。
页:
[1]
2