loadrunner获取token并用于其他请求
设置抓取的最大长度
web_set_max_html_param_len("999999");
设置关联函数抓取token,LB 设置左边界,RB设置右边界
web_reg_save_param("Auth","LB=Authorization: ","RB=\r\n","Search=All",LAST);
输出抓取的内容,
lr_output_message(lr_eval_string("{Auth}"));
将token设置作用于脚本中的全部的请求
web_add_auto_header("Authorization","{Auth}");