51Testing软件测试论坛
标题:
loadRunner录制自带的飞机订票系统,代码重复
[打印本页]
作者:
fei446449750
时间:
2015-5-18 14:36
标题:
loadRunner录制自带的飞机订票系统,代码重复
用loadRunner录制自带的飞机订票系统程序,录制后生成的代码有大量重复的,代码如下:
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t67.inf",
"Mode=HTML",
LAST);
web_url("WebTours_2",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t68.inf",
"Mode=HTML",
EXTRARES,
"Url=../favicon.ico", "Referer=", ENDITEM,
LAST);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t69.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=115992.719400567fQzzDHfpfAtVzzzHDfHQipcfDAcf", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=0", ENDITEM,
"Name=login.y", "Value=0", ENDITEM,
LAST);
web_submit_data("login.pl_2",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t70.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=115992.719400567fQzzDHfpfAtVzzzHDfHQipcfDAcf", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=0", ENDITEM,
"Name=login.y", "Value=0", ENDITEM,
LAST);
求大神解答这是为什么?
作者:
土土的豆豆
时间:
2015-5-19 16:15
你record了几次啊?
别告诉我鼠标/键盘坏了
咳咳~应该录制一遍就一次,不会重发个
作者:
骑车去看海
时间:
2016-6-15 10:56
我也遇到过这个,不知道什么原因,都是操作了一次,应该要删除一个才可以。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2