lr使用linux Generator测试https莫名报 SSL protocol error when attempting to connect with host

Posted 赖荣生

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了lr使用linux Generator测试https莫名报 SSL protocol error when attempting to connect with host相关的知识,希望对你有一定的参考价值。

  接收一个性能测试任务,各种原因需要使用linux agent产生压力。诡异的事发生了,同样脚本windows回放成功,使用linux agent报如下错误,脚本回放失败。

Action.c(33): Error -27778: SSL protocol error when attempting to connect with host "xxx.xxx.xxx" 

   各种查找原因:

  方法1:lr设置如下,无效因为只在windows生效linux根本不起作用

runtime setting -> Internet protocol->perference 选中 WinINet replay instead of sockets

  方法2:在脚本添加如下内容,无效因为此命令只是告诉lr使用ssl版本

web_set_sockets_option("SSL_VERSION","TLS");

  方法3:根据错误提示修改各种ssl版本,F1后根据文档修改“The SSL version preferences 2, 3, 2 and 3, TLS.”,依然无效

  方法4:怀疑 nginx ssl配置问题,乱加了一通依然无效

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

  一通乱搞已经半天过了去,没办法只能放弃直接压力80。

 

 

  

 

以上是关于lr使用linux Generator测试https莫名报 SSL protocol error when attempting to connect with host的主要内容,如果未能解决你的问题,请参考以下文章

性能测试工具LoadRunner08-LR之Virtual User Generator 检查点

性能测试工具LoadRunner06-LR之Virtual User Generator 事务(Transaction)

性能测试工具LoadRunner12-LR之Virtual User Generator 脚本编写验证步骤

loadrunner运行负载测试时一直提示:Load Generator 名称无效; Load Generator 不存在。

lr负载

LR http 接口测试模板