2015-04-28 34 views
0

Jmeter插件似乎无法加载配置选项卡中提供的系统变量。Jmeter插件,不采用属性中提供的密钥库

<plugin> 
      <groupId>com.lazerycode.jmeter</groupId> 
      <artifactId>jmeter-maven-plugin</artifactId> 
      <version>1.4.1</version> 
      <executions> 
       <execution> 
        <id>jmeter-tests</id> 
        <phase>verify</phase> 
        <goals> 
         <goal>jmeter</goal> 
        </goals> 
        <configuration> 
         <propertiesSystem> 
          <javax.net.debug>all</javax.net.debug> 
          <javax.net.ssl.keyStore>${basedir}/src/test/resources/clientKeystoreFin.jks</javax.net.ssl.keyStore> 
          <javax.net.ssl.keyStorePassword>changeit</javax.net.ssl.keyStorePassword> 
          <https.socket.protocols>TLSv1</https.socket.protocols> 
          <sun.security.ssl.allowUnsafeRenegotiation>true</sun.security.ssl.allowUnsafeRenegotiation> 
         </propertiesSystem> 
         <ignoreResultFailures>true</ignoreResultFailures> 
        </configuration> 
       </execution> 
      </executions> 
     </plugin> 

提供这种和执行插件后并没有真正似乎验证密钥库,我不觉得在JMeter的日志中的任何realted日志,我甚至尝试在$ {BASEDIR提供system.properties文件}/src/test/jmeter,如此处所述 https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Modifying-Properties 即使这样也行不通。 使用相同的system.properties文件更改,我可以从jmeter GUI运行。

有人可以帮我指出这里的问题。

+0

我尝试使用此中提供的选项,http://stackoverflow.com/questions/17025703/ssl-client-certificate-in-maven。它也没有帮助我 – Sara

回答

0

原因只是我使用的插件的旧版本。更新到最新的1.10.1,并启用一些日志将在配置以下的 *

<overrideRootLogLevel>DEBUG</overrideRootLogLevel> 
<suppressJMeterOutput>false</suppressJMeterOutput> 
<jmeterLogLevel>DEBUG</jmeterLogLevel> 
  • 现在,我可以清楚地看到在命令提示符下SSL日志在哪里运行Maven的验证和keystore文件被添加。希望这可以帮助那些遇到同样问题的人。
相关问题