脚本——LoadRunner函数详解之web_url
2018-04-10 11:08
405 查看
定义:加载指定的Web页面(GET请求)
函数形式:web_url( const char *StepName, const char *url, , [EXTRARES, ,] LAST );
示例1:发送一个GET请求至ABC的首页
函数形式:web_url( const char *StepName, const char *url, , [EXTRARES, ,] LAST );
示例1:发送一个GET请求至ABC的首页
web_url("www.abc.com", "URL=http://www.abc.com/", "TargetFrame=", "TargetBrowser=Mercury Technologies", "Resource=0", "RecContentType=text/html", "Snapshot=t1.inf", "Mode=HTML", LAST );123456789示例2:在Referer指定的页面发送一个HTTP请求
web_url("Hit the Slopes and Save", "URL=http://www.saleserver.com/American?BV_EngineID=fm_ski_sale_fall00guest.html", "TargetFrame=Main", "Resource=0", "RecContentType=text/html", "Referer=http://www.saleserver.com/American?BV_Operation= Dyn_Frame&..main–guest.tmpl", "Snapshot=t3.inf", "Mode=HTML", LAST ); 12345678910示例3:下载示例
web_url("Games", "URL=ftp://joe:secret@mygames.com/games/archive/loderunner.exe", "FtpAscii=1", LAST ); 1234示例4:登录Secure站点
web_url("Login", "URL=https://secure.computing.com/scripts/login.asp? user=(username)&session={ssid}", "RecContentType=text/html", LAST ); 12345示例5:List of Resource Attributes的使用
web_reg_save_param("extrares_11", "LB/IC=<img src=\"", "RB=\"", "Ord=11", LAST ); web_url("web_url", "URL=http://lazarus/html/links.html", "TargetFrame=", "Resource=0", "Referer=", "Mode=HTTP", EXTRARES, "URL={extrares_11}", ENDITEM, LAST );
相关文章推荐
- loadrunner Web_类函数之web_url()
- LoadRunner函数详解之web_custom_request
- LoadRunner函数详解之web_reg_save_param_ex
- Loadrunner测试json接口实例以及 web_custom_request 函数详解
- 脚本——web_custom_request函数详解
- web_url函数详解
- Loadrunner测试json接口实例以及 web_custom_request 函数详解
- Loadrunner web_url函数学习(转贴)
- LoadRunner函数详解之web_reg_save_param
- 脚本——LoadRunner文件操作函数详解
- loadrunner函数之web_url,web_submit_data参数
- Loadrunner测试json接口实例以及 web_custom_request 函数详解
- loadrunner Web_类函数之web_custom_request()
- loadrunner中web_url()的想法
- web报表工具FineReport最经常用到部分函数详解
- web_url函数
- 彻底抛弃脚本录制,LR脚本之使用web_custom_request函数自定义http请求
- Loadrunner常用函数详解(二)
- 利用web_custom_request函数来替代传统http/html的性能脚本 [ 光影人像 东海陈光剑 的博客 ]