Loadrunner异常汇总
Start HP Web Tours Server启动异常
http://127.0.0.1:1080/WebTours/
starting the webtours apache server...
press CTRL-C or close the window to exit :)
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 169.254.188.171 for ServerName
(OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。 : make_sock: could not bind to address 0.0.0.0:1080
no listening sockets available, shutting down
Unable to open logs
解决办法:
找到安装目录D:\Program Files (x86)\HP\LoadRunner\WebTours\conf
找到ServerName localhost:1080将前面#删掉
继续启动还是报错
starting the webtours apache server...
press CTRL-C or close the window to exit :)
(OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。 : make_sock: could not bind to address 0.0.0.0:1080
no listening sockets available, shutting down
Unable to open logs
解决办法:
安装Loadrunner12.0.2之后需重启电脑
web services脚本异常
Action.c(11): Error:HTTP status code 400 returned by the server
Action.c(11): Error:SOAP request “SOAP Request” execution failed
原因:中文转成lr编码后,需要保存一下参数再使用
解决办法:
// 方式一:带参数化
lr_convert_string_encoding(lr_eval_string("{cityname}"),NULL,"utf-8","cityname"); //参数化中文转换成lr的编码
lr_save_string(lr_eval_string("{cityname}"),"city_name"); // 把cityname保存给city_name
//方式二:不带参数化
lr_convert_string_encoding("深圳",NULL,"utf-8","cityname"); // 将中文utf-8转换成lr的编码
lr_save_string(lr_eval_string("{cityname}"),"city_name"); // 把cityname保存给city_name
参数接收的值超过边界值
Action.c(10): Error -26377: No match found for the requested parameter “response”. Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
解决办法:
web_set_max_html_param_len("66666");
// response接收返回值超出边界值,就在这里前面添加以上代码
web_reg_save_param_ex(
"ParamName=response",
"LB=<?xml version=\"1.0\" encoding=\"utf-8\"?>",
"RB=,",
"Ordinal=ALL", // ALL输出一个数组
LAST);
或使用
web_reg_save_param("Cookie",
"LB=set-cookie: ",
"RB=; Path=/omp;",
"Search=All",
LAST);
场景运行中,通过事务窗口显示多个事务怎么办?
解决办法:修改运行时设置,取消勾选