LR脚本回放的时候不能插入到数据库中数据
Action(){
// {title} = "1"并做了参数化
// {title1} = "HZ28818839523f8e01396adfc6240756"
// {title2} = "HZ28818839523f8e01396adfc6240754"
// {title3}="HZ28818839523f8e01396adfc6240755"
// {title4}="HZ28818839523f8e01396adfc6"
// {title5}="HZ28818839523f8e01395732af64496a"
lr_rendezvous("启动");
lr_start_transaction("start");
lr_think_time(40);
web_reg_save_param("title4",
"LB/IC=userid=Start.",
"RB/IC=\"",
"Ord=1",
"Search=All",
LAST);
web_reg_save_param("title5",
"LB=flowid=",
"RB=\"",
"Ord=1",
"Search=All",
LAST);
web_url("xmlwork.index.jsp",
"URL=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t17.inf",
"Mode=HTML",
EXTRARES,
"URL=/hz6/resource/skins/default/css/img/title_bg2.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
LAST);
web_url("process.html",
"URL=http://192.168.1.8:9081/hz6/horizon/workflow/process.html",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}",
"Snapshot=t18.inf",
"Mode=HTML",
EXTRARES,
"URL=/hz6/resource/skins/default/css/img/btn_bg.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
"URL=/hz6/resource/skins/default/css/img/form_fg.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
LAST);
web_url("pageload.html",
"URL=http://192.168.1.8:9081/hz6/horizon/workflow/pageload.html",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}",
"Snapshot=t19.inf",
"Mode=HTML",
EXTRARES,
"URL=/hz6/resource/skins/default/css/img/button/close.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
"URL=/hz6/resource/skins/default/css/img/button/dostatus.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
"URL=/hz6/resource/skins/default/css/img/form_titbg.jpg", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
"URL=/hz6/resource/skins/default/css/img/btn_open.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
"URL=/hz6/resource/skins/default/css/img/tab_libg3_ac.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
"URL=/hz6/resource/skins/default/css/img/tab2_libg.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
"URL=/hz6/resource/skins/default/css/img/main_tbg.jpg", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
"URL=/hz6/resource/skins/default/css/img/formlisttit.jpg", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}", ENDITEM,
"URL=../editor/htmlarea/fckconfig.js", "Referer=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/editor/fckeditor.html?InstanceName=HZ28818638559fca013855f05cbd05d3_DAWENBEN&formtype=module", ENDITEM,
"URL=../editor/htmlarea/editor/js/fckeditorcode_ie.js", "Referer=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/editor/fckeditor.html?InstanceName=HZ28818638559fca013855f05cbd05d3_DAWENBEN&formtype=module", ENDITEM,
"URL=ShowFlowMap.swf", "Referer=http://192.168.1.8:9081/hz6/horizon/workflow/ShowFlowMap.jsp?workid=HZ28818839523f8e01396adfc6240754&userid=Start.{title4}", ENDITEM,
"URL=../editor/htmlarea/editor/skins/silver/fck_editor.css", "Referer=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/editor/fckeditor.html?InstanceName=HZ28818638559fca013855f05cbd05d3_DAWENBEN&formtype=module", ENDITEM,
"URL=../editor/htmlarea/editor/lang/zh-cn.js", "Referer=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/editor/fckeditor.html?InstanceName=HZ28818638559fca013855f05cbd05d3_DAWENBEN&formtype=module", ENDITEM,
"URL=../editor/htmlarea/editor/skins/silver/images/toolbar.collapse.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/editor/fckeditor.html?InstanceName=HZ28818638559fca013855f05cbd05d3_DAWENBEN&formtype=module", ENDITEM,
"URL=../editor/htmlarea/editor/skins/silver/images/toolbar.expand.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/editor/fckeditor.html?InstanceName=HZ28818638559fca013855f05cbd05d3_DAWENBEN&formtype=module", ENDITEM,
"URL=../editor/htmlarea/editor/skins/silver/images/toolbar.start.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/editor/fckeditor.html?InstanceName=HZ28818638559fca013855f05cbd05d3_DAWENBEN&formtype=module", ENDITEM,
"URL=../editor/htmlarea/editor/skins/silver/fck_strip.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/editor/fckeditor.html?InstanceName=HZ28818638559fca013855f05cbd05d3_DAWENBEN&formtype=module", ENDITEM,
"URL=../editor/htmlarea/editor/css/fck_editorarea.css", ENDITEM,
LAST);
web_url("fckstyles.xml",
"URL=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/fckstyles.xml",
"TargetFrame=",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/editor/fckeditor.html?InstanceName=HZ28818638559fca013855f05cbd05d3_DAWENBEN&formtype=module",
"Snapshot=t20.inf",
"Mode=HTML",
EXTRARES,
"URL=editor/skins/silver/images/toolbar.buttonbg.gif", "Referer=http://192.168.1.8:9081/hz6/horizon/editor/htmlarea/editor/fckeditor.html?InstanceName=HZ28818638559fca013855f05cbd05d3_DAWENBEN&formtype=module", ENDITEM,
LAST);
/*启动成功,显示性能测试表单,输入标题*/
lr_end_transaction("start", LR_AUTO);
/*点击提交*/
lr_think_time(94);
web_reg_save_param("title",
"LB/IC=Value=",
"RB/IC=\"",
"Ord=1",
"Search=All",
LAST);
web_reg_save_param("title1",
"LB/IC=Value=",
"RB/IC=\"",
"Ord=1",
"Search=All",
LAST);
web_reg_save_param("title2",
"LB/IC=Value=",
"RB/IC=\"",
"Ord=1",
"Search=All",
LAST);
web_reg_save_param("title3",
"LB/IC=Value=",
"RB/IC=\"",
"Ord=1",
"Search=All",
LAST); web_url("process.html_2",
"URL=http://192.168.1.8:9081/hz6/horizon/workflow/process.html",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}",
"Snapshot=t21.inf",
"Mode=HTML",
LAST);
web_submit_data("xmlwork.submit.jsp",
"Action=http://192.168.1.8:9081/hz6/horizon/workflow/action/xmlwork.submit.jsp",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}",
"Snapshot=t22.inf",
"Mode=HTML",
ITEMDATA,
"Name=sxComments", "Value=", ENDITEM,
"Name=Comments", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_TITLE", "Value={title}", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_CREATED", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_MODIFIED", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_CREATOR", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_MODIFICATOR", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_RECYCLE", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_WEIBEN", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_ZHENGSHU", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_XIAOSHU", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_RIQI", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_DXDXKNAME", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_ZIDIANVALUE", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_ZIDIANVALUE", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_YONGHUNAME", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_YONGHUNAME", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_YONGHUNAME_ID", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_YONGHUNAME_EN", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_TUPIAN", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_QIANMING", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_DAWENBEN", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_YIJIAN", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_BUMENNAME", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_BUMENNAME", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_BUMENNAME_ID", "Value=", ENDITEM,
"Name=FORMID", "Value=HZ28818638559fca013855f05cbd05d3", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_ID", "Value={title1}", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_TABLENAME", "Value=TZ_DESIGNER_TEST", ENDITEM,
"Name=mapread", "Value=", ENDITEM,
"Name=mapedit", "Value=ID|Title|Created|Modified|Creator|Modificator|RECYCLE|WEIBEN|ZHENGSHU|XIAOSHU|RIQI|DXDXKNAME|ZIDIANVALUE|XLKID|YONGHUNAME|TUPIAN|QIANMING|DAWENBEN|YIJIAN|BUMENNAME", ENDITEM,
"Name=maphidden", "Value=", ENDITEM,
"Name=mapcheck", "Value=", ENDITEM,
"Name=flowIdentifier", "Value=", ENDITEM,
"Name=dataIdentifier", "Value=", ENDITEM,
"Name=UserID", "Value=admin", ENDITEM,
"Name=UserName", "Value=绠$悊鍛\x98", ENDITEM,
"Name=DeptName", "Value=鎱ф閫氳蒋", ENDITEM,
"Name=WorkID", "Value={title2}", ENDITEM,
"Name=NodeID", "Value=Start", ENDITEM,
"Name=TrackID", "Value={title3}", ENDITEM,
"Name=NodeName", "Value=寮\x80濮\x8B", ENDITEM,
"Name=actionFlag", "Value=1100000000000000", ENDITEM,
"Name=selectAuthor", "Value=", ENDITEM,
"Name=secondAuthor", "Value=", ENDITEM,
"Name=nextNodeID", "Value=", ENDITEM,
"Name=msgSendFlag", "Value=", ENDITEM,
"Name=ActionName", "Value=submit", ENDITEM,
"Name=allowUnitNext", "Value=", ENDITEM,
"Name=cancelFlag", "Value=2", ENDITEM,
"Name=urlapp", "Value=/horizon/workflow/xmlwork.index.jsp?workid=|workid|", ENDITEM,
"Name=selectFlag", "Value=1", ENDITEM,
"Name=submitflag", "Value=1", ENDITEM,
"Name=curNodeAuthorSendFlag", "Value=Todo", ENDITEM,
"Name=curNodeReaderSendFlag", "Value=Read", ENDITEM,
"Name=selectFlowID", "Value=", ENDITEM,
"Name=FormAction", "Value=/hz6/xmlwork.action.do", ENDITEM,
"Name=selectAuthorCN", "Value=", ENDITEM,
"Name=tmpAuthor", "Value=", ENDITEM,
"Name=preFlag", "Value=0", ENDITEM,
"Name=ActionClass", "Value=", ENDITEM,
"Name=tmpSaveInfo", "Value=", ENDITEM,
EXTRARES,
"URL=/hz6/resource/skins/default/css/img/btn_bg3.gif", ENDITEM,
LAST);
web_submit_data("xmlwork.action.do",
"Action=http://192.168.1.8:9081/hz6/xmlwork.action.do",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}",
"Snapshot=t23.inf",
"Mode=HTML",
ITEMDATA,
"Name=sxComments", "Value=", ENDITEM,
"Name=Comments", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_TITLE", "Value={title}", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_CREATED", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_MODIFIED", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_CREATOR", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_MODIFICATOR", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_RECYCLE", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_WEIBEN", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_ZHENGSHU", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_XIAOSHU", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_RIQI", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_DXDXKNAME", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_ZIDIANVALUE", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_ZIDIANVALUE", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_YONGHUNAME", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_YONGHUNAME", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_YONGHUNAME_ID", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_YONGHUNAME_EN", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_TUPIAN", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_QIANMING", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_DAWENBEN", "Value=<br />", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_YIJIAN", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_BUMENNAME", "Value=", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_BUMENNAME", "Value=", ENDITEM,
"Name=T_HZ28818638559fca013855f05cbd05d3_BUMENNAME_ID", "Value=", ENDITEM,
"Name=FORMID", "Value=HZ28818638559fca013855f05cbd05d3", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_ID", "Value={title1}", ENDITEM,
"Name=HZ28818638559fca013855f05cbd05d3_TABLENAME", "Value=TZ_DESIGNER_TEST", ENDITEM,
"Name=mapread", "Value=", ENDITEM,
"Name=mapedit", "Value=ID|Title|Created|Modified|Creator|Modificator|RECYCLE|WEIBEN|ZHENGSHU|XIAOSHU|RIQI|DXDXKNAME|ZIDIANVALUE|XLKID|YONGHUNAME|TUPIAN|QIANMING|DAWENBEN|YIJIAN|BUMENNAME", ENDITEM,
"Name=maphidden", "Value=", ENDITEM,
"Name=mapcheck", "Value=", ENDITEM,
"Name=flowIdentifier", "Value=", ENDITEM,
"Name=dataIdentifier", "Value=", ENDITEM,
"Name=UserID", "Value=admin", ENDITEM,
"Name=UserName", "Value=绠$悊鍛\x98", ENDITEM,
"Name=DeptName", "Value=鎱ф閫氳蒋", ENDITEM,
"Name=WorkID", "Value={title2}", ENDITEM,
"Name=NodeID", "Value=Start", ENDITEM,
"Name=TrackID", "Value={title3}", ENDITEM,
"Name=NodeName", "Value=寮\x80濮\x8B", ENDITEM,
"Name=actionFlag", "Value=1100000000000000", ENDITEM,
"Name=selectAuthor", "Value=Line1=U_admin~", ENDITEM,
"Name=secondAuthor", "Value=Line1=", ENDITEM,
"Name=nextNodeID", "Value=Line1~Node2", ENDITEM,
"Name=msgSendFlag", "Value=Todo", ENDITEM,
"Name=ActionName", "Value=submit", ENDITEM,
"Name=allowUnitNext", "Value=", ENDITEM,
"Name=cancelFlag", "Value=2", ENDITEM,
"Name=urlapp", "Value=/horizon/workflow/xmlwork.index.jsp?workid=|workid|", ENDITEM,
"Name=selectFlag", "Value=1", ENDITEM,
"Name=submitflag", "Value=0", ENDITEM,
"Name=curNodeAuthorSendFlag", "Value=Todo", ENDITEM,
"Name=curNodeReaderSendFlag", "Value=Read", ENDITEM,
"Name=selectFlowID", "Value=", ENDITEM,
"Name=FormAction", "Value=/hz6/xmlwork.action.do", ENDITEM,
"Name=selectAuthorCN", "Value=", ENDITEM,
"Name=tmpAuthor", "Value=", ENDITEM,
"Name=preFlag", "Value=0", ENDITEM,
"Name=ActionClass", "Value=", ENDITEM,
"Name=tmpSaveInfo", "Value=", ENDITEM,
LAST);
web_submit_data("xmlwork.close.jsp",
"Action=http://192.168.1.8:9081/hz6/horizon/workflow/action/xmlwork.close.jsp",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.1.8:9081/hz6/horizon/workflow/xmlwork.index.jsp?flowid={title5}#nogo",
"Snapshot=t24.inf",
"Mode=HTML",
ITEMDATA,
"Name=WorkID", "Value={title2}", ENDITEM,
"Name=UserID", "Value=admin", ENDITEM,
"Name=NodeID", "Value=Start", ENDITEM,
"Name=TrackID", "Value={title3}", ENDITEM,
LAST); web_submit_data("workview.list.change.jsp",
"Action=http://192.168.1.8:9081/hz6/horizon/formview/view/workview.list.change.jsp?viewid=HZ2881be36ee18e90136ee2c258a0044",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.1.8:9081/hz6/horizon/formview/view/viewtemplate/view.template.normal.jsp?viewid=HZ2881be36ee18e90136ee2c258a0044",
"Snapshot=t25.inf",
"Mode=HTML",
ITEMDATA,
"Name=catText", "Value=", ENDITEM,
"Name=viewid", "Value=HZ2881be36ee18e90136ee2c258a0044", ENDITEM,
"Name=sortFlag", "Value=", ENDITEM,
"Name=pagemax", "Value=15", ENDITEM,
"Name=curpage", "Value=1", ENDITEM,
"Name=searchflag", "Value=1", ENDITEM,
"Name=txtSearch", "Value=", ENDITEM,
"Name=tmpSearch_0", "Value=", ENDITEM,
"Name=AdSearch_0", "Value=", ENDITEM,
"Name=allfieldforsearch", "Value=a.FLOWNAME like ?", ENDITEM,
"Name=simpleforsearch", "Value=a.FLOWNAME", ENDITEM,
"Name=simpleforsearchCN", "Value=娴佺▼鍚嶇О", ENDITEM,
LAST);
return 0;
} 所有代码都在了。高手给看看,是咋回事,为什么插入不到数据库中数据那。非常感谢 没人知道呀。不过我搞定了。是关联问题,关联不对
页:
[1]