loadrunner跑場景時,會出現"HttpSendRequest" failed, Windows error code的錯誤,這個錯誤的出現有兩個原因1.響應時間過長2.勾選了Run-time settings->Internet protocol->preferences->Winlnet replay instead of Sockets選項
第一種原因網上有很多解決方案可以隨便百度
第二種原因是因爲LR sockets默認SSL的版本爲SSL2和SSL3。當錄製https時,如果SSL版本不一致,就會使sockets端口連接失敗,被服務器拒絕連接,因此爲使回放成功,很多人會勾選“winlnet replay instead of sockets(windows only)”。而這個勾選,也就是造成後面報錯的罪魁禍首。
解決方法
在腳本中含有https的前邊添加web_set_sockets_option("SSL_VERSION","TLS");方法
不勾選Winlnet replay instead of Sockets選項