51Testing软件测试论坛

标题: 请教参数化问题 [打印本页]

作者: wsryyffs    时间: 2006-1-16 19:22
标题: 请教参数化问题
NewParam和NewParam_3需要从数据库取数据,sql脚本如下
select flow_no,workitem_ins_id
from rt_workiteminst a,BUS_SER_COMPLAIN b
where a.current_state=1 and a.user_name = 'test'
and a.PROC_INSTANCE_ID=b.PROC_ID
order by b.flow_no
loadrunner脚本如下
web_link("{NewParam}",
                "Text={NewParam}",
                "Snapshot=t7.inf",
                EXTRARES,
                "Url=stylesheet/blue_style/images/head_bg1.gif", "Referer=http://192.168.217.187:8080/webbusiness/direction.do?wid={{NewParam_3}}", ENDITEM,
                "Url=stylesheet/blue_style/images/logo.gif", "Referer=http://192.168.217.187:8080/webbusiness/direction.do?wid={NewParam_3}", ENDITEM,
                "Url=stylesheet/blue_style/images/line1.gif", "Referer=http://192.168.217.187:8080/webbusiness/direction.do?wid={NewParam_3}", ENDITEM,
                "Url=stylesheet/blue_style/images/tab3.gif", "Referer=http://192.168.217.187:8080/webbusiness/direction.do?wid={NewParam_3}", ENDITEM,
                 "Url=stylesheet/blue_style/images/tab4.gif", "Referer=http://192.168.217.187:8080/webbusiness/direction.do?wid={NewParam_3}", ENDITEM,
                "Url=stylesheet/blue_style/images/tab2.gif", "Referer=http://192.168.217.187:8080/webbusiness/direction.do?wid={NewParam_3}", ENDITEM,
                "Url=stylesheet/blue_style/images/line3.gif", "Referer=http://192.168.217.187:8080/webbusiness/direction.do?wid={NewParam_3}", ENDITEM,
                "Url=stylesheet/blue_style/images/line2.gif", "Referer=http://192.168.217.187:8080/webbusiness/direction.do?wid={NewParam_3}", ENDITEM,
                LAST);

现在存在flow_no相同但workitem_ins_id 不同的记录,但相同的记录中有一条执行不成功(但loadrunner提示成功)。该脚本实现选择如OA的代办件。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2