|
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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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/[[DYNAMIC]]/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); |
|