Loadrunner异常汇总

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);

场景运行中,通过事务窗口显示多个事务怎么办?

在这里插入图片描述
解决办法:修改运行时设置,取消勾选
在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值