【发布时间】:2021-10-11 09:18:39
【问题描述】:
我的 pom.xml 看起来像这样:
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>3.4.0</version>
<executions>
<!-- Generate JMeter configuration -->
<execution>
<id>configuration</id>
<goals>
<goal>configure</goal>
</goals>
</execution>
<!-- Run JMeter tests -->
<execution>
<id>jmeter-tests</id>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
<!-- Fail build on errors in test -->
<execution>
<id>jmeter-check-results</id>
<goals>
<goal>results</goal>
</goals>
</execution>
</executions>
<configuration>
<propertiesUser>
<csvPath>${basedir}/src/test/resources/testData.csv</csvPath>
<threads>${threads}</threads>
<rampUp>${rampUp}</rampUp>
</propertiesUser>
<generateReports>true</generateReports>
<propertiesJMeter>
<jmeter.save.saveservice.response_data>true</jmeter.save.saveservice.response_data>
<jmeter.save.saveservice.samplerData>true</jmeter.save.saveservice.samplerData>
<jmeter.save.saveservice.requestHeaders>true</jmeter.save.saveservice.requestHeaders>
<jmeter.save.saveservice.url>true</jmeter.save.saveservice.url>
<jmeter.save.saveservice.responseHeaders>true</jmeter.save.saveservice.responseHeaders>
</propertiesJMeter>
</configuration>
</plugin>
</plugins>
</build>
我也尝试在其中添加其他属性和标签,但没有运气。正在正确获取休息/默认详细信息。
如果我确实需要在其他地方或以其他方式更改属性,请告诉我。
提前致谢!!
【问题讨论】:
标签: jmeter jmeter-maven-plugin