|
我录制了一个简单的脚本
#include "web_api.h"
Action()
{
web_add_cookie("BAIDUID=D0D107D34637E1112281ED33337B2D98; DOMAIN=www.baidu.com");
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_start_transaction("music");
web_add_cookie("BAIDUID=D0D107D34637E1112281ED33337B2D98; DOMAIN=mp3.baidu.com");
lr_think_time(3 );
web_link("MP3",
"Text=MP3",
"Snapshot=t2.inf",
LAST);
lr_output_message("Think time = %lf",lr_get_transaction_think_time("music"));
lr_end_transaction("music",LR_PASS);
}
可是,我不知道为什么 lr_output_message("Think time = %lf",lr_get_transaction_think_time("music"));
这句话的输出都是Action.c(26): Think time = 0.000000,可是我设置的是3秒哈。请问为什么? |
|