|
假设录制的脚本是这样的:
===============================================================
web_custom_request("JSON-RPC_38",
"URL=http://192.168.1.56/jsjonline2007/JSON-RPC",
"Method=POST",
"Resource=1",
"RecContentType=text/plain",
"Referer=http://192.168.1.56/jsjonline2007/pages/apply/constlicense/ConstLicenseMain.html",
"EncType=text/plain",
"Body={\"id\": 4, \"method\": \"system.registerClass\", \"params\": [\"constructionLicenseAjaxService\"]}",
LAST);
web_custom_request("JSON-RPC_39",
"URL=http://192.168.1.56/jsjonline2007/JSON-RPC",
"Method=POST",
"Resource=1",
"RecContentType=text/plain",
"Referer=http://192.168.1.56/jsjonline2007/pages/apply/constlicense/ConstLicenseMain.html",
"EncType=text/plain",
"Body={\"id\": 5, \"method\": \"constructionLicenseAjaxService.saveWithId\", \"params\": [{\"name\": \"CLA_unit_{number}\", \"contractStartDate\": \"2008-1-1\", \"contractEndDate\": \"2008-1-3\", \"javaClass\": \"com.hymake.trump.concreteapply.model.ConstructionLicense\"}]}",
LAST);
====================================================================
如果我想让每个虚拟用户执行完第二个web_custom_request之前,都先等待当前虚拟用户执行完第二个web_custom_request之后(或者等待一定时间后),下一个虚拟用户再继续执行,这个要如何设置呢?
[ 本帖最后由 jing961 于 2008-1-10 11:44 编辑 ] |
|