|
目前测试https的登录,登录是成功的。但是没有吧cookies报错下来,导致接下来的步骤都是失败的。如下图,返回200成功,但是token中的cookies没有,http模式应该是有的。
之前用的解决方法:
认为是https加密导致的问题,但是不明白具体的原因所在。
用百度了下测试https的方法,用以下的SSL Manager尝试了。
结果:
用SSL Manager,导入证书。证书有几种:*.cer ,*.jks,还有用keytool生成了truststore.keystore。
导入后,输入密码。
但是还是没有token的值。
查看日志:
2015/08/20 15:01:47 INFO - jmeter.util.SSLManager: JmeterKeyStore Location: D:/truststore.keystore type JKS
2015/08/20 15:01:47 INFO - jmeter.util.SSLManager: KeyStore created OK
2015/08/20 15:01:48 ERROR - jmeter.util.SSLManager: Problem loading keystore: No key(s) found java.io.IOException: No key(s) found
at org.apache.jmeter.util.keystore.JmeterKeyStore.load(JmeterKeyStore.java:151)
at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:133)
at org.apache.jmeter.util.JsseSSLManager.createContext(JsseSSLManager.java:234)
at org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:196)
at org.apache.jmeter.util.HttpSSLProtocolSocketFactory.getSSLSocketFactory(HttpSSLProtocolSocketFactory.java:103)
at org.apache.jmeter.util.HttpSSLProtocolSocketFactory.createSocket(HttpSSLProtocolSocketFactory.java:183)
或者就是no finder
求大神能解答疑惑。
1、获取不到token的原因?
2、Jmeter SSL Manager 的配置方法。
system.properties 下面如何怎么设置
# SSL properties (moved from jmeter.properties)
#
# See http://download.oracle.com/javas ... .html#Customization
# for information on the javax.ssl system properties
# Truststore properties (trusted certificates)
#javax.net.ssl.trustStore=/path/to/[jsse]cacerts
#javax.net.ssl.trustStorePassword
#javax.net.ssl.trustStoreProvider
#javax.net.ssl.trustStoreType [default = KeyStore.getDefaultType()]
# Keystore properties (client certificates)
# Location
#javax.net.ssl.keyStore=.keystore
javax.net.ssl.keyStore=D:/truststore.keystore
#
#The password to your keystore
#javax.net.ssl.keyStorePassword=changeit
javax.net.ssl.keyStorePassword=Willrey9455739
#
#javax.net.ssl.keyStoreProvider
#javax.net.ssl.keyStoreType [default = KeyStore.getDefaultType()]
万分感谢!寻求帮助!
|
|