loadrunner----web_get_int_property函数

Action()
{
int size;

lr_start_transaction("download");

web_url("download",

"URL=http://localhost:8080/pinter/file/api/download?id=1",

LAST );

// 获取下载的文件大小
size = web_get_int_property(HTTP_INFO_DOWNLOAD_SIZE);
lr_output_message("下载文件的大小为:%d", size);

if(size >= 500){

lr_end_transaction("download", LR_PASS);

}else{

lr_end_transaction("download", LR_FAIL);

}


return 0;
}

上一篇:Spring 事务


下一篇:Seata Transaction Manager