|
操作过程:
1.录制了两份动作相同的脚本 A 和 B
其中 A 脚本
Action()
{
lr_start_transaction("单击网上展厅视图");
web_set_max_html_param_len("99999");
web_reg_save_param("ID",
"LB/IC=<correlationId>",
"RB/IC=</correlationId>",
"ORD=all",
LAST);
flex_amf_call("AMF3_call_12",
"Gateway=http://192.168.2.200:8096/messagebroker/amf/",
"Snapshot=t29.inf",
MESSAGE,
"Method=null",
"TargetObjectId=/1",
BEGIN_ARGUMENTS,
"<AMF3><object-externalizable-custom>"
"<flex.messaging.messages.CommandMessage>\n <destination></destination"
">\n <messageId>795C59D4-24BB-45AB-47E6-6876E3B72697</messageId>\n "
"<timestamp>0</timestamp>\n <timeToLive>0</timeToLive>\n <headers>\n "
" <entry>\n <string>DSId</string>\n <string"
">C4F6DE11-D31C-5F2B-F4CC-B288484ACF3C</string>\n </entry>\n "
"<entry>\n <string>DSMessagingVersion</string>\n <int>1</int"
">\n </entry>\n </headers>\n <body class=\""
"flex.messaging.io.amf.ASObject\" serialization=\"custom\">\n "
"<unserializable-parents/>\n <map>\n <default>\n "
"<loadFactor>0.75</loadFactor>\n <threshold>12</threshold>\n "
" </default>\n <int>16</int>\n <int>0</int>\n </map>\n "
" <flex.messaging.io.amf.ASObject>\n <default>\n "
"<inHashCode>false</inHashCode>\n <inToString>false</inToString"
">\n </default>\n </flex.messaging.io.amf.ASObject>\n </body>"
"\n <correlationId></correlationId>\n <operation>5</operation>\n</"
"flex.messaging.messages.CommandMessage></object-externalizable-custom>"
"</AMF3>",
END_ARGUMENTS,
LAST);
flex_amf_call("AMF3_call_13",
"Gateway=http://192.168.2.200:8096/messagebroker/amf/",
"Snapshot=t30.inf",
MESSAGE,
"Method=null",
"TargetObjectId=/2",
BEGIN_ARGUMENTS,
"<AMF3><object-externalizable-custom>"
"<flex.messaging.messages.RemotingMessage>\n <destination"
">flexSpringService</destination>\n <messageId"
">2AC235DC-8C06-1879-E383-6876E388A462</messageId>\n <timestamp>0</"
"timestamp>\n <timeToLive>0</timeToLive>\n <headers>\n <entry>\n "
" <string>DSId</string>\n <string"
">C4F6DE11-D31C-5F2B-F4CC-B288484ACF3C</string>\n </entry>\n </"
"headers>\n <operation>operate</operation>\n <parameters>\n "
"<string>cn.tsoft.platform.core.service.MenuService</string>\n "
"<string>getMenuByPerspectiveService</string>\n <string></string>\n "
" <boolean>false</boolean>\n <object-array>\n <string>store</"
"string>\n <string>zh_CN</string>\n <string"
">40288279265067a20126507a7a860011</string>\n <string>demo1</"
"string>\n <string>drp</string>\n <boolean>false</boolean>\n "
" </object-array>\n </parameters>\n</"
"flex.messaging.messages.RemotingMessage></object-externalizable-custom"
"></AMF3>",
END_ARGUMENTS,
LAST);
................
lr_start_transaction("确定下订");
flex_amf_call("AMF3_call_26",
"Gateway=http://192.168.2.200:8096/messagebroker/amf/",
"Snapshot=t74.inf",
MESSAGE,
"Method=null",
"TargetObjectId=/1",
BEGIN_ARGUMENTS,
"<AMF3><object-externalizable-custom>"
"<flex.messaging.messages.CommandMessage>\n <destination></destination"
">\n <messageId>612A5B75-9D85-F310-4B3B-6878525AA925</messageId>\n "
"<timestamp>0</timestamp>\n <timeToLive>0</timeToLive>\n <headers>\n "
" <entry>\n <string>DSId</string>\n <string"
">C4F6DE11-D31C-5F2B-F4CC-B288484ACF3C</string>\n </entry>\n "
................
flex_web_request("amf_33",
"URL=http://192.168.2.200:8096/messagebroker/amf/",
"Method=POST",
"Resource=0",
"RecContentType=application/x-amf",
"Referer=http://192.168.2.200:8096/index.swf",
"Snapshot=t75.inf",
"Mode=HTML",
"EncType=application/x-amf",
"BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/"
"2\\x00\\x00\\x04\\xEF\n\\x00\\x00\\x00\\x01\\x11\n"
...................
lr_end_transaction("确定下订",LR_AUTO);
return 0;
}
[ 本帖最后由 含笑 于 2010-1-27 19:09 编辑 ] |
|