1

プロジェクト構造は src/test/jmeter/regressionTests/jmx1,jmx2,jmx2 です。regressionTests フォルダーには異なる jmx ファイルがあります。これらのファイルは並行して実行できます (相互に依存関係はありません。各 jmx ファイルは独自のデータを作成し、最後に作成されたデータを削除します)。

現在、maven コマンドを使用して実行しています。

-Pprofile-jmeter jmeter:jmeter -DtestType=regressionTest -DskipTests=true

pom.xml 構成は次のとおりです。

<profiles>
        <profile>
            <id>profile-jmeter</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.lazerycode.jmeter</groupId>
                        <artifactId>jmeter-maven-plugin</artifactId>
                        <version>1.10.1</version>
                        <executions>
                            <execution>
                                <id>run-jmeter-tests</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>jmeter</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <testFilesDirectory>${basedir}/src/test/jmeter/scripts/${testType}</testFilesDirectory>
                            <overrideRootLogLevel>ERROR</overrideRootLogLevel>
                            <testResultsTimestamp>false</testResultsTimestamp>
                            <resultsFileFormat>xml</resultsFileFormat>

jmxファイルが並行して実行されるように、pom.xmlのmavenコマンドまたはmaven構成に追加できるものはありますか?

4

2 に答える 2

0

Maven を複数回呼び出すことができます。それぞれが個別のプロセスを実行します。

于 2016-04-19T16:44:23.587 に答える
0

テスト実行をフォークできるはずです。JMeterでこれを試したことはありません。実行可能のようです。以下のリンクを確認してください。

http://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html

于 2016-04-20T07:33:12.003 に答える