|
我们公司的软件使用J2EE开发的,我录制的是一个创建记录的操作具体步骤如下:
1、在编辑界面选择按模板编写的Word文档
2、执行上传操作完成记录创建
在录制完脚本后我对脚本进行了关联操作共三个部分,单点登录的一个Value值,登录用户的UserID,ViewState.value。(通过自动关联没有显示有新的需要关联的地方)
回放脚本时日志里提示:
web_custom_request("adviceInfo.faces_2") highest severity level was "warning", 1668 body bytes, 144 header bytes
回放图像里截获的信息:
出错代码如下:
web_submit_data("adviceInfo.faces",
"Action=http://219.142.70.26:6080/xapc/client/advice/adviceInfo.faces?javax.portlet.faces.DirectLink=true",
"Method=POST",
"RecContentType=text/html",
"Referer=http://219.142.70.26:6080/xapc/client/workConsole/adviceFunWorkConsole.faces",
"Snapshot=t22.inf",
"Mode=HTML",
ITEMDATA,
"Name=AJAXREQUEST", "Value=_viewRoot", ENDITEM,
"Name=adviceBaseInfoForm:itAdviceTitle", "Value=", ENDITEM,
"Name=adviceBaseInfoForm:resume", "Value=", ENDITEM,
"Name=adviceBaseInfoForm_SUBMIT", "Value=1", ENDITEM,
"Name=adviceBaseInfoForm:_idcl", "Value=", ENDITEM,
"Name=adviceBaseInfoForm:_link_hidden_", "Value=", ENDITEM,
"Name=javax.faces.ViewState", "Value={WCSParam_Diff3}", ENDITEM,
"Name=adviceBaseInfoForm:_id12", "Value=adviceBaseInfoForm:_id12", ENDITEM,
LAST);
lr_think_time(12);
web_custom_request("adviceInfo.faces_2",
"URL=http://219.142.70.26:6080/xapc/client/advice/adviceInfo.faces",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://219.142.70.26:6080/xapc/client/workConsole/adviceFunWorkConsole.faces",
"Snapshot=t23.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------7d9fa3b1c0b88",
body_variable_1,
LAST);
//lr_end_transaction("新建建议",LR_AUTO);
return 0;
}
希望大家给点建议 |
|