老猪提供:

https://mp.weixin.qq.com/s?__biz=MzIwOTMzNDEwNw==&mid=100000013&idx=1&sn=624f5bc74e2f695a7d35e39bd07740ad&scene=1&srcid=0905ffwvQLmHbpsGR4aZSi3h&key=7b81aac53bd2393dea5ab5759d8e9fccbfa8db7a0b5c2dad75bf53184e20a7763746519affbf3a130920e4a41553dc91&ascene=1&uin=NjMyODQwMzQx&devicetype=Windows-QQBrowser&version=61030004&pass_ticket=ekTbBiq9zGfH0AvEibprSNUK7xuGm3u4is730z95tWEtqvJYlirjzGA%2FioDGDUp8

cc提供:

http://blog.csdn.net/shwonder/archive/2010/08/11/5802885.aspx
——————————————————————————————————————————
下面以公司系统10.10.1.11来进行对上传操作(题库导入)
首先在IE设置不改的前提下木有调通,所以针对IE进行了一些设置,以使IE可以捕获到系统更多被阻止的东东,详情参见下图。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
实战脚本
——————————————————————————————————————————————
1-9action如下:
1)vuser_int:起始action
2)login脚本
login()
{

web_url("10.10.1.11",
        "URL=http://10.10.1.11/",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=",
        "Snapshot=t13.inf",
        "Mode=HTML",
        EXTRARES,
        "Url=/theme/yui_combo.php?3.15.0/cssreset/cssreset-min.css&3.15.0/cssfonts/cssfonts-min.css&3.15.0/cssgrids/cssgrids-min.css&3.15.0/cssbase/cssbase-min.css", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/lib/javascript.php/1471966768/lib/javascript-static.js", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/image.php/trial/theme/1471966768/login_user", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/styles.php/trial/1471966768/all/chunk0", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/image.php/trial/theme/1471966768/logo", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/image.php/trial/theme/1471966768/login_password", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/javascript.php/trial/1471966768/head", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/trial/javascript/ui-dialog.css", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/yui_combo.php?rollup/3.15.0/yui-moodlesimple-min.css", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/yui_combo.php?rollup/3.15.0_1/yui-moodlesimple-min.js&rollup/1471966768/mcore-min.js", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/styles.php/trial/1471966768/all/chunk1", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/image.php/trial/theme/1471966768/login_bg", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        "Url=/theme/image.php/trial/theme/1471966768/fix_img_bg", "Referer=http://10.10.1.11/login/index.php", ENDITEM,
        LAST);

web_url("10.10.1.11_2",
        "URL=http://10.10.1.11/",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=",
        "Snapshot=t14.inf",
        "Mode=HTML",
        LAST);

web_submit_data("index.php",
        "Action=http://10.10.1.11/login/index.php",
        "Method=POST",
        "RecContentType=text/html",
        "Referer=http://10.10.1.11/login/index.php",
        "Snapshot=t15.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=username", "Value=pop1", ENDITEM,
        "Name=password", "Value=123456", ENDITEM,
        LAST);

web_submit_data("index.php_2",
        "Action=http://10.10.1.11/login/index.php",
        "Method=POST",
        "RecContentType=text/html",
        "Referer=http://10.10.1.11/login/index.php",
        "Snapshot=t16.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=username", "Value=pop1", ENDITEM,
        "Name=password", "Value=123456", ENDITEM,
        EXTRARES,
        "Url=../theme/yui_combo.php?3.15.0/cssreset/cssreset-min.css&3.15.0/cssfonts/cssfonts-min.css&3.15.0/cssgrids/cssgrids-min.css&3.15.0/cssbase/cssbase-min.css", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        "Url=../theme/yui_combo.php?rollup/3.15.0/yui-moodlesimple-min.css", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        "Url=../theme/yui_combo.php?rollup/3.15.0_1/yui-moodlesimple-min.js&rollup/1471966768/mcore-min.js", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        "Url=../theme/styles.php/trial/1471966768/all/chunk0", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        "Url=../lib/javascript.php/1471966768/lib/javascript-static.js", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        "Url=../theme/javascript.php/trial/1471966768/head", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        "Url=../theme/styles.php/trial/1471966768/all/chunk1", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        "Url=../theme/yui_combo.php?m/1471966768/theme_bootstrapbase/bootstrap/bootstrap-min.js", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/cssbutton/cssbutton-min.css", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/plugin/plugin-min.js&m/1471966768/core/lockscroll/lockscroll-min.js&3.15.0/widget-base-ie/widget-base-ie-min.js", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/event-mousewheel/event-mousewheel-min.js&3.15.0/event-resize/event-resize-min.js&3.15.0/event-hover/event-hover-min.js&3.15.0/event-touch/event-touch-min.js&3.15.0/event-move/event-move-min.js&3.15.0/event-flick/event-flick-min.js&3.15.0/event-valuechange/event-valuechange-min.js&3.15.0/event-tap/event-tap-min.js&3.15.0/transition-timer/transition-timer-min.js", "Referer=http://10.10.1.11/pingnan/front/", ENDITEM,
        LAST);

web_link("绯荤粺绠$悊",
        "Text=绯荤粺绠$悊",
        "Snapshot=t17.inf",
        LAST);

web_link("绯荤粺绠$悊_2",
        "Text=绯荤粺绠$悊",
        "Ordinal=1",
        "Snapshot=t18.inf",
        EXTRARES,
        "Url=/theme/yui_combo.php?3.15.0/cssreset/cssreset-min.css&3.15.0/cssfonts/cssfonts-min.css&3.15.0/cssgrids/cssgrids-min.css&3.15.0/cssbase/cssbase-min.css", ENDITEM,
        "Url=/theme/yui_combo.php?rollup/3.15.0/yui-moodlesimple-min.css", ENDITEM,
        "Url=/theme/yui_combo.php?rollup/3.15.0_1/yui-moodlesimple-min.js&rollup/1471966768/mcore-min.js", ENDITEM,
        "Url=/theme/styles.php/trial/1471966768/all/chunk0", ENDITEM,
        "Url=/lib/javascript.php/1471966768/lib/javascript-static.js", ENDITEM,
        "Url=/theme/javascript.php/trial/1471966768/head", ENDITEM,
        "Url=/theme/styles.php/trial/1471966768/all/chunk1", ENDITEM,
        "Url=/theme/yui_combo.php?m/1471966768/theme_bootstrapbase/bootstrap/bootstrap-min.js", ENDITEM,
        "Url=/theme/image.php/trial/theme/1471966768/file_do", ENDITEM,
        "Url=/theme/yui_combo.php?3.15.0/plugin/plugin-min.js&3.15.0/event-mousewheel/event-mousewheel-min.js&3.15.0/event-resize/event-resize-min.js&3.15.0/event-hover/event-hover-min.js&3.15.0/event-touch/event-touch-min.js&3.15.0/event-move/event-move-min.js&3.15.0/event-flick/event-flick-min.js&3.15.0/event-valuechange/event-valuechange-min.js&3.15.0/event-tap/event-tap-min.js&3.15.0/transition-timer/transition-timer-min.js", ENDITEM,
        "Url=/theme/yui_combo.php?3.15.0/cssbutton/cssbutton-min.css", ENDITEM,
        "Url=/theme/yui_combo.php?m/1471966768/core/lockscroll/lockscroll-min.js&3.15.0/widget-base-ie/widget-base-ie-min.js", ENDITEM,
        LAST);

lr_think_time(THINKTIME);

web_link("璇曢瀵煎叆",
        "Text=璇曢瀵煎叆",
        "Snapshot=t19.inf",
        LAST);

web_url("import.php",
        "URL=http://10.10.1.11/question/import.php?courseid=1",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=http://10.10.1.11/pingnan/front/manage.php",
        "Snapshot=t20.inf",
        "Mode=HTML",
        EXTRARES,
        "Url=../theme/yui_combo.php?3.15.0/cssreset/cssreset-min.css&3.15.0/cssfonts/cssfonts-min.css&3.15.0/cssgrids/cssgrids-min.css&3.15.0/cssbase/cssbase-min.css", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?rollup/3.15.0/yui-moodlesimple-min.css", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?rollup/3.15.0_1/yui-moodlesimple-min.js&rollup/1471966768/mcore-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/styles.php/trial/1471966768/all/chunk0", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../lib/javascript.php/1471966768/lib/javascript-static.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/javascript.php/trial/1471966768/head", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/styles.php/trial/1471966768/all/chunk1", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/req", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/i/loading_small", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?m/1471966768/theme_bootstrapbase/bootstrap/bootstrap-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/plugin/plugin-min.js&3.15.0/event-mousewheel/event-mousewheel-min.js&3.15.0/event-resize/event-resize-min.js&3.15.0/event-hover/event-hover-min.js&3.15.0/event-touch/event-touch-min.js&3.15.0/event-move/event-move-min.js&3.15.0/event-flick/event-flick-min.js&3.15.0/event-valuechange/event-valuechange-min.js&3.15.0/event-tap/event-tap-min.js&3.15.0/transition-timer/transition-timer-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/theme/1471966768/fp/dnd_arrow", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/t/collapsed", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/cssbutton/cssbutton-min.css", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?m/1471966768/core/lockscroll/lockscroll-min.js&3.15.0/widget-base-ie/widget-base-ie-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?m/1471966768/core/formchangechecker/formchangechecker-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?m/1471966768/form/shortforms/shortforms-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/t/expanded", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/datatable-base/assets/skins/sam/datatable-base.css&3.15.0/datatable-message/assets/skins/sam/datatable-message.css&3.15.0/datatable-sort/assets/skins/sam/datatable-sort.css&3.15.0/resize-base/assets/skins/sam/resize-base.css", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../lib/javascript.php/1471966768/repository/filepicker.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/datatable-sort/datatable-sort-min.js&3.15.0/datasource-local/datasource-local-min.js&3.15.0/datatable-datasource/datatable-datasource-min.js&3.15.0/dd-ddm/dd-ddm-min.js&3.15.0/dd-ddm-drop/dd-ddm-drop-min.js&3.15.0/dd-drop/dd-drop-min.js&3.15.0/dd-drop-plugin/dd-drop-plugin-min.js&3.15.0/dd-delegate/dd-delegate-min.js&3.15.0/resize-base/resize-base-min.js&3.15.0/resize-plugin/resize-plugin-min.js&m/1471966768/core_filepicker/core_filepicker.js&3.15.0/intl/"
        "intl-min.js&3.15.0/datatable-message/lang/datatable-message_en.js&3.15.0/datatable-sort/lang/datatable-sort_en.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/event-simulate/event-simulate-min.js&3.15.0/async-queue/async-queue-min.js&3.15.0/gesture-simulate/gesture-simulate-min.js&3.15.0/node-event-simulate/node-event-simulate-min.js&3.15.0/json-stringify/json-stringify-min.js&3.15.0/io-upload-iframe/io-upload-iframe-min.js&3.15.0/io-form/io-form-min.js&2in3/2.9.0/build/yui2-treeview/yui2-treeview-min.js&3.15.0/cookie/cookie-min.js&3.15.0/array-extras/array-extras-min.js&3.15.0/array-invoke/array-invoke-min.js&3.15.0/"
        "arraylist/arraylist-min.js&3.15.0/model/model-min.js&3.15.0/model-list/model-list-min.js&3.15.0/datatable-core/datatable-core-min.js&3.15.0/view/view-min.js&3.15.0/datatable-head/datatable-head-min.js&3.15.0/datatable-body/datatable-body-min.js&3.15.0/datatable-table/datatable-table-min.js&3.15.0/datatable-base/datatable-base-min.js&3.15.0/datatable-column-widths/datatable-column-widths-min.js&3.15.0/datatable-message/datatable-message-min.js&3.15.0/datatable-mutable/datatable-mutable-min.js", "Re"
        "ferer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?2in3/2.9.0/build/yui2-skin-sam-treeview/assets/skins/sam/yui2-skin-sam-treeview-min.css", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?2in3/2.9.0/build/yui2-yahoo/yui2-yahoo-min.js&2in3/2.9.0/build/yui2-dom/yui2-dom-min.js&2in3/2.9.0/build/yui2-event/yui2-event-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../lib/javascript.php/1471966768/lib/form/dndupload.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../lib/javascript.php/1471966768/lib/form/filepicker.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../lib/javascript.php/1471966768/lib/form/form.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        LAST);

return 0;
}

3)xtgl
xtgl()
{

lr_think_time(THINKTIME);

web_url("manage.php",
        "URL=http://10.10.1.11/pingnan/front/manage.php",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=http://10.10.1.11/pingnan/front/",
        "Snapshot=t5.inf",
        "Mode=HTML",
        LAST);

web_link("绯荤粺绠$悊",
        "Text=绯荤粺绠$悊",
        "Ordinal=1",
        "Snapshot=t6.inf",
        EXTRARES,
        "Url=/theme/yui_combo.php?3.15.0/cssreset/cssreset-min.css&3.15.0/cssfonts/cssfonts-min.css&3.15.0/cssgrids/cssgrids-min.css&3.15.0/cssbase/cssbase-min.css", ENDITEM,
        "Url=/theme/yui_combo.php?rollup/3.15.0/yui-moodlesimple-min.css", ENDITEM,
        "Url=/theme/yui_combo.php?rollup/3.15.0_1/yui-moodlesimple-min.js&rollup/1471966768/mcore-min.js", ENDITEM,
        "Url=/theme/styles.php/trial/1471966768/all/chunk0", ENDITEM,
        "Url=/lib/javascript.php/1471966768/lib/javascript-static.js", ENDITEM,
        "Url=/theme/javascript.php/trial/1471966768/head", ENDITEM,
        "Url=/theme/styles.php/trial/1471966768/all/chunk1", ENDITEM,
        "Url=/theme/yui_combo.php?m/1471966768/theme_bootstrapbase/bootstrap/bootstrap-min.js", ENDITEM,
        "Url=/theme/yui_combo.php?3.15.0/cssbutton/cssbutton-min.css", ENDITEM,
        "Url=/theme/yui_combo.php?3.15.0/plugin/plugin-min.js&m/1471966768/core/lockscroll/lockscroll-min.js&3.15.0/widget-base-ie/widget-base-ie-min.js", ENDITEM,
        "Url=/theme/yui_combo.php?3.15.0/event-mousewheel/event-mousewheel-min.js&3.15.0/event-resize/event-resize-min.js&3.15.0/event-hover/event-hover-min.js&3.15.0/event-touch/event-touch-min.js&3.15.0/event-move/event-move-min.js&3.15.0/event-flick/event-flick-min.js&3.15.0/event-valuechange/event-valuechange-min.js&3.15.0/event-tap/event-tap-min.js&3.15.0/transition-timer/transition-timer-min.js", ENDITEM,
        "Url=/theme/image.php/trial/theme/1471966768/file_do", ENDITEM,
        LAST);

return 0;
}

4)KSDR
KSDR()
{

lr_think_time(THINKTIME);

web_url("IE9CompatViewList.xml",
        "URL=http://ie9cvlist.ie.microsoft.com/IE9CompatViewList.xml",
        "Resource=0",
        "RecContentType=text/xml",
        "Referer=",
        "Snapshot=t7.inf",
        "Mode=HTML",
        LAST);

web_url("IE9CompatViewList.xml_2",
        "URL=http://ie9cvlist.ie.microsoft.com/IE9CompatViewList.xml",
        "Resource=0",
        "RecContentType=text/xml",
        "Referer=",
        "Snapshot=t8.inf",
        "Mode=HTML",
        LAST);

web_url("import.php",
        "URL=http://10.10.1.11/question/import.php?courseid=1",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=http://10.10.1.11/pingnan/front/manage.php",
        "Snapshot=t9.inf",
        "Mode=HTML",
        LAST);

web_url("import.php_2",
        "URL=http://10.10.1.11/question/import.php?courseid=1",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=http://10.10.1.11/pingnan/front/manage.php",
        "Snapshot=t10.inf",
        "Mode=HTML",
        EXTRARES,
        "Url=../theme/yui_combo.php?3.15.0/cssreset/cssreset-min.css&3.15.0/cssfonts/cssfonts-min.css&3.15.0/cssgrids/cssgrids-min.css&3.15.0/cssbase/cssbase-min.css", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?rollup/3.15.0/yui-moodlesimple-min.css", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?rollup/3.15.0_1/yui-moodlesimple-min.js&rollup/1471966768/mcore-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/styles.php/trial/1471966768/all/chunk0", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../lib/javascript.php/1471966768/lib/javascript-static.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/javascript.php/trial/1471966768/head", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/styles.php/trial/1471966768/all/chunk1", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/req", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/i/loading_small", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/theme/1471966768/fp/dnd_arrow", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/t/collapsed", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?m/1471966768/theme_bootstrapbase/bootstrap/bootstrap-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/cssbutton/cssbutton-min.css", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/plugin/plugin-min.js&m/1471966768/core/lockscroll/lockscroll-min.js&3.15.0/widget-base-ie/widget-base-ie-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/event-mousewheel/event-mousewheel-min.js&3.15.0/event-resize/event-resize-min.js&3.15.0/event-hover/event-hover-min.js&3.15.0/event-touch/event-touch-min.js&3.15.0/event-move/event-move-min.js&3.15.0/event-flick/event-flick-min.js&3.15.0/event-valuechange/event-valuechange-min.js&3.15.0/event-tap/event-tap-min.js&3.15.0/transition-timer/transition-timer-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?m/1471966768/core/formchangechecker/formchangechecker-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?m/1471966768/form/shortforms/shortforms-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/datatable-base/assets/skins/sam/datatable-base.css&3.15.0/datatable-message/assets/skins/sam/datatable-message.css&3.15.0/datatable-sort/assets/skins/sam/datatable-sort.css&3.15.0/resize-base/assets/skins/sam/resize-base.css", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/t/expanded", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../lib/javascript.php/1471966768/repository/filepicker.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/datatable-sort/datatable-sort-min.js&3.15.0/datasource-local/datasource-local-min.js&3.15.0/datatable-datasource/datatable-datasource-min.js&3.15.0/dd-ddm/dd-ddm-min.js&3.15.0/dd-ddm-drop/dd-ddm-drop-min.js&3.15.0/dd-drop/dd-drop-min.js&3.15.0/dd-drop-plugin/dd-drop-plugin-min.js&3.15.0/dd-delegate/dd-delegate-min.js&3.15.0/resize-base/resize-base-min.js&3.15.0/resize-plugin/resize-plugin-min.js&m/1471966768/core_filepicker/core_filepicker.js&3.15.0/intl/"
        "intl-min.js&3.15.0/datatable-message/lang/datatable-message_en.js&3.15.0/datatable-sort/lang/datatable-sort_en.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/event-simulate/event-simulate-min.js&3.15.0/async-queue/async-queue-min.js&3.15.0/gesture-simulate/gesture-simulate-min.js&3.15.0/node-event-simulate/node-event-simulate-min.js&3.15.0/json-stringify/json-stringify-min.js&3.15.0/io-upload-iframe/io-upload-iframe-min.js&3.15.0/io-form/io-form-min.js&2in3/2.9.0/build/yui2-treeview/yui2-treeview-min.js&3.15.0/cookie/cookie-min.js&3.15.0/array-extras/array-extras-min.js&3.15.0/array-invoke/array-invoke-min.js&3.15.0/"
        "arraylist/arraylist-min.js&3.15.0/model/model-min.js&3.15.0/model-list/model-list-min.js&3.15.0/datatable-core/datatable-core-min.js&3.15.0/view/view-min.js&3.15.0/datatable-head/datatable-head-min.js&3.15.0/datatable-body/datatable-body-min.js&3.15.0/datatable-table/datatable-table-min.js&3.15.0/datatable-base/datatable-base-min.js&3.15.0/datatable-column-widths/datatable-column-widths-min.js&3.15.0/datatable-message/datatable-message-min.js&3.15.0/datatable-mutable/datatable-mutable-min.js", "Re"
        "ferer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?2in3/2.9.0/build/yui2-skin-sam-treeview/assets/skins/sam/yui2-skin-sam-treeview-min.css", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/yui_combo.php?2in3/2.9.0/build/yui2-yahoo/yui2-yahoo-min.js&2in3/2.9.0/build/yui2-dom/yui2-dom-min.js&2in3/2.9.0/build/yui2-event/yui2-event-min.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../lib/javascript.php/1471966768/lib/form/dndupload.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../lib/javascript.php/1471966768/lib/form/filepicker.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../lib/javascript.php/1471966768/lib/form/form.js", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/theme/1471966768/fp/view_list_active", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/a/setting", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/a/logout", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/a/help", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/core/1471966768/a/refresh", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/theme/1471966768/fp/view_tree_active", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/theme/1471966768/fp/view_icon_active", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/theme/1471966768/sprite", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/repository_local/1471966768/icon", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/repository_recent/1471966768/icon", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/repository_upload/1471966768/icon", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/repository_url/1471966768/icon", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/repository_user/1471966768/icon", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/repository_wikimedia/1471966768/icon", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        "Url=../theme/image.php/trial/theme/1471966768/fp/path_folder", "Referer=http://10.10.1.11/question/import.php?courseid=1", ENDITEM,
        LAST);

web_submit_data("repository_ajax.php",
        "Action=http://10.10.1.11/repository/repository_ajax.php?action=list",
        "Method=POST",
        "RecContentType=application/json",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t11.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=repo_id", "Value=4", ENDITEM,
        "Name=p", "Value=", ENDITEM,
        "Name=page", "Value=", ENDITEM,
        "Name=env", "Value=filepicker", ENDITEM,
        "Name=sesskey", "Value=C5Eg7Shyoe", ENDITEM,
        "Name=client_id", "Value=57d80e7f02b67", ENDITEM,
        "Name=itemid", "Value=500860982", ENDITEM,
        "Name=maxbytes", "Value=104857600", ENDITEM,
        "Name=areamaxbytes", "Value=-1", ENDITEM,
        "Name=ctx_id", "Value=2", ENDITEM,
        LAST);

web_submit_data("repository_ajax.php_2",
        "Action=http://10.10.1.11/repository/repository_ajax.php?action=list",
        "Method=POST",
        "RecContentType=application/json",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t12.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=repo_id", "Value=4", ENDITEM,
        "Name=p", "Value=", ENDITEM,
        "Name=page", "Value=", ENDITEM,
        "Name=env", "Value=filepicker", ENDITEM,
        "Name=sesskey", "Value=C5Eg7Shyoe", ENDITEM,
        "Name=client_id", "Value=57d80e7f02b67", ENDITEM,
        "Name=itemid", "Value=500860982", ENDITEM,
        "Name=maxbytes", "Value=104857600", ENDITEM,
        "Name=areamaxbytes", "Value=-1", ENDITEM,
        "Name=ctx_id", "Value=2", ENDITEM,
        LAST);

return 0;
}

5)STDR
STDR()
{
     //定义double类型的变量trans_time,用来保存事务的执行时间。

double trans_time;

//定义int类型的变量status,用来保存事务执行的返回的值。

int status;

lr_think_time(THINKTIME);

web_url("logout",
        "URL=http://10.10.1.11/theme/image.php/trial/core/1471966768/a/logout",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t21.inf",
        LAST);

web_url("setting",
        "URL=http://10.10.1.11/theme/image.php/trial/core/1471966768/a/setting",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t22.inf",
        LAST);

web_url("view_tree_active",
        "URL=http://10.10.1.11/theme/image.php/trial/theme/1471966768/fp/view_tree_active",
        "Resource=1",
        "RecContentType=image/svg+xml",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t23.inf",
        LAST);

web_url("view_icon_active",
        "URL=http://10.10.1.11/theme/image.php/trial/theme/1471966768/fp/view_icon_active",
        "Resource=1",
        "RecContentType=image/svg+xml",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t24.inf",
        LAST);

web_url("logout_2",
        "URL=http://10.10.1.11/theme/image.php/trial/core/1471966768/a/logout",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t25.inf",
        LAST);

web_url("refresh",
        "URL=http://10.10.1.11/theme/image.php/trial/core/1471966768/a/refresh",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t26.inf",
        LAST);

web_url("setting_2",
        "URL=http://10.10.1.11/theme/image.php/trial/core/1471966768/a/setting",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t27.inf",
        LAST);

web_url("help",
        "URL=http://10.10.1.11/theme/image.php/trial/core/1471966768/a/help",
        "Resource=1",
        "RecContentType=image/svg+xml",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t28.inf",
        LAST);

web_url("view_list_active",
        "URL=http://10.10.1.11/theme/image.php/trial/theme/1471966768/fp/view_list_active",
        "Resource=1",
        "RecContentType=image/svg+xml",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t29.inf",
        LAST);

web_url("view_tree_active_2",
        "URL=http://10.10.1.11/theme/image.php/trial/theme/1471966768/fp/view_tree_active",
        "Resource=1",
        "RecContentType=image/svg+xml",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t30.inf",
        LAST);

web_url("view_icon_active_2",
        "URL=http://10.10.1.11/theme/image.php/trial/theme/1471966768/fp/view_icon_active",
        "Resource=1",
        "RecContentType=image/svg+xml",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t31.inf",
        LAST);

web_url("help_2",
        "URL=http://10.10.1.11/theme/image.php/trial/core/1471966768/a/help",
        "Resource=1",
        "RecContentType=image/svg+xml",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t32.inf",
        LAST);

web_url("view_list_active_2",
        "URL=http://10.10.1.11/theme/image.php/trial/theme/1471966768/fp/view_list_active",
        "Resource=1",
        "RecContentType=image/svg+xml",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t33.inf",
        LAST);

web_url("refresh_2",
        "URL=http://10.10.1.11/theme/image.php/trial/core/1471966768/a/refresh",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t34.inf",
        LAST);

web_url("path_folder",
        "URL=http://10.10.1.11/theme/image.php/trial/theme/1471966768/fp/path_folder",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t35.inf",
        LAST);

web_url("sprite",
        "URL=http://10.10.1.11/theme/image.php/trial/theme/1471966768/sprite",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t36.inf",
        LAST);

web_url("icon",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_recent/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t37.inf",
        LAST);

web_url("icon_2",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_local/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t38.inf",
        LAST);

web_url("icon_3",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_upload/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t39.inf",
        LAST);

web_url("icon_4",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_url/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t40.inf",
        LAST);

web_url("icon_5",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_upload/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t41.inf",
        LAST);

web_url("icon_6",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_local/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t42.inf",
        LAST);

web_url("icon_7",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_url/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t43.inf",
        LAST);

web_url("path_folder_2",
        "URL=http://10.10.1.11/theme/image.php/trial/theme/1471966768/fp/path_folder",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t44.inf",
        LAST);

web_url("icon_8",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_recent/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t45.inf",
        LAST);

web_url("sprite_2",
        "URL=http://10.10.1.11/theme/image.php/trial/theme/1471966768/sprite",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t46.inf",
        LAST);

web_url("icon_9",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_user/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t47.inf",
        LAST);

web_url("icon_10",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_user/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t48.inf",
        LAST);

web_url("icon_11",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_wikimedia/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t49.inf",
        LAST);

web_url("icon_12",
        "URL=http://10.10.1.11/theme/image.php/trial/repository_wikimedia/1471966768/icon",
        "Resource=1",
        "RecContentType=image/png",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t50.inf",
        LAST);

web_submit_data("repository_ajax.php",
        "Action=http://10.10.1.11/repository/repository_ajax.php?action=list",
        "Method=POST",
        "RecContentType=application/json",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t51.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=repo_id", "Value=4", ENDITEM,
        "Name=p", "Value=", ENDITEM,
        "Name=page", "Value=", ENDITEM,
        "Name=env", "Value=filepicker", ENDITEM,
        "Name=sesskey", "Value=EiDerCgTNo", ENDITEM,
        "Name=client_id", "Value=57d80f70c0858", ENDITEM,
        "Name=itemid", "Value=687551732", ENDITEM,
        "Name=maxbytes", "Value=104857600", ENDITEM,
        "Name=areamaxbytes", "Value=-1", ENDITEM,
        "Name=ctx_id", "Value=2", ENDITEM,
        LAST);

web_submit_data("repository_ajax.php_2",
        "Action=http://10.10.1.11/repository/repository_ajax.php?action=list",
        "Method=POST",
        "RecContentType=application/json",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t52.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=repo_id", "Value=4", ENDITEM,
        "Name=p", "Value=", ENDITEM,
        "Name=page", "Value=", ENDITEM,
        "Name=env", "Value=filepicker", ENDITEM,
        "Name=sesskey", "Value=EiDerCgTNo", ENDITEM,
        "Name=client_id", "Value=57d80f70c0858", ENDITEM,
        "Name=itemid", "Value=687551732", ENDITEM,
        "Name=maxbytes", "Value=104857600", ENDITEM,
        "Name=areamaxbytes", "Value=-1", ENDITEM,
        "Name=ctx_id", "Value=2", ENDITEM,
        LAST);
    /*集合点设置*/
    //lr_rendezvous("uploadfile");

lr_think_time(THINKTIME);
      lr_start_transaction("upload");
      trans_time=lr_get_transaction_duration("upload");
    /*文件参数化Value=E:\\import.xlsx*/
    status=web_submit_data("repository_ajax.php_3",
        "Action=http://10.10.1.11/repository/repository_ajax.php?action=upload",
        "Method=POST",
        "EncType=multipart/form-data",
        "RecContentType=text/plain",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t53.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=repo_upload_file", "Value=E:\\import.xlsx", "File=Yes", ENDITEM,
        "Name=title", "Value=", ENDITEM,
        "Name=author", "Value=娴嬭瘯1", ENDITEM,
        "Name=license", "Value=allrightsreserved", ENDITEM,
        "Name=hyperlinks", "Value=http://", ENDITEM,
        "Name=target", "Value=false", ENDITEM,
        "Name=itemid", "Value=687551732", ENDITEM,
        "Name=repo_id", "Value=4", ENDITEM,
        "Name=p", "Value=", ENDITEM,
        "Name=page", "Value=", ENDITEM,
        "Name=env", "Value=filepicker", ENDITEM,
        "Name=sesskey", "Value=EiDerCgTNo", ENDITEM,
        "Name=client_id", "Value=57d80f70c0858", ENDITEM,
        "Name=itemid", "Value=687551732", ENDITEM,
        "Name=maxbytes", "Value=104857600", ENDITEM,
        "Name=areamaxbytes", "Value=-1", ENDITEM,
        "Name=ctx_id", "Value=2", ENDITEM,
        "Name=savepath", "Value=/", ENDITEM,
        LAST);
/*文件参数化Value=E:\\import.xlsx****参数化顺序必须和上面文件参数化顺序一
    status=web_submit_data("repository_ajax.php_4",
        "Action=http://10.10.1.11/repository/repository_ajax.php?action=upload",
        "Method=POST",
        "EncType=multipart/form-data",
        "RecContentType=text/plain",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t54.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=repo_upload_file", "Value=E:\\import.xlsx", "File=Yes", ENDITEM,
        "Name=title", "Value=", ENDITEM,
        "Name=author", "Value=娴嬭瘯1", ENDITEM,
        "Name=license", "Value=allrightsreserved", ENDITEM,
        "Name=hyperlinks", "Value=http://", ENDITEM,
        "Name=target", "Value=false", ENDITEM,
        "Name=itemid", "Value=687551732", ENDITEM,
        "Name=repo_id", "Value=4", ENDITEM,
        "Name=p", "Value=", ENDITEM,
        "Name=page", "Value=", ENDITEM,
        "Name=env", "Value=filepicker", ENDITEM,
        "Name=sesskey", "Value=EiDerCgTNo", ENDITEM,
        "Name=client_id", "Value=57d80f70c0858", ENDITEM,
        "Name=itemid", "Value=687551732", ENDITEM,
        "Name=maxbytes", "Value=104857600", ENDITEM,
        "Name=areamaxbytes", "Value=-1", ENDITEM,
        "Name=ctx_id", "Value=2", ENDITEM,
        "Name=savepath", "Value=/", ENDITEM,
        LAST);
        样*/
     //增加手工事务,如果该测试事务执行返回值为0,则事务执行成功,否则执行失败。

if (status == 0)

lr_end_transaction("upload", LR_PASS);

else

lr_end_transaction("upload", LR_FAIL);

//打印事务执行时间。

if (trans_time)

lr_output_message("事务执行时间为:%f 秒",trans_time);

else
        
                   lr_output_message("事务执行时间未知!");

return 0;
}

6)DR
 
DR()
{

lr_think_time(6);

web_submit_data("import.php_2",
        "Action=http://10.10.1.11/question/import.php",
        "Method=POST",
        "RecContentType=text/html",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t55.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=courseid", "Value=1", ENDITEM,
        "Name=sesskey", "Value=EiDerCgTNo", ENDITEM,
        "Name=_qf__question_import_form", "Value=1", ENDITEM,
        "Name=mform_isexpanded_id_fileformat", "Value=1", ENDITEM,
        "Name=mform_isexpanded_id_general", "Value=0", ENDITEM,
        "Name=mform_isexpanded_id_importfileupload", "Value=1", ENDITEM,
        "Name=format", "Value=excel", ENDITEM,
        "Name=category", "Value=1,1", ENDITEM,
        "Name=catfromfile", "Value=1", ENDITEM,
        "Name=contextfromfile", "Value=1", ENDITEM,
        "Name=matchgrades", "Value=error", ENDITEM,
        "Name=stoponerror", "Value=1", ENDITEM,
        "Name=newfile", "Value=687551732", ENDITEM,
        "Name=submitbutton", "Value=瀵煎叆", ENDITEM,
        LAST);

web_submit_data("import.php_3",
        "Action=http://10.10.1.11/question/import.php",
        "Method=POST",
        "RecContentType=text/html",
        "Referer=http://10.10.1.11/question/import.php?courseid=1",
        "Snapshot=t56.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=courseid", "Value=1", ENDITEM,
        "Name=sesskey", "Value=EiDerCgTNo", ENDITEM,
        "Name=_qf__question_import_form", "Value=1", ENDITEM,
        "Name=mform_isexpanded_id_fileformat", "Value=1", ENDITEM,
        "Name=mform_isexpanded_id_general", "Value=0", ENDITEM,
        "Name=mform_isexpanded_id_importfileupload", "Value=1", ENDITEM,
        "Name=format", "Value=excel", ENDITEM,
        "Name=category", "Value=1,1", ENDITEM,
        "Name=catfromfile", "Value=1", ENDITEM,
        "Name=contextfromfile", "Value=1", ENDITEM,
        "Name=matchgrades", "Value=error", ENDITEM,
        "Name=stoponerror", "Value=1", ENDITEM,
        "Name=newfile", "Value=687551732", ENDITEM,
        "Name=submitbutton", "Value=瀵煎叆", ENDITEM,
        EXTRARES,
        "Url=../theme/yui_combo.php?3.15.0/cssreset/cssreset-min.css&3.15.0/cssfonts/cssfonts-min.css&3.15.0/cssgrids/cssgrids-min.css&3.15.0/cssbase/cssbase-min.css", ENDITEM,
        "Url=../theme/yui_combo.php?rollup/3.15.0/yui-moodlesimple-min.css", ENDITEM,
        "Url=../theme/yui_combo.php?rollup/3.15.0_1/yui-moodlesimple-min.js&rollup/1471966768/mcore-min.js", ENDITEM,
        "Url=../theme/styles.php/trial/1471966768/all/chunk0", ENDITEM,
        "Url=../lib/javascript.php/1471966768/lib/javascript-static.js", ENDITEM,
        "Url=../theme/javascript.php/trial/1471966768/head", ENDITEM,
        "Url=../theme/styles.php/trial/1471966768/all/chunk1", ENDITEM,
        "Url=../theme/yui_combo.php?m/1471966768/theme_bootstrapbase/bootstrap/bootstrap-min.js", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/cssbutton/cssbutton-min.css", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/plugin/plugin-min.js&m/1471966768/core/lockscroll/lockscroll-min.js&3.15.0/widget-base-ie/widget-base-ie-min.js", ENDITEM,
        "Url=../theme/yui_combo.php?3.15.0/event-mousewheel/event-mousewheel-min.js&3.15.0/event-resize/event-resize-min.js&3.15.0/event-hover/event-hover-min.js&3.15.0/event-touch/event-touch-min.js&3.15.0/event-move/event-move-min.js&3.15.0/event-flick/event-flick-min.js&3.15.0/event-valuechange/event-valuechange-min.js&3.15.0/event-tap/event-tap-min.js&3.15.0/transition-timer/transition-timer-min.js", ENDITEM,
        "Url=../theme/yui_combo.php?m/1471966768/core/event/event-min.js&m/1471966768/filter_mathjaxloader/loader/loader-min.js", ENDITEM,
        LAST);

return 0;
}

7)JX
JX()
{

lr_think_time(THINKTIME);

web_url("edit.php",
        "URL=http://10.10.1.11/question/edit.php?courseid=1&cat=1%2C1&qpage=0&category=1%2C1",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=http://10.10.1.11/question/import.php",
        "Snapshot=t57.inf",
        "Mode=HTML",
        LAST);

return 0;
}

8)vuser_end
vuser_end()
{
    return 0;
}
9)globals.h
#ifndef _GLOBALS_H
#define _GLOBALS_H

//--------------------------------------------------------------------
// Include Files
#include "lrun.h"
#include "web_api.h"
#include "lrw_custom_body.h"

//--------------------------------------------------------------------
// Global Variables

#endif // _GLOBALS_H

 
 

Loadrunner之文件的上传(八)的更多相关文章

  1. 使用Loadrunner进行文件的上传和下载

    最近使用loadrunner中需要录制文件的上传和下载,上传功能模块利用录制可以直接实现,下载无法实现,在网上找到了一段代码,自己动手试验了下,发现没有用 辛苦找到的,还是记录下吧 (1)LoadRu ...

  2. HTML5 文件域+FileReader 分段读取文件并上传(八)-WebSocket

    一.同时上传多个文件处理 HTML: <div class="container"> <div class="panel panel-default&q ...

  3. Spring MVC 实现文件的上传和下载 (八)

    完整的项目案例: springmvc.zip 目录 SpringMVC 中,文件的上传,是通过 MultipartResolver 实现的. 所以,如果要实现文件的上传,只要在 spring-mvc. ...

  4. java springboot 大文件分片上传处理

    参考自:https://blog.csdn.net/u014150463/article/details/74044467 这里只写后端的代码,基本的思想就是,前端将文件分片,然后每次访问上传接口的时 ...

  5. Retrofit 2.0 轻松实现多文件/图片上传/Json字符串/表单

    如果嫌麻烦直接可以用我封装好的库:Novate: https://github.com/Tamicer/Novate 通过对Retrofit2.0的前两篇的基础入门和案例实践,掌握了怎么样使用Retr ...

  6. java文件断点续传上传下载解决方案

    这里只写后端的代码,基本的思想就是,前端将文件分片,然后每次访问上传接口的时候,向后端传入参数:当前为第几块文件,和分片总数 下面直接贴代码吧,一些难懂的我大部分都加上注释了: 上传文件实体类: 看得 ...

  7. 带进度条的文件批量上传插件uploadify

    有时项目中需要一个文件批量上传功能时,个人认为uploadify是快速简便的解决方案. 先上效果图: 一. 下载uploadify 从官网下载uploadify的Flash版本(Flash版本免费,另 ...

  8. C# 用原生JS进行文件的上传

    1.此文章是用原生JS来进行文件的上传,有两个版本,一个不用ajax,一个用ajax. 1)非AJAX <!DOCTYPE html> <html> <head> ...

  9. ssh整合问题总结--在添加商品模块实现图片(文件)的上传

    今天在做毕设(基于SSH的网上商城项目)中碰到了一个文件上传的需求,就是在后台管理员的商品模块中,有一个添加商品,需要将磁盘上的图片上传到tomcat保存图片的指定目录中: 完成这个功能需要两个步,第 ...

随机推荐

  1. delphi edit 中undo 和clearundo 复制粘贴等总结

    edit 和memo都有undo功能, Undo:恢复到改动前. ClearUndo:撤销掉Undo缓冲区的内容,则将无法恢复到改动前的 从该文本框的撤销缓冲区中清除关于最近操作的信息,根据应用 程序 ...

  2. aspose 解决插入html后字体问题

    /// <summary> /// 添加html /// </summary> /// <param name="strText"></p ...

  3. 通过httplib2 探索的学习的最佳方式

    在工作中需要对一个视频点播两百次,使其成为热门视频,才能对其p2p情况进行测试.虽然可以手动点播两百次,但是利用python发送200次post请求,能减少很多的工作量.该发送请求的方法用到了http ...

  4. 安装cocoapods遇到的一些问题

    其实可以直接到https://github.com/CocoaPods/Specs上把所需的文件夹下载下来 解压后命名为master放在本地的 ~/.cocoapods/repos  下面就行 但是使 ...

  5. 2. Shell 传递参数

    1. 概要 我们可以在执行 Shell脚本时,向脚本传递参数,脚本内获取参数的格式为:$n.n 代表一个数字,1 为执行脚本的第一个参数,2 为执行脚本的第二个参数,以此类推-- #!/bin/bas ...

  6. Struts2透过自定义拦截器实现登录之后跳转到原页面

    Struts2通过自定义拦截器实现登录之后跳转到原页面 这个功能对用户体验来说是非常重要的.实现起来其实很简单. 拦截器的代码如下: package go.derek.advice; import g ...

  7. sql or 与and同时有时要注意

    如果是一天sql语句中有or和and同时在 正确:where xxx=xx and (xxx=xx or xxx=xx) 错误:where xxx=xx and xxx=xx or xxx=xx (这 ...

  8. PAT 天梯赛 L2-007 家庭房产

    建图+DFS 题目链接:https://www.patest.cn/contests/gplt/L2-007 题解 在热身赛的时候没有做出来,用的并查集的思想,但是敲残了,最后也没整出来.赛后听到别人 ...

  9. VBS 自动发送邮件

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 3 ...

  10. HttpWatch工具简介及使用技巧(转载)

    一 概述: HttpWatch强大的网页数据分析工具.集成在Internet Explorer工具栏.包括网页摘要.Cookies管理.缓存管理.消息头发送/接受.字符查询.POST 数据和目录管理功 ...