lr函數--web_get_int_property返回上一級請求的狀態

一、函數用途
記錄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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章