51Testing软件测试论坛
标题:
如何录制影像上传的脚本啊???????
[打印本页]
作者:
perterliu
时间:
2013-1-11 16:27
标题:
如何录制影像上传的脚本啊???????
各位有道高人:
我现在在做一个脚本,就是录制影像。录制是能录制成功,但是回放总是停留在上传的地方。过不去,不知道为什么,不知道有没有做过类似的操作或遇到过类似的问题啊????谢谢
脚本如下:
Action()
{lr_start_transaction("4 设置影像");
//lr_think_time(63);
web_submit_data("com.tplife.gp.image.ImageScanServlet_2",
"Action=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Snapshot=t5.inf",
"Mode=HTTP",
ITEMDATA,
"Name=type", "Value=2", ENDITEM,
"Name=bpCode", "Value=1", ENDITEM,
"Name=imgBigType", "Value=101", ENDITEM,
"Name=sAction", "Value=searchConditionManager", ENDITEM,
LAST);
web_url("com.tplife.gp.util.translate.TranslateCodeServlet",
"URL=http://10.1.29.2/life/servlet/com.tplife.gp.util.translate.TranslateCodeServlet?TABLE_NAME=GP_IMG_TYPE&COL_CODE=IMG_TYPE_ID&COL_DESC=PARENT_ID&CODE=10101",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Snapshot=t6.inf",
"Mode=HTTP",
LAST);
web_url("com.tplife.gp.util.translate.TranslateCodeServlet_2",
"URL=http://10.1.29.2/life/servlet/com.tplife.gp.util.translate.TranslateCodeServlet?TABLE_NAME=GP_IMG_TYPE&COL_CODE=IMG_TYPE_ID&COL_DESC=PARENT_ID&CODE=10101",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Snapshot=t7.inf",
"Mode=HTTP",
LAST);
//lr_think_time(52);
web_url("com.tplife.gp.util.translate.TranslateCodeServlet_3",
"URL=http://10.1.29.2/life/servlet/com.tplife.gp.util.translate.TranslateCodeServlet?TABLE_NAME=GP_IMG_TYPE&COL_CODE=IMG_TYPE_ID&COL_DESC=IMG_TYPE_NAME&CODE=10101",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Snapshot=t8.inf",
"Mode=HTTP",
LAST);
web_url("com.tplife.gp.util.translate.TranslateCodeServlet_4",
"URL=http://10.1.29.2/life/servlet/com.tplife.gp.util.translate.TranslateCodeServlet?TABLE_NAME=(select%20p.img_type_name||'-'||t.img_type_name%20type_name,t.img_type_id%20from%20gp_img_type%20t,gp_img_type%20p%20where%20p.img_type_id=t.parent_id)&COL_CODE=img_type_id&COL_DESC=type_name&CODE=10101",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Snapshot=t9.inf",
"Mode=HTTP",
LAST);
web_url("com.tplife.gp.util.translate.TranslateCodeServlet_5",
"URL=http://10.1.29.2/life/servlet/com.tplife.gp.util.translate.TranslateCodeServlet?TABLE_NAME=(select%20p.img_type_name||'-'||t.img_type_name%20type_name,t.img_type_id%20from%20gp_img_type%20t,gp_img_type%20p%20where%20p.img_type_id=t.parent_id)&COL_CODE=img_type_id&COL_DESC=type_name&CODE=10101",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Snapshot=t10.inf",
"Mode=HTTP",
LAST);
lr_end_transaction("4 设置影像",LR_AUTO);
lr_start_transaction("5 选择影像池");
//lr_think_time(15);
web_submit_data("com.tplife.gp.image.ImageScanServlet_3",
"Action=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Snapshot=t11.inf",
"Mode=HTTP",
ITEMDATA,
"Name=bpCode", "Value=1", ENDITEM,
"Name=imgBigType", "Value=101", ENDITEM,
"Name=imgSmallType", "Value=10101", ENDITEM,
"Name=businessCodeType", "Value=", ENDITEM,
"Name=dividedCodeType", "Value=1", ENDITEM,
"Name=type", "Value=3", ENDITEM,
"Name=sAction", "Value=searchConditionManager", ENDITEM,
LAST);
lr_end_transaction("5 选择影像池",LR_AUTO);
lr_start_transaction("6 质检");
//lr_think_time(11);
web_url("com.tplife.gp.util.translate.TranslateCodeServlet_6",
"URL=http://10.1.29.2/life/servlet/com.tplife.gp.util.translate.TranslateCodeServlet?TABLE_NAME=(select%20page_num,count(*)%20cnt%20from%20gp_img_image%20img%20where%20img.img_type_id='10101'%20and%20img.busi_no='{busi_no}'%20and%20img.busi_no_att%20is%20null%20group%20by%20img.page_num)&COL_CODE=page_num&COL_DESC=cnt&CODE=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Snapshot=t12.inf",
"Mode=HTTP",
LAST);
web_url("com.tplife.gp.util.translate.TranslateCodeServlet_7",
"URL=http://10.1.29.2/life/servlet/com.tplife.gp.util.translate.TranslateCodeServlet?TABLE_NAME=(select%20img_type_id,max(nvl(page_num,0))%20maxPage%20from%20gp_img_image%20img%20where%20img.busi_no='{busi_no}'%20and%20img.busi_no_att%20is%20null%20group%20by%20img_type_id)&COL_CODE=img_type_id&COL_DESC=maxPage&CODE=10101",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageScanServlet",
"Snapshot=t13.inf",
"Mode=HTTP",
LAST);
lr_end_transaction("6 质检",LR_AUTO);
lr_start_transaction("7 影像上传");
//lr_think_time(12);
web_custom_request("com.tplife.gp.image.ImageFunctionServlet",
"URL=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageFunctionServlet?sAction=imageUpload",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t14.inf",
"Mode=HTTP",
"EncType=multipart/form-data; charset=gb2312; boundary=---------------------------7d931c2317039e",
body_variable_1,
LAST);
web_submit_data("com.tplife.gp.image.ImageFunctionServlet_2",
"Action=http://10.1.29.2/life/servlet/com.tplife.gp.image.ImageFunctionServlet?sAction=businessChange",
"Method=POST",
"RecContentType=text/plain",
"Referer=",
"Mode=HTTP",
ITEMDATA,
LAST);
lr_end_transaction("7 影像上传",LR_AUTO);
return 0;
}
作者:
perterliu
时间:
2013-2-18 16:16
难道没人,做过吗?那么强大的一个论坛。。。。。
作者:
perterliu
时间:
2013-7-2 14:13
晕,还真没人做过啊?多么奇怪的一个问题。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2