2015-09-25 4 views
0

Я использую jmeter-graph-maven-plugin в maven для генерации отчетов графа. я сконфигурировал плагин, чтобы принимать в качестве входных одиночных файлов jtl в каждом исполнении, но после запуска только первый входной файл генерирует отчеты в первом выполнении. Оставшееся выполнение с файлами jtl не создает никаких графиков. Ниже приведена моя конфигурация плагина в файле pom.Невозможно генерировать график jmeter для нескольких входных файлов jtl-файлов

<plugin> 
<groupId>de.codecentric</groupId> 
    <artifactId>jmeter-graph-maven-plugin</artifactId> 
    <version>0.1.0</version> 
    <executions> 
     <execution> 
     <id>create-graphs-1</id> 
     <goals> 
      <goal>create-graph</goal> 
     </goals> 
     <phase>verify</phase> 
     <configuration> 
      <inputFile>${project.build.directory}/jmeter/results/catlyst2-10users.jtl</inputFile> 
      <graphs> 
      <graph> 
       <pluginType>ThreadsStateOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ThreadsStateOverTime-10user.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseTimesOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseTimesOverTime-10user.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>TransactionsPerSecond</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/TransactionsPerSecond-10user.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>HitsPerSecond</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/HitsPerSecond-10user.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>BytesThroughputOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/BytesThroughputOverTime-10user.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>LatenciesOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/LatenciesOverTime-10user.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseCodesPerSecond</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseCodesPerSecond-10user.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseTimesDistribution</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseTimesDistribution-10user.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseTimesPercentiles</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseTimesPercentiles-10user.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>TimesVsThreads</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/TimesVsThreads-10user.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ThroughputVsThreads</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ThroughputVsThreads-10user.png</outputFile> 
      </graph> 
      </graphs> 
     <processAllFilesFound>true</processAllFilesFound> 
     </configuration> 
     </execution> 
      <execution> 
       <id>create-graphs-2</id> 
        <configuration> 
         <inputFile>${project.build.directory}/jmeter/results/catlyst2-20users.jtl</inputFile> 
      <graphs> 
      <graph> 
       <pluginType>ThreadsStateOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ThreadsStateOverTime-20users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseTimesOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseTimesOverTime-20users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>TransactionsPerSecond</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/TransactionsPerSecond-20users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>HitsPerSecond</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/HitsPerSecond-20users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>BytesThroughputOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/BytesThroughputOverTime-20users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>LatenciesOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/LatenciesOverTime-20users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseCodesPerSecond</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseCodesPerSecond-20users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseTimesDistribution</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseTimesDistribution-20users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseTimesPercentiles</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseTimesPercentiles-20users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>TimesVsThreads</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/TimesVsThreads-20users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ThroughputVsThreads</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ThroughputVsThreads-20users.png</outputFile> 
      </graph> 
      </graphs> 
     <processAllFilesFound>true</processAllFilesFound> 
     </configuration> 
    </execution> 
    <execution> 
     <id>create-graphs-3</id> 
     <configuration> 
      <inputFile>${project.build.directory}/jmeter/results/catlyst2-30users.jtl</inputFile> 
      <graphs> 
      <graph> 
       <pluginType>ThreadsStateOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ThreadsStateOverTime-30users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseTimesOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseTimesOverTime-30users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>TransactionsPerSecond</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/TransactionsPerSecond-30users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>HitsPerSecond</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/HitsPerSecond-30users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>BytesThroughputOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/BytesThroughputOverTime-30users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>LatenciesOverTime</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/LatenciesOverTime-30users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseCodesPerSecond</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseCodesPerSecond-30users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseTimesDistribution</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseTimesDistribution-30users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ResponseTimesPercentiles</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ResponseTimesPercentiles-30users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>TimesVsThreads</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/TimesVsThreads-30users.png</outputFile> 
      </graph> 
      <graph> 
       <pluginType>ThroughputVsThreads</pluginType> 
       <width>800</width> 
       <height>600</height> 
       <outputFile>${project.build.directory}/jmeter/results/ThroughputVsThreads-30users.png</outputFile> 
      </graph> 
      </graphs> 
     </configuration> 
     </execution> 
    </executions> 
    </plugin> 

}

ответ

0

попытка поставить цель на исполнение всех смертных. У вас это только в первом.

<goals> 
    <goal>create-graph</goal> 
</goals>