加载指定url的web页面(GET请求)
C语言函数
int web_url( const char *StepName, const char *url, , [EXTRARES, ,] LAST );
java语言
int object.url( String stepName, String url, String[] argumentList );
web_url仅在VuGen处于URL-based script或者勾选A script containing explicit URLs only 的HTML-based scripte模式下被录制。(见VuGen的录制选项 Recording Options).
可使用web_url模拟从FTP服务器下载文件。 下载是基于二进制模式完成的,除非指定"FtpAscii=1"
non-HTML-generated资源,如gif,jmagegs. List of Resource Attributes仅在录制选项中设置了Record within the current script step才会被插入。
loadrunner <wbr>脚本开发- <wbr>web_url函数详解
函数适用所有Web脚本,运行于HTTP模式或者无线会话协议(WSP)模式的脚本
List of Attributes
FtpAscii - "1" ,ASCII模式下执行FTP传输,"0" for binary mode.
TargetFrame - 包含当前连接、资源的框架名称。
RecContentType - 录制期间响应应头(RESPONSE header)内容类型(content–type),如 text/html, application/x–javascript。用于判断目标URL是否为一个可录制资源。
Referer - URL引用的页面。
Resource - 一个标识URL是否是资源的值:
0 – URL is not a resource
1 – the URL is a resource
Snapshot - 快照文件(inf extension)的文件名
Mode - 录制级别: HTML or HTTP.