以下是pom文件的相关部分
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>1.8.1</version>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>install</phase>
<goals>
<goal>jmeter</goal>
</goals>
<configuration>
<propertiesUser>
<testData>test.csv</testData>
<threadNum>1</threadNum>
<rampUpPeriodSecs>5</rampUpPeriodSecs>
<loopCount>2</loopCount>
</propertiesUser>
</configuration>
</execution>
</executions>
<configuration>
<testFilesDirectory>test</testFilesDirectory>
<testResultsTimestamp>false</testResultsTimestamp>
</configuration>
</plugin>
当我执行命令时mvn install
;一切正常,propertiesUser
元素中指定的属性设置并工作。
但是当我执行时mvn jmeter:jmeter
,没有设置任何用户属性。我错过了什么吗?