<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright (c) Codice Foundation
 *
 * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License is distributed along with this program and can be found at
 * <http://www.gnu.org/licenses/lgpl.html>.
 *
 **/
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>ddf.test.performance.jmeter</groupId>
        <artifactId>jmeter</artifactId>
        <version>2.31.0</version>
    </parent>
    <artifactId>ddf-test-performance-jmeter-csw</artifactId>
    <name>DDF :: Test :: Performance :: JMeter :: CSW</name>
    <packaging>pom</packaging>
    <profiles>
        <profile>
            <id>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>jmeter-tests</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>jmeter</goal>
                                </goals>
                                <configuration>
                                    <propertiesJMeter>
                                        <target.host>${target.host}</target.host>
                                        <target.port>${target.port}</target.port>
                                        <target.protocol>${target.protocol}</target.protocol>
                                    </propertiesJMeter>
                                    <testResultsTimestamp>false</testResultsTimestamp>
                                    <ignoreResultFailures>true</ignoreResultFailures>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>de.codecentric</groupId>
                        <artifactId>jmeter-graph-maven-plugin</artifactId>
                        <version>0.1.0</version>
                        <executions>
                            <execution>
                                <id>create-graphs</id>
                                <goals>
                                    <goal>create-graph</goal>
                                </goals>
                                <phase>verify</phase>
                                <configuration>
                                    <inputFile>${project.build.directory}/jmeter/results/CSW-GetRecords.jtl</inputFile>
                                    <graphs>
                                        <graph>
                                            <pluginType>ThreadsStateOverTime</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-ThreadsStateOverTime.png</outputFile>
                                        </graph>
                                        <!-- ... you can declare more <graph>-elements here -->
                                        <graph>
                                            <pluginType>ResponseTimesOverTime</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-ResponseTimesOverTime.png</outputFile>
                                        </graph>
                                        <graph>
                                            <pluginType>TransactionsPerSecond</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-TransactionsPerSecond.png</outputFile>
                                        </graph>
                                        <graph>
                                            <pluginType>BytesThroughputOverTime</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-BytesThroughputOverTime.png</outputFile>
                                        </graph>
                                        <graph>
                                            <pluginType>HitsPerSecond</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-HitsPerSecond.png</outputFile>
                                        </graph>
                                        <graph>
                                            <pluginType>LatenciesOverTime</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-LatenciesOverTime.png</outputFile>
                                        </graph>
                                        <graph>
                                            <pluginType>ResponseCodesPerSecond</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-ResponseCodesPerSecond.png</outputFile>
                                        </graph>
                                        <graph>
                                            <pluginType>ResponseTimesDistribution</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-ResponseTimesDistribution.png</outputFile>
                                        </graph>
                                        <graph>
                                            <pluginType>ResponseTimesPercentiles</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-ResponseTimesPercentiles.png</outputFile>
                                        </graph>
                                        <graph>
                                            <pluginType>ThroughputVsThreads</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-ThroughputVsThreads.png</outputFile>
                                        </graph>
                                        <graph>
                                            <pluginType>TimesVsThreads</pluginType>
                                            <width>800</width>
                                            <height>600</height>
                                            <outputFile>${project.build.directory}/jmeter/results/CSW-GetRecords-TimesVsThreads.png</outputFile>
                                        </graph>
                                    </graphs>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
