Loadrunner之API测试
//API函数
web_submit_data
web_custom_request
//支持https请求
web_set_sockets_option("SSL_VERSION","TLS");
//豆瓣接口为例:
for (i=0;i<3;i++) {
lr_start_transaction("搜索图书");
web_submit_data("web_submit_data",
"Action=https://api.douban.com/v2/book/search?q=java",
"Method=GET",
"TargetFrame=",
"Referer=",
ITEMDATA,
LAST);
lr_end_transaction("搜索图书", LR_AUTO);
}