51Testing软件测试论坛
标题:
参数化及关联问题(附脚本)
[打印本页]
作者:
aprincess
时间:
2009-1-5 12:54
标题:
参数化及关联问题(附脚本)
这是录制的保存修改的一段代码,用到的org、logorg和corporation的值我已经在前面的脚本中进行了参数化:
"Name=org", "Value={org}", ENDITEM, (原值是15500)
"Name=logOrg", "Value={logorg}", ENDITEM, (原值是15500)
"Name=corporation", "Value={corporation}", ENDITEM, (原值是S00020070415500)
在点击保存按钮后,会自动生成h
ttp://10.32.12.153:9080/ccpe/jsp/ccpe/report/accReportBr.jsp?org=15500&method=forAccToDptsBr&accName=&corporation=S00020070415500&itm=0&page=1&acc=&logOrg=15500&logOrg=15500&itmName=%CB%F9%D3%D0%BF%C6%C4%BF&submitFlg=1&sureFlag=1&sysFunctionId=&org.loushang.web.taglib.util.SEARCHINFOCOLUMNS=&dat=200901&dpt=0&chaxun.y=11&title=%B2%BF%C3%C5%BC%E4%BB%AE%B7%D6%D5%CA%BB%A7%B9%D8%CF%B5%B1%ED&chaxun.x=32&reportParamsId=100168&t_i_m_e=1231058056205
这句话,其中最后的reportParamsId=100168&t_i_m_e=1231058056205中的值每次都会变化(我想这个地方可能需要自动关联)。
现在遇到的问题是:对上面这一句话,我该怎么处理?将org、logorg和corporation这几个我已经进行参数化的值分别进行参数代替,然后再将100168和1231058056205进行关联?还是需要对这句话整体做什么操作啊?
补充:因为进行查询时用到了润乾的嵌入报表,所以对查询出来的数据可能还需要进行相应增强处理。不知道该如何处理,希望高手多指点!谢谢!
我试过好多次,好像都没有成功(虽然回放时不报错,但从服务器执行日志上可以看到并没有执行update操作),有时候在vugen中迭代一次可以,但迭代多次就报错了,一直不知道该如何做,可以帮我看一下吗?谢谢啊
lr_start_transaction("save");
lr_think_time(13);
web_submit_data("reportServlet_5",
"Action=http://10.32.12.153:9080/ccpe/reportServlet?action=11",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.32.12.153:9080/ccpe/commitForm.cmd?method=forAccToDptsBr",
"Snapshot=t50.inf",
"Mode=HTTP",
ITEMDATA,
"Name=fileName", "Value=accToDptsBr.raq", ENDITEM,
"Name=srcType", "Value=file", ENDITEM,
"Name=cachedId", "Value=A155", ENDITEM,
"Name=pageUrl", "Value=http://10.32.12.153:9080/ccpe/jsp/ccpe/report/accReportBr.jsp?org=15500&method=forAccToDptsBr&accName=&corporation=S00020070415500&itm=0&page=1&acc=&logOrg=15500&logOrg=15500&itmName=%CB%F9%D3%D0%BF%C6%C4%BF&submitFlg=1&sureFlag=1&sysFunctionId=&org.loushang.web.taglib.util.SEARCHINFOCOLUMNS=&dat=200901&dpt=0&chaxun.y=11&title=%B2%BF%C3%C5%BC%E4%BB%AE%B7%D6%D5%CA%BB%A7%B9%D8%CF%B5%B1%ED&chaxun.x=32&reportParamsId=100168", ENDITEM,
"Name=backAndRefresh", "Value=yes", ENDITEM,
"Name=promptAfterSave", "Value=yes", ENDITEM,
"Name=saveDataByListener", "Value=no", ENDITEM,
"Name=keyRepeatError", "Value=no", ENDITEM,
"Name=data", "Value=B2=\"BR\";C2=\"2009-01-04 16:33:32\";E2=\"200901\";F2=\"1\";E5=\"48303\";G5=\"131601140000925\";L5=\"01\";E6=\"49201\";G6=\"155101040032475\";L6=\"01\";E7=\"49201\";G7=\"155101040032483\";L7=\"01\";E8=\"49201\";G8=\"155101040032491\";L8=\"01\";E9=\"49201\";G9=\"155101040032509\";L9=\"01\";E10=\"49201\";G10=\"155101040032517\";L10=\"01\";E11=\"49299\";G11=\"155101040032525\";L11=\"01\";E12=\"49201\";G12=\"155101040032533\";L12=\"01\";E13=\"49299\";G13=\"155101040032533\";L13=\""
"01\";E14=\"48101\";G14=\"155101040032541\";L14=\"01\";E15=\"48101\";G15=\"155101040032558\";L15=\"01\";E16=\"49299\";G16=\"155101040032566\";L16=\"01\";E17=\"49201\";G17=\"155101040032582\";L17=\"01\";E18=\"49299\";G18=\"155101040032590\";L18=\"01\";E19=\"49299\";G19=\"155101040032608\";L19=\"01\";E20=\"48101\";G20=\"155101040032616\";L20=\"01\";E21=\"49201\";G21=\"155101040032624\";L21=\"01\";E22=\"48101\";G22=\"155101040032632\";L22=\"01\";E23=\"48101\";G23=\"155101040032640\";L23=\"01\";E24=\""
"48101\";G24=\"155101040032657\";L24=\"01\";E25=\"48101\";G25=\"155101040032665\";L25=\"01\";E26=\"49201\";G26=\"155101040032673\";L26=\"01\";E27=\"49201\";G27=\"155101040032681\";L27=\"01\";E28=\"49201\";G28=\"155101040032699\";L28=\"01\";E29=\"49201\";G29=\"155101040032707\";L29=\"01\";E30=\"49201\";G30=\"155101040032715\";L30=\"01\";E31=\"49201\";G31=\"155101040032723\";L31=\"01\";E32=\"49201\";G32=\"155101040032731\";L32=\"01\";E33=\"49201\";G33=\"155101040032749\";L33=\"01\";E34=\"49201\";G34="
"\"155101040032756\";L34=\"01\";E35=\"48101\";G35=\"155101040032764\";L35=\"01\";E36=\"48101\";G36=\"155101040032772\";L36=\"01\";E37=\"48101\";G37=\"155101040032780\";L37=\"01\";E38=\"48101\";G38=\"155101101639382\";L38=\"01\";E39=\"31301\";G39=\"155101240004704\";L39=\"01\";E40=\"31301\";G40=\"155101240004712\";L40=\"01\";E41=\"24126\";G41=\"155101240004720\";L41=\"01\";E42=\"31301\";G42=\"155101240004738\";L42=\"01\";E43=\"31301\";G43=\"155101240004746\";L43=\"01\";E44=\"31301\";G44=\""
"155101240004753\";L44=\"01\";E45=\"24126\";G45=\"155101240004761\";L45=\"01\";E46=\"24126\";G46=\"155101240004779\";L46=\"01\";E47=\"31301\";G47=\"155101240004787\";L47=\"01\";E48=\"31301\";G48=\"155101240004795\";L48=\"01\";E49=\"31301\";G49=\"155101240004803\";L49=\"01\";E50=\"24126\";G50=\"155101240004811\";L50=\"01\";E51=\"24126\";G51=\"155101240004829\";L51=\"01\";E52=\"24126\";G52=\"155101240004837\";L52=\"01\";E53=\"31301\";G53=\"155101240004845\";L53=\"01\";E54=\"31301\";G54=\""
"155101240004852\";L54=\"01\"", ENDITEM,
"Name=params", "Value=org.loushang.web.taglib.util.SEARCHINFOCOLUMNS=;org=15500;title=部门间划分帐户关系表;acc=0;submitFlg=1;logOrg=15500;accFlag=1;FirstRec=1;chaxun.x=32;dat=200901;itm=0;accName=0;dpt=0;corporation=S00020070415500;itmFlag=1;dptFlag=1;flag=1;itmName=所有科目;LastRec=50;sureFlag=1;sysFunctionId=;chaxun.y=11;page=1;accNameFlag=1;method=forAccToDptsBr;orgName=济南高新技术产业开发区支行;=", ENDITEM,
LAST);
lr_think_time(14);
web_url("accReportBr.jsp",
"URL=http://10.32.12.153:9080/ccpe/jsp/ccpe/report/accReportBr.jsp?org=15500&method=forAccToDptsBr&accName=&corporation=S00020070415500&itm=0&page=1&acc=&logOrg=15500&logOrg=15500&itmName=%CB%F9%D3%D0%BF%C6%C4%BF&submitFlg=1&sureFlag=1&sysFunctionId=&org.loushang.web.taglib.util.SEARCHINFOCOLUMNS=&dat=200901&dpt=0&chaxun.y=11&title=%B2%BF%C3%C5%BC%E4%BB%AE%B7%D6%D5%CA%BB%A7%B9%D8%CF%B5%B1%ED&chaxun.x=32&reportParamsId=100168&t_i_m_e=1231058056205",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.32.12.153:9080/ccpe/menu.cmd",
"Snapshot=t51.inf",
"Mode=HTTP",
LAST);
web_url("reportServlet_6",
"URL=http://10.32.12.153:9080/ccpe/reportServlet?action=10&file=%2Fcom%2Frunqian%2Freport4%2Finput%2Finput.js",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.32.12.153:9080/ccpe/jsp/ccpe/report/accReportBr.jsp?org=15500&method=forAccToDptsBr&accName=&corporation=S00020070415500&itm=0&page=1&acc=&logOrg=15500&logOrg=15500&itmName=%CB%F9%D3%D0%BF%C6%C4%BF&submitFlg=1&sureFlag=1&sysFunctionId=&org.loushang.web.taglib.util.SEARCHINFOCOLUMNS=&dat=200901&dpt=0&chaxun.y=11&title=%B2%BF%C3%C5%BC%E4%BB%AE%B7%D6%D5%CA%BB%A7%B9%D8%CF%B5%B1%ED&chaxun.x=32&reportParamsId=100168&t_i_m_e=1231058056205",
"Snapshot=t52.inf",
"Mode=HTTP",
LAST);
[
本帖最后由 aprincess 于 2009-1-5 15:21 编辑
]
作者:
aprincess
时间:
2009-1-5 12:54
/* Request with GET method to URL "http://10.32.12.153:9080/ccpe/jsp/ccpe/report/a.html" failed during recording. Server response : 404*/
/* Request with GET method to URL "http://10.32.12.153:9080/ccpe/jsp/ccpe/report/a.html" failed during recording. Server response : 404*/
web_url("reportServlet_7",
"URL=http://10.32.12.153:9080/ccpe/reportServlet?action=10&file=%2Fcom%2Frunqian%2Freport4%2Fview%2Fhtml%2Fscroll.js",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.32.12.153:9080/ccpe/jsp/ccpe/report/accReportBr.jsp?org=15500&method=forAccToDptsBr&accName=&corporation=S00020070415500&itm=0&page=1&acc=&logOrg=15500&logOrg=15500&itmName=%CB%F9%D3%D0%BF%C6%C4%BF&submitFlg=1&sureFlag=1&sysFunctionId=&org.loushang.web.taglib.util.SEARCHINFOCOLUMNS=&dat=200901&dpt=0&chaxun.y=11&title=%B2%BF%C3%C5%BC%E4%BB%AE%B7%D6%D5%CA%BB%A7%B9%D8%CF%B5%B1%ED&chaxun.x=32&reportParamsId=100168&t_i_m_e=1231058056205",
"Snapshot=t53.inf",
"Mode=HTTP",
LAST);
web_url("reportServlet_8",
"URL=http://10.32.12.153:9080/ccpe/reportServlet?action=10&file=%2Fcom%2Frunqian%2Freport4%2Finput%2Fselect.js",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.32.12.153:9080/ccpe/jsp/ccpe/report/accReportBr.jsp?org=15500&method=forAccToDptsBr&accName=&corporation=S00020070415500&itm=0&page=1&acc=&logOrg=15500&logOrg=15500&itmName=%CB%F9%D3%D0%BF%C6%C4%BF&submitFlg=1&sureFlag=1&sysFunctionId=&org.loushang.web.taglib.util.SEARCHINFOCOLUMNS=&dat=200901&dpt=0&chaxun.y=11&title=%B2%BF%C3%C5%BC%E4%BB%AE%B7%D6%D5%CA%BB%A7%B9%D8%CF%B5%B1%ED&chaxun.x=32&reportParamsId=100168&t_i_m_e=1231058056205",
"Snapshot=t54.inf",
"Mode=HTTP",
LAST);
web_url("reportServlet_9",
"URL=http://10.32.12.153:9080/ccpe/reportServlet?action=10&file=%2Fcom%2Frunqian%2Freport4%2Fview%2Fhtml%2FparamForm.js",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.32.12.153:9080/ccpe/jsp/ccpe/report/accReportBr.jsp?org=15500&method=forAccToDptsBr&accName=&corporation=S00020070415500&itm=0&page=1&acc=&logOrg=15500&logOrg=15500&itmName=%CB%F9%D3%D0%BF%C6%C4%BF&submitFlg=1&sureFlag=1&sysFunctionId=&org.loushang.web.taglib.util.SEARCHINFOCOLUMNS=&dat=200901&dpt=0&chaxun.y=11&title=%B2%BF%C3%C5%BC%E4%BB%AE%B7%D6%D5%CA%BB%A7%B9%D8%CF%B5%B1%ED&chaxun.x=32&reportParamsId=100168&t_i_m_e=1231058056205",
"Snapshot=t55.inf",
"Mode=HTTP",
LAST);
lr_end_transaction("save",LR_AUTO);
作者:
aprincess
时间:
2009-1-5 15:19
补充:因为进行查询时用到了润乾的嵌入报表,所以对查询出来的数据可能还需要进行相应增强处理。不知道该如何处理,希望高手多指点!谢谢!
作者:
aprincess
时间:
2009-1-6 12:41
没人回答这个问题吗?
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2