首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >jmeter maven-plugin库管理

jmeter maven-plugin库管理
EN

Stack Overflow用户
提问于 2016-12-07 22:49:41
回答 1查看 424关注 0票数 1

我的pom.xml中有这样的插件配置

代码语言:javascript
复制
    <plugins>
        <plugin>
            <groupId>com.lazerycode.jmeter</groupId>
            <artifactId>jmeter-maven-plugin</artifactId>
            <version>${jmeter.maven.plugin.version}</version>
            <configuration>
                <jmeterExtensions>
                    <artifact>kg.apc:jmeter-plugins-json:2.4</artifact>
                    <artifact>kg.apc:jmeter-plugins-casutg:2.1</artifact>
                </jmeterExtensions>
                <junitLibraries>
                    <artifact>com.microsoft.sqlserver:sqljdbc4:4.0</artifact>
                </junitLibraries>
                <testFilesIncluded>
                    <jMeterTestFile>${tests.include}</jMeterTestFile>
                </testFilesIncluded>
                <jMeterProcessJVMSettings>
                    <xms>2048</xms>
                    <xmx>2048</xmx>
                </jMeterProcessJVMSettings>
                <customPropertiesFiles>
                    <!-- Custom property file -->
                </customPropertiesFiles>
                <propertiesJMeter>
                   <!-- Some properties that I pass into jmeter -->
                </propertiesJMeter>
            </configuration>
            <executions>
                <execution>
                    <id>jmeter-tests</id>
                    <phase>verify</phase>
                    <goals>
                        <goal>jmeter</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

在我运行mvn clean verify之后,我得到了这样的libsat /target/jmeter/lib/

json-path-2.1.0.jar json-path-2.2.0.jar

在日志文件中,我看到jmeter有时会失败,但有这样的异常:

jmeter.extractor.json.jsonpath.JSONPostProcessor: Error processing JSON content in Select Team Name, message:Could not compile inline filter : [?(@.id=="29011")]

请注意,此[?(@.id=="29011")]只是表达式的一部分。完整的表达式看起来像这样:$.teamData[?(@.id=="29011")].name

我希望这个错误以某种方式与这个多个库相关

EN

回答 1

Stack Overflow用户

发布于 2017-12-02 07:08:46

使用该插件的最新版本解决了此问题,如发行说明中所述:

https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/master/CHANGELOG.md

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41020498

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档