LoadRunner脚本报26627错误
最近做了个OA性能压力测试,部分代码如下:web_submit_data("FormSend.do",
"Action=http://10.96.249.158:7001/FlowEngineWeb/workflow/FormSend.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.96.249.158:7001/FlowEngineWeb/workflow/FormManage.do?flowInid=1033&dealIndx=-1&stepInid=-1&saveFlag=0",
"Snapshot=t32.inf",
"Mode=HTML",
ITEMDATA,
"Name=flowInid", "Value=54959", ENDITEM,
"Name=stepInid", "Value=1955039", ENDITEM,
"Name=dealIndx", "Value=0", ENDITEM,
"Name=sys_flow_assure_step", "Value=", ENDITEM,
"Name=sys_flow_assure_man", "Value=", ENDITEM,
"Name=openTerm", "Value=", ENDITEM,
"Name=dealTerm", "Value=", ENDITEM,
"Name=sys_fileids_hidden", "Value=605567", ENDITEM,
LAST);
出现了个很头疼的错误:
Action.c(563): Error -26627: HTTP Status-Code=404 (Not Found) for "http://10.96.249.158:7001/FlowEngineWeb/workflow/FormSend.do"
Action.c(563): web_submit_data("FormSend.do") highest severity level was "ERROR", 2259 body bytes, 148 header bytes [MsgId: MMSG-26388
此错误也就是上面的代码,各位大神有遇到过这种问题吗? 看看你提交的参数是否需要做关联的没做 不是,这是一个链接,直接访问是错误的,链接:"Action=http://10.96.249.158:7001/FlowEngineWeb/workflow/FormSend.do",
此链接应带参数,如:Referer=http://10.96.249.158:7001/FlowEngineWeb/workflow/FormManage.do?flowInid=1033&dealIndx=-1&stepInid=-1&saveFlag=0
这是在提交表单信息时出现的错误 直接访问这个网址没有问题? jingzizx 发表于 2017-10-16 13:09
直接访问这个网址没有问题?
有,直接访问也不成功的,但是录制的脚本是这个链接! "Name=flowInid", "Value=54959", ENDITEM,
"Name=stepInid", "Value=1955039", ENDITEM,
"Name=dealIndx", "Value=0", ENDITEM,
"Name=sys_flow_assure_step", "Value=", ENDITEM,
"Name=sys_flow_assure_man", "Value=", ENDITEM,
"Name=openTerm", "Value=", ENDITEM,
"Name=dealTerm", "Value=", ENDITEM,
"Name=sys_fileids_hidden", "Value=605567", ENDITEM,
这些就是你post提交的参数,这些参数应该是变化的,不做关联下次访问肯定不行的,你找下这些值那些是动态变化的,做下关联试试看 y2907818 发表于 2017-10-16 21:57
"Name=flowInid", "Value=54959", ENDITEM,
"Name=stepInid", "Value=1955039", ENDITEM ...
这个值知道啊,问题是报链接问题! y2907818 发表于 2017-10-16 21:57
"Name=flowInid", "Value=54959", ENDITEM,
"Name=stepInid", "Value=1955039", ENDITEM ...
那这两个flowInid和stepInid是动态的,这里该怎么关联呢? Lm1120 发表于 2017-10-18 10:02
那这两个flowInid和stepInid是动态的,这里该怎么关联呢?
你看这两个id是哪个请求返回的,在那个请求上做关联取id,然后放到你下面这个链接的请求参数里面去
页:
[1]