Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jmeter maven插件库管理_Maven_Jmeter_Jmeter Maven Plugin - Fatal编程技术网

jmeter maven插件库管理

jmeter maven插件库管理,maven,jmeter,jmeter-maven-plugin,Maven,Jmeter,Jmeter Maven Plugin,我的pom.xml中有这样的插件配置 <plugins> <plugin> <groupId>com.lazerycode.jmeter</groupId> <artifactId>jmeter-maven-plugin</artifactId> <version>${jmeter.maven.plugin.versi

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

    <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>

com.lazerycode.jmeter
jmetermaven插件
${jmeter.maven.plugin.version}
kg.apc:jmeter插件json:2.4
kg.apc:jmeter插件CAUSTG:2.1
sqlserver:sqljdbc4:4.0
${tests.include}
2048
2048
jmeter测试
验证
性能测试
运行
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:处理Select团队名称中的json内容时出错,消息:无法编译内联筛选器:[?(@.id==“29011”)]

请注意,这个
[?(@.id==“29011”)]
只是表达式的一部分。完整表达式类似于此:
$.teamData[?(@.id==“29011”)].name


我希望此错误与此多个lib有关,请使用解决此问题的插件的最新版本,如发行说明中所述:


您不能切换到使用最新插件的JMeter吗?因为JMeter 3带有内置的JSON提取器(使用JSON-path-2.2.0),而且JMeter maven plugin version>2.0支持JMeter 3,所以您不需要插件,也不会有版本冲突,也许他没有时间/精力写出符合质量标准的详细答案,或者他留下评论为提问者指出正确的方向。是的,我不认为这有什么问题。谢谢。@KirilS.,我试图删除所有
jmeterExtensions
,结果我发现
jmeter插件json
中缺少的
JSONPathExtractor
异常。我不能确切地说它在哪里使用。但是在我的测试中,我有很多jsonPath后处理器。你有哪个版本的JMeter?@KirilS.,我使用'2.0.3'版本的maven插件,这个插件使用JMeter3