关于web_url函数的问题
我看了帮助文档关于web_url的说明:web_url is recorded only when VuGen is in either URL-based recording mode, or in HTML-based recording mode with the A script containing explicit URLs only option checked (see VuGen's Recording Options).当默认使用HTML-based录制时(默认的是选中A script describing user actions),然后录制(比如说录制mercury tour),也可以录制到web_url,但帮助里说要只有选中A scripts containing explicit URLs才会被录制到,这是为什么? 就是说录制内容中包含explicit urls的时候,才可以录制到web_url
回复 #2 jiris 的帖子
??sdlkfj1 嘿嘿,我英语理解错拉~~现在,我也有同样的疑问~~ 是的,我也发现了这个,顶起来关注啊
回复 1# 的帖子
录制出来url信息有什么奇怪的呀 ?基于HTML-based的都可以录制出web_url,而“A scripts containing explicit URLs only”指的是脚本里面只包含URLs类信息。 是吗?明天我去实验下,by 忍 没明白 研究研究了 原帖由 忍忍忍 于 2009-6-9 12:16 发表 http://bbs.51testing.com/images/common/back.gif录制出来url信息有什么奇怪的呀 ?基于HTML-based的都可以录制出web_url,而“A scripts containing explicit URLs only”指的是脚本里面只包含URLs类信息。
不是你说这样的,以下这段脚本是我选择的a script containing explicit URLs only (eg wb_url,web_submit_data)录制的
Action()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_reg_find("Text=jojo",
LAST);
lr_think_time(8);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"TargetFrame=body",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=100820.058971243fVifQDVpHiDDDDDDDVVVfpfQAH", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=0", ENDITEM,
"Name=login.y", "Value=0", ENDITEM,
LAST);
lr_think_time(8);
web_url("SignOff Button",
"URL=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=1",
"TargetFrame=body",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
return 0;
}
从该脚本可以看出,选择该录制方式,里面存在的信息不仅仅只是web_url的信息哦 关注,顶顶更健康
页:
[1]