我在Ubuntu 18.04上使用Firefox记录JMeter场景。 我无法访问HTTPS页面:Firefox返回 SSL_ERROR_RX_RECORD_TOO_LONG 错误。
在Firefox中,我侦听8080端口,设置了JMeter生成的临时证书。
当我尝试访问HTTPS页面时,我在 File "./main.py", line 16, in <module>
send_incident(payload)
File "/usr/src/app/pagerduty_functions.py", line 50, in send_incident
data = json.dumps(payload))
File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 116, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 301, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 159, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 70, in create_connection
sock.connect(sa)
文件中收到此错误:
jmeter.log
是否需要修改某些内容才能访问HTTPS页面?
答案 0 :(得分:0)
下面是一个链接,其中包含一些可以尝试的方法: https://windowsreport.com/fix-ssl_error_rx_record_too_long-firefox-error/
但是,如果您已经尝试过此方法。然后,尝试将浏览器更改为其他浏览器,例如chrome。
答案 1 :(得分:0)
使用Jmeter录制脚本时,您可能会遇到几个问题。
我宁愿建议使用Blazemeter Recording Extension记录您的方案,然后以.jmx格式导出并使用jmeter进行修改。