|
5#
楼主 |
发表于 2007-9-24 09:32:40
|
只看该作者
web_reg_save_param("processid",
"LB=<processInstanceId>",
"RB=<",
"Ord=ALL",
"Search=Body",
LAST);
web_reg_save_param("taskid",
"LB=<taskInstanceId>",
"RB=<",
"Ord=ALL",
"Search=Body",
LAST);
processidParam, "{processid_%s}",lr_eval_string("{processid_count}");
processidParamVal, "Value=%s",lr_eval_string(processidParam);
lr_message("The value argument is : %s", processidParamVal);
taskidParam, "{taskid_%s}",lr_eval_string("{taskid_count}");
taskidParamVal, "Value=%s",lr_eval_string(taskidParam);
lr_message("The value argument is : %s", taskidParamVal);
web_submit_data("XMLHttpRequestTodoTask.aspx",
"Action=http://172.16.3.182:9080/ocnweb/XMLHttpRequestTodoTask.aspx",
"Method=POST",
"RecContentType=application/xml",
"Referer=http://172.16.3.182:9080/ocnweb/YUINWManage.aspx",
"Mode=HTML",
ITEMDATA,
"Name=start", "Value=0", ENDITEM,
"Name=limit", "Value=20", ENDITEM,
LAST);
lr_think_time(4);
web_add_auto_header("Accept",
"text/javascript, text/html, application/xml, text/xml, */*");
web_submit_data("XMLHttpRequestYUIDealWithProcess.aspx",
"Action=http://172.16.3.182:9080/ocnweb/XMLHttpRequestYUIDealWithProcess.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.16.3.182:9080/ocnweb/YUINWManage.aspx",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=processParam.processName", "Value=loadtest", ENDITEM,
"Name=processParam.processVersion", "Value=3", ENDITEM,
"Name=processParam.processInstanceId", "processidParamVal", ENDITEM,
"Name=processParam.taskInstanceId", "taskidParamVal", ENDITEM,
"Name=processParam.ticketId", "Value=-1", ENDITEM,
"Name=processParam.currNodeName", "Value=onestep", ENDITEM,
"Name=processParam.entityName", "Value=", ENDITEM,
"Name=processParam.prevTransitionName", "Value=", ENDITEM,
"Name=processParam.taskOwner", "Value=test1-1", ENDITEM,
LAST);
因为在测试中,processid和taskid都是变量,所以我准备取processid和taskid的最后一个值给processParam.processInstanceId和processParam.taskInstanceId,请帮忙看看这段脚本有什么问题么?
[ 本帖最后由 icewhite 于 2007-9-24 09:34 编辑 ] |
|