1

私は自分の中にそのようなプラグイン構成を持っています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>

私が実行した後、私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

このエラーは、この複数のライブラリに何らかの形で関連していると思います

4

1 に答える 1