|
脚本如下:(但是budgetId=36180bb88966d7db这个值却是在request body里查找的)
lr_rendezvous("分摊");
lr_start_transaction("分摊");
lr_think_time(19);
web_submit_data("getVerStatus.htm",
"Action=http://10.20.92.7:9090/amp.web/ys_007/getVerStatus.htm",
"Method=POST",
"RecContentType=application/json",
"Referer=http://10.20.92.7:9090/amp.web/ys_007/listForPage.htm",
"Snapshot=t36.inf",
"Mode=HTML",
ITEMDATA,
"Name=fkPwId", "Value={PW_Id}", ENDITEM,
"Name=fkActivityId", "Value=89efbd7b64f65447", ENDITEM,
"Name=amount", "Value=10000", ENDITEM,
"Name=fkVerId", "Value=751712ae6bc2b620", ENDITEM,
LAST);
web_submit_data("saveAllDivide.htm",
"Action=http://10.20.92.7:9090/amp.web/ys_007/saveAllDivide.htm",
"Method=POST",
"RecContentType=application/json",
"Referer=http://10.20.92.7:9090/amp.web/ys_007/listForPage.htm",
"Snapshot=t37.inf",
"Mode=HTML",
ITEMDATA,
"Name=budgetArrayJson", "Value=[{fkPwId:\"{PW_Id}\",fkActivityId:\"89efbd7b64f65447\",amount:\"10000\",fkVerId:\"751712ae6bc2b620\"}]", ENDITEM,
"Name=brandId", "Value=10010", ENDITEM,
"Name=verId", "Value=751712ae6bc2b620", ENDITEM,
LAST);
web_submit_data("listForPage.htm_3",
"Action=http://10.20.92.7:9090/amp.web/ys_007/listForPage.htm",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.20.92.7:9090/amp.web/ys_007/listForPage.htm",
"Snapshot=t38.inf",
"Mode=HTML",
ITEMDATA,
"Name=exportFieldName", "Value=nameEn,amount,brandName,activityName,platformName,subPlatformName,startDate,endDate,nameCn,statusName", ENDITEM,
"Name=year", "Value=2015", ENDITEM,
"Name=fkBrandId", "Value=10010", ENDITEM,
"Name=fkVerId", "Value=751712ae6bc2b620", ENDITEM,
"Name=fkPlatformId", "Value=", ENDITEM,
"Name=fkSubPlatformId", "Value=", ENDITEM,
"Name=pwName", "Value={PW_Name}", ENDITEM,
"Name=fkActivityId", "Value=", ENDITEM,
"Name=auditor", "Value=", ENDITEM,
"Name=status", "Value=", ENDITEM,
"Name=budgetTempInput", "Value=10000", ENDITEM,
"Name=pwId", "Value={PW_Id}", ENDITEM,
"Name=activityId", "Value=89efbd7b64f65447", ENDITEM,
"Name=form.cache.save", "Value=1", ENDITEM,
"Name=accordion.flag", "Value=1", ENDITEM,
"Name=exportParam", "Value=", ENDITEM,
"Name=pageParam.pageIndex", "Value=1", ENDITEM,
"Name=pageParam.totalPage", "Value=1", ENDITEM,
"Name=pageFlag", "Value=true", ENDITEM,
"Name=pageParam.disableFlag", "Value=", ENDITEM,
"Name=pageParam.totalCount", "Value=1", ENDITEM,
"Name=pageParam.pageSize", "Value=10", ENDITEM,
LAST);
web_custom_request("ajaxselect.htm_5",
"URL=http://10.20.92.7:9090/amp.web/ajax/ajaxselect.htm",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://10.20.92.7:9090/amp.web/ys_007/listForPage.htm",
"Snapshot=t39.inf",
"Mode=HTML",
"EncType=application/json",
"Body={\"fkBrandId\":{\"key\":\"BRAND\",\"authorityFlag\":\"true\",\"filterDel\":\"true\",\"filterDis\":\"true\",\"isAll\":\"true\",\"subkey\":\"\"},\"fkPlatformId\":{\"authorityFlag\":\"true\",\"key\":\"PLATFORM\",\"keyvalue\":\"10010\",\"fkBrandId\":\"10010\",\"filterDel\":\"true\",\"filterDis\":\"true\",\"isAll\":\"true\",\"subkey\":\"\"},\"fkSubPlatformId\":{\"method\":\"getsubPlatformByPlatformId\",\"authorityFlag\":\"true\",\"key\":\"SUBPLATFORM\",\"keyvalue\":\"\",\"fkPlatformId\":\"\",\""
"filterDel\":\"true\",\"filterDis\":\"true\",\"isAll\":\"true\",\"subkey\":\"\"},\"status\":{\"key\":\"MACRO\",\"authorityFlag\":\"true\",\"filterDel\":\"true\",\"filterDis\":\"true\",\"isAll\":\"true\",\"subkey\":\"COM_AUDIT_FLAG\"},\"year\":{\"method\":\"getYearList\",\"authorityFlag\":\"true\",\"filterDel\":\"true\",\"filterDis\":\"true\",\"isAll\":\"true\"},\"fkVerId\":{\"method\":\"getBgtBigVersionByYearBrand\",\"authorityFlag\":\"true\",\"filterDel\":\"true\",\"filterDis\":\"true\",\"isAll\""
":\"true\",\"year\":\"2015\",\"fkBrandId\":\"10010\"}}",
LAST);
lr_end_transaction("分摊",LR_AUTO);
lr_rendezvous("确认");
lr_start_transaction("确认");
lr_think_time(13);
web_submit_data("confirmBudget.htm",
"Action=http://10.20.92.7:9090/amp.web/ys_007/confirmBudget.htm",
"Method=POST",
"RecContentType=application/json",
"Referer=http://10.20.92.7:9090/amp.web/ys_007/listForPage.htm",
"Snapshot=t40.inf",
"Mode=HTML",
ITEMDATA,
"Name=budgetId", "Value=36180bb88966d7db", ENDITEM, //点击一个按钮才会产生这个budgetId值
LAST);
|
|