51Testing软件测试论坛
标题:
这种情况需要关联吗?
[打印本页]
作者:
liuquan_mvs
时间:
2009-12-2 17:10
标题:
这种情况需要关联吗?
接手一个测试,要求进行网上申报的压力测试
录下脚本后,运行没报错,但发现后台并没有收到新增的申报信息,所以怀疑有些地方需要关联。
自动关联没有提示需要关联的地方,对比了一下2次录制的脚本,发现有差别的地方如下红色标识出:
这种情况需要做关联吗,如果不需要,那么为什么提交信息没有成功?如果需要,又该怎样关联呢?
希望高手指教
lr_rendezvous("网上申报");
lr_start_transaction("网上申报");
web_url("zwzt_11_1.gif_4",
"URL=http://10.99.1.147/kxptweb/images/zwzt_11_1.gif",
"Resource=1",
"Referer=http://10.99.1.147/kxptweb/govServices/webOffice/network.jsp",
LAST);
web_custom_request("isContainChildGuid.jsp",
"URL=http://10.99.1.147/kxptweb/govServices/webOffice/isContainChildGuid.jsp?",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.99.1.147/kxptweb/govServices/webOffice/network.jsp",
"Snapshot=t7.inf",
"Mode=HTML",
"Body=&approveGuid={BFA8000A-FFFF-FFFF-A622-A51A00000001}",
LAST);
web_custom_request("isShenBao.jsp",
"URL=http://10.99.1.147/kxptweb/govServices/webOffice/isShenBao.jsp?",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.99.1.147/kxptweb/govServices/webOffice/network.jsp",
"Snapshot=t8.inf",
"Mode=HTML",
"Body=&approveGuid={BFA8000A-FFFF-FFFF-A622-A51A00000001}",
LAST);
web_url("main.jsp",
"URL=http://10.99.1.147/kxptweb/wssb/main.jsp?guid={BFA8000A-FFFF-FFFF-A622-A51A00000001}",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t9.inf",
"Mode=HTML",
EXTRARES,
"URL=img/left_coi.gif", "Referer=http://10.99.1.147/kxptweb/wssb/main.jsp?guid={BFA8000A-FFFF-FFFF-A622-A51A00000001}", ENDITEM,
LAST);
web_url("gettemplate.jsp",
"URL=http://10.99.1.147/engine/gettemplate.jsp?temp_Id=124&guid={BFA8000A-FFFF-FFFF-A622-A51A00000001}",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.99.1.147/kxptweb/wssb/main.jsp?guid={BFA8000A-FFFF-FFFF-A622-A51A00000001}",
"Snapshot=t10.inf",
"Mode=HTML",
LAST);
web_submit_form("postdata.jsp",
"Snapshot=t11.inf",
ITEMDATA,
"Name=applyYear", "Value=test001", ENDITEM,
"Name=afi_acceptNo", "Value=test001", ENDITEM,
"Name=afi_ProjectName", "Value=test001", ENDITEM,
"Name=liangxiren2", "Value=test001", ENDITEM,
"Name=lianxidianhua2", "Value=test001", ENDITEM,
"Name=shouji2", "Value=test001", ENDITEM,
"Name=afi_DECLARERLXR", "Value=test001", ENDITEM,
"Name=afi_DECLARERTEL", "Value=test001", ENDITEM,
"Name=afi_DECLARERMOBILE", "Value=test001", ENDITEM,
"Name=afi_DEPARTMENTNAME1", "Value=test001", ENDITEM,
"Name=danweimingcheng3", "Value=", ENDITEM,
"Name=danweidizhi", "Value=test001", ENDITEM,
"Name=danweiwangzhi", "Value=", ENDITEM,
"Name=dianziyouxiang", "Value=test001@163.com", ENDITEM,
"Name=chuanzhen", "Value=", ENDITEM,
"Name=year", "Value=2009", ENDITEM,
"Name=month", "Value=11", ENDITEM,
"Name=day", "Value=19", ENDITEM,
"Name=chargeName", "Value=", ENDITEM,
"Name=principal1", "Value=", ENDITEM,
LAST);
web_url("gettemplate.jsp_2",
"URL=http://10.99.1.147/engine/gettemplate.jsp?temp_Id=124&guid={BFA8000A-FFFF-FFFF-A622-A51A00000001}&edittype=1&querystring=afi.Guid='
{0A630093-0000-0000-099C-1B5800000035}
'",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.99.1.147/kxptweb/wssb/main.jsp?guid={BFA8000A-FFFF-FFFF-A622-A51A00000001}",
"Snapshot=t12.inf",
"Mode=HTML",
LAST);
web_url("submitapp.jsp",
"URL=http://10.99.1.147/kxptweb/enterprise/submitapp.jsp?guid
={0A630093-0000-0000-099C-1B5800000035}
",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t13.inf",
"Mode=HTML",
LAST);
web_add_cookie("AJSTAT_ok_pages=29; DOMAIN=10.99.1.147");
web_url("network.jsp_2",
"URL=http://10.99.1.147/kxptweb/govServices/webOffice/network.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.99.1.147/default.jsp",
"Snapshot=t14.inf",
"Mode=HTML",
EXTRARES,
"URL=/kxptweb/images/favorite.gif", ENDITEM,
"URL=/kxptweb/swf/banner6.swf", ENDITEM,
"URL=/kxptweb/images/zw_menu_bg.gif", ENDITEM,
"URL=/kxptweb/images/zw_login_bg.gif", ENDITEM,
"URL=/kxptweb/images/bottom_copy_bg.gif", ENDITEM,
"URL=/kxptweb/images/zwzt_11_1.gif", ENDITEM,
LAST);
web_url("go.asp_4",
"URL=http://web.51.la/go.asp?svid=20&id=2032198&tpages=29&ttimes=5&tzone=8&tcolor=32&sSize=1024,768&referrer=http%3A//10.99.1.147/default.jsp&vpage=http%3A//10.99.1.147/kxptweb/govServices/webOffice/network.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.99.1.147/kxptweb/govServices/webOffice/network.jsp",
"Mode=HTML",
LAST);
lr_end_transaction("网上申报", LR_AUTO);
return 0;
}
作者:
chare
时间:
2009-12-4 12:29
你给的2个不同的。从字面意思看一个是取模板,一个是提交
感觉应该是选取一个模板,然后提交
感觉没看到session的部分啊,是不是没有录制到。你换个方式录制下。(BS的有两种方式)
话说回来
你那个不一样的有点变态
居然加密过的。
到时候如果真是需要关联的话,自己还要导入这个加密的函数,神保佑你。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2