我正在使用 jmeter-maven-plugin 使用 JMX 文件运行性能测试:
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>1.9.0</version>
<dependencies>
<dependency>
<groupId>com.gemalto.pse.pim</groupId>
<artifactId>pim-ws-client</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>verify</phase>
<goals>
<goal>jmeter</goal>
</goals>
<configuration>
<testFilesIncluded>
<jMeterTestFile>file_1.jmx</jMeterTestFile>
<jMeterTestFile>file_2.jmx</jMeterTestFile>
</testFilesIncluded>
</configuration>
</execution>
</executions>
</plugin>
JMX 文件 file_1.jmx 在调用 Web 服务的类中执行方法,如下所示:
final String ENDPOINT_ADDRESS = "http://10.256.45.147:8080/service-ejb/ServiceClass?wsdl";
final QName SERVICE_NAME = new QName(
"http://service.tools.com/", "ServiceClassService");
javax.xml.ws.Service service = javax.xml.ws.Service.create(
new URL(ENDPOINT_ADDRESS), SERVICE_NAME);
IServiceClass myService = dataFinderService.getPort(IServiceClass.class);
问题是Jmeter插件在执行file_1.jmx时被阻塞并且不处理file_2.jmx,进程被阻塞在:
IServiceClass myService = dataFinderService.getPort(IServiceClass.class);
当我取消执行(键入 Ctrl+C)时,进程继续,Jmeter-maven-plugin 生成输出报告文件
有人遇到过这个问题吗?...提前非常感谢:)