lr函数--web_get_int_property返回上一级请求的状态
2015-06-22 18:49
246 查看
一、函数用途
记录http响应的信息
二、函数属性
1.http_info_return_code: 返回http代码
2.http_info_download_size:返回页面字节数
3.http_info_download_time:返回页面下载时间
三、例子
The following example uses the web_get_int_property function
to check if the Vuser successfully accessed the dogbert home page.
TEST()
{
int HttpRetCode;
web_url("dogbert",
"URL=http://dogbert",
"TargetFrame=_TOP",
LAST);
HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE);
if (HttpRetCode == 200)
lr_log_message("The Vuser successfully accessed the Dogbert home page");
else
lr_log_message("The Vuser failed to access the Dogbert home page ");
}
记录http响应的信息
二、函数属性
1.http_info_return_code: 返回http代码
2.http_info_download_size:返回页面字节数
3.http_info_download_time:返回页面下载时间
三、例子
The following example uses the web_get_int_property function
to check if the Vuser successfully accessed the dogbert home page.
TEST()
{
int HttpRetCode;
web_url("dogbert",
"URL=http://dogbert",
"TargetFrame=_TOP",
LAST);
HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE);
if (HttpRetCode == 200)
lr_log_message("The Vuser successfully accessed the Dogbert home page");
else
lr_log_message("The Vuser failed to access the Dogbert home page ");
}
lr函数--web_get_int_property
相关文章推荐
- IAR EWARM __iar_program_start, __iar_data_init3, __iar_copy_init3, __iar_zero_init3
- Unable to load configuration. - bean - jar:file:/E:/tomcat/lib/struts...
- 用nohup命令让Linux下程序永远在后台执行
- H264 编解码器架构简单
- linux sun/awt/X11GraphicsEnvironment
- Tips & Tricks:Apache log4j简明教程(一)
- 解决使用GOOGLE字体网站访问慢的问题
- centos 6.5 安装桌面环境
- 搬移网站程序到不同服务器的操作流程
- Linux C和MySQL数据库写的一个“电话本管理程序”
- Linux的inode的理解
- setsockopt角色
- 改变了Tomcat路径后无法卸载和重装的解决办法
- 每天收获一点点------Hadoop概述
- 尽量使用translate而不是改变top/left进行动画(翻译)
- 网站搭建之html
- 如何在 CentOS 7 上安装 Percona服务器
- adb shell 命令详解
- 解决Nginx的connect() to 127.0.0.1:8080 failed (13: Permission denied) while connect
- linux中的/ect/group和/ect/passwd文件格式