51Testing软件测试论坛

标题: Http代理服务器录制不生成脚本报错(审核不通过能给原因吗) [打印本页]

作者: xtt77590    时间: 2019-8-22 16:22
标题: Http代理服务器录制不生成脚本报错(审核不通过能给原因吗)
审核不通过为啥?关于审核是否通过有没有规则?
按步骤设置,录制一个系统的登录脚本,日志如下:
2019-08-22 15:48:05,788 INFO o.a.j.p.h.p.ProxyControl: Valid alias found for :root_ca:
2019-08-22 15:48:05,789 INFO o.a.j.p.h.p.ProxyControl: Valid alias found for :intermediate_ca:
2019-08-22 15:48:05,789 INFO o.a.j.p.h.p.Daemon: Creating Daemon Socket on port: 8888
2019-08-22 15:48:05,790 INFO o.a.j.p.h.p.Daemon: Test Script Recorder up and running!
2019-08-22 15:48:14,093 INFO o.a.j.p.h.p.ProxyControl: [47450]  Creating entry hao.360.cn in D:\ProgramFiles\apache-jmeter-5.1.1\bin\proxyserver.jks
2019-08-22 15:48:14,925 ERROR o.a.j.p.h.p.Proxy: [47450]  Problem with keystore
java.io.IOException:   >> keytool 错误: java.lang.RuntimeException: java.io.IOException: DNSName components must begin with a letter <<
Command failed, code: 1
'keytool -genkeypair -alias hao.360.cn -dname "cn=hao.360.cn, o=JMeter Proxy (TEMPORARY TRUST ONLY)" -keyalg RSA -keystore proxyserver.jks -storepass {redacted} -keypass {redacted} -validity 7 -ext san=dns:hao.360.cn'
        at org.apache.jorphan.exec.KeyToolUtils.genkeypair(KeyToolUtils.java:173) ~[jorphan.jar:5.1.1 r1855137]
        at org.apache.jorphan.exec.KeyToolUtils.generateSignedCert(KeyToolUtils.java:287) ~[jorphan.jar:5.1.1 r1855137]
        at org.apache.jorphan.exec.KeyToolUtils.generateHostCert(KeyToolUtils.java:278) ~[jorphan.jar:5.1.1 r1855137]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.updateKeyStore(ProxyControl.java:1608) ~[ApacheJMeter_http.jar:5.1.1 r1855137]
        at org.apache.jmeter.protocol.http.proxy.Proxy.getSSLSocketFactory(Proxy.java:327) [ApacheJMeter_http.jar:5.1.1 r1855137]
        at org.apache.jmeter.protocol.http.proxy.Proxy.startSSL(Proxy.java:432) [ApacheJMeter_http.jar:5.1.1 r1855137]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:194) [ApacheJMeter_http.jar:5.1.1 r1855137]
2019-08-22 15:48:14,926 WARN o.a.j.p.h.p.Proxy: [47450]  Unable to negotiate SSL transaction, no keystore?
2019-08-22 15:48:14,926 ERROR o.a.j.p.h.p.Proxy: [47450]  Exception when processing sample
java.io.IOException: Unable to negotiate SSL transaction, no keystore?
        at org.apache.jmeter.protocol.http.proxy.Proxy.startSSL(Proxy.java:449) ~[ApacheJMeter_http.jar:5.1.1 r1855137]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:194) [ApacheJMeter_http.jar:5.1.1 r1855137]
2019-08-22 15:48:14,927 WARN o.a.j.p.h.p.Proxy: [47450]  Exception while writing error
java.net.SocketException: Connection reset by peer: socket write error
        at java.net.SocketOutputStream.socketWrite0(Native Method) ~[?:1.8.0_202]
        at java.net.SocketOutputStream.socketWrite(Unknown Source) ~[?:1.8.0_202]
        at java.net.SocketOutputStream.write(Unknown Source) ~[?:1.8.0_202]
        at java.io.DataOutputStream.writeBytes(Unknown Source) ~[?:1.8.0_202]
        at org.apache.jmeter.protocol.http.proxy.Proxy.writeErrorToClient(Proxy.java:563) [ApacheJMeter_http.jar:5.1.1 r1855137]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:261) [ApacheJMeter_http.jar:5.1.1 r1855137]
2019-08-22 15:48:45,666 INFO o.a.j.p.h.p.Daemon: HTTP(S) Test Script Recorder stopped



作者: lsekfe    时间: 2019-8-22 16:36
主要您之前的链接中有公众号出现.
作者: xtt77590    时间: 2019-8-22 16:38
https://www.cnblogs.com/niunai/p/11078879.html
Jmeter5.1 按这个帖子操作的,结果就是没有任何脚本,不知道问题出在哪?新手一片茫然,望大家给指明一下....

作者: xtt77590    时间: 2019-8-22 16:53
关贴,问题解决了。没找到可以删帖的操作..........




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2