You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by pe...@peterse-uithuizen.com on 2017/03/07 08:28:59 UTC
JMeter dashboard generated by maven
Hello all,
I'm trying to generate the JMeter dashboard by Maven with an ant task:
======
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>pre-site</phase>
<configuration>
<tasks>
<mkdir dir="${basedir}/target/jmeter/results/dashboard" />
<copy
file="${basedir}/src/test/resources/reportgenerator.properties"
tofile="${basedir}/target/jmeter/bin/reportgenerator.properties"
/>
<copy todir="${basedir}/target/jmeter/bin/report-template">
<fileset dir="${basedir}/src/test/resources/report-template" />
</copy>
<java jar="${basedir}/target/jmeter/bin/ApacheJMeter-3.0.jar"
fork="true">
<arg value="-g" />
<arg value="${basedir}/target/jmeter/results/*.jtl" />
<arg value="-o" />
<arg value="${basedir}/target/jmeter/results/dashboard/" />
<arg value="-j" />
<arg value="${basedir}/target/jmeter/results/jmeter-dashboard.log"
/>
</java>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
======
On my Windows system the dashboard is created, but on the Jenkins
buildserver (its a Linux machine) it complains about the wildcard.
======
[INFO] Executing tasks
[mkdir] Created dir:
/home/glassfish/.jenkins/workspace/ABD/target/jmeter/results/dashboard
[copy] Copying 1 file to
/home/glassfish/.jenkins/workspace/ABD/target/jmeter/bin
[copy] Copying 696 files to
/home/glassfish/.jenkins/workspace/ABD/target/jmeter/bin/report-template
[java] Writing log file to:
/home/glassfish/.jenkins/workspace/ABD/target/jmeter/results/jmeter-dashboard.log
[java] An error occurred: Cannot read test results file :
/home/glassfish/.jenkins/workspace/ABD/target/jmeter/results/*.jtl
[java] Java Result: 1
[INFO] Executed tasks
======
Does anyone a clue for me?
Thanks,
Peter Peterse
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: JMeter dashboard generated by maven
Posted by Peter Peterse <pe...@peterse-uithuizen.com>.
Hello Philippe,
Sorry for the late reaction.
After changing the wildcard to a real filename works. The strange thing
is that on my Windows machine the wildcard did work.
Regards,
Peter
Op 7-3-2017 om 21:03 schreef Philippe Mouawad:
> Hello,
> -g should point to a file , not to an *.jtl file.
> Also ensure jtl file is CSV.
>
> You can read this:
> - jmeter.apache.org/usermanual/generating-dashboard.html
>
> Regards
>
> On Tue, Mar 7, 2017 at 9:28 AM, <pe...@peterse-uithuizen.com> wrote:
>
>> Hello all,
>>
>> I'm trying to generate the JMeter dashboard by Maven with an ant task:
>> ======
>> <plugin>
>> <artifactId>maven-antrun-plugin</artifactId>
>> <executions>
>> <execution>
>> <phase>pre-site</phase>
>> <configuration>
>> <tasks>
>> <mkdir
>> dir="${basedir}/target/jmeter/results/dashboard" />
>> <copy
>> file="${basedir}/src/test/resources/reportgenerator.properties"
>>
>> tofile="${basedir}/target/jmeter/bin/reportgenerator.properties" />
>> <copy
>> todir="${basedir}/target/jmeter/bin/report-template">
>> <fileset
>> dir="${basedir}/src/test/resources/report-template" />
>> </copy>
>> <java
>> jar="${basedir}/target/jmeter/bin/ApacheJMeter-3.0.jar"
>> fork="true">
>> <arg value="-g" />
>> <arg
>> value="${basedir}/target/jmeter/results/*.jtl" />
>> <arg value="-o" />
>> <arg
>> value="${basedir}/target/jmeter/results/dashboard/" />
>> <arg value="-j" />
>> <arg
>> value="${basedir}/target/jmeter/results/jmeter-dashboard.log" />
>> </java>
>> </tasks>
>> </configuration>
>> <goals>
>> <goal>run</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>> ======
>>
>> On my Windows system the dashboard is created, but on the Jenkins
>> buildserver (its a Linux machine) it complains about the wildcard.
>> ======
>> [INFO] Executing tasks
>> [mkdir] Created dir: /home/glassfish/.jenkins/works
>> pace/ABD/target/jmeter/results/dashboard
>> [copy] Copying 1 file to /home/glassfish/.jenkins/works
>> pace/ABD/target/jmeter/bin
>> [copy] Copying 696 files to /home/glassfish/.jenkins/works
>> pace/ABD/target/jmeter/bin/report-template
>> [java] Writing log file to: /home/glassfish/.jenkins/works
>> pace/ABD/target/jmeter/results/jmeter-dashboard.log
>> [java] An error occurred: Cannot read test results file :
>> /home/glassfish/.jenkins/workspace/ABD/target/jmeter/results/*.jtl
>> [java] Java Result: 1
>> [INFO] Executed tasks
>> ======
>>
>> Does anyone a clue for me?
>>
>> Thanks,
>> Peter Peterse
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>
>
--
Met vriendelijke groet,
Peter Peterse
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: JMeter dashboard generated by maven
Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
-g should point to a file , not to an *.jtl file.
Also ensure jtl file is CSV.
You can read this:
- jmeter.apache.org/usermanual/generating-dashboard.html
Regards
On Tue, Mar 7, 2017 at 9:28 AM, <pe...@peterse-uithuizen.com> wrote:
> Hello all,
>
> I'm trying to generate the JMeter dashboard by Maven with an ant task:
> ======
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>pre-site</phase>
> <configuration>
> <tasks>
> <mkdir
> dir="${basedir}/target/jmeter/results/dashboard" />
> <copy
> file="${basedir}/src/test/resources/reportgenerator.properties"
>
> tofile="${basedir}/target/jmeter/bin/reportgenerator.properties" />
> <copy
> todir="${basedir}/target/jmeter/bin/report-template">
> <fileset
> dir="${basedir}/src/test/resources/report-template" />
> </copy>
> <java
> jar="${basedir}/target/jmeter/bin/ApacheJMeter-3.0.jar"
> fork="true">
> <arg value="-g" />
> <arg
> value="${basedir}/target/jmeter/results/*.jtl" />
> <arg value="-o" />
> <arg
> value="${basedir}/target/jmeter/results/dashboard/" />
> <arg value="-j" />
> <arg
> value="${basedir}/target/jmeter/results/jmeter-dashboard.log" />
> </java>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ======
>
> On my Windows system the dashboard is created, but on the Jenkins
> buildserver (its a Linux machine) it complains about the wildcard.
> ======
> [INFO] Executing tasks
> [mkdir] Created dir: /home/glassfish/.jenkins/works
> pace/ABD/target/jmeter/results/dashboard
> [copy] Copying 1 file to /home/glassfish/.jenkins/works
> pace/ABD/target/jmeter/bin
> [copy] Copying 696 files to /home/glassfish/.jenkins/works
> pace/ABD/target/jmeter/bin/report-template
> [java] Writing log file to: /home/glassfish/.jenkins/works
> pace/ABD/target/jmeter/results/jmeter-dashboard.log
> [java] An error occurred: Cannot read test results file :
> /home/glassfish/.jenkins/workspace/ABD/target/jmeter/results/*.jtl
> [java] Java Result: 1
> [INFO] Executed tasks
> ======
>
> Does anyone a clue for me?
>
> Thanks,
> Peter Peterse
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
--
Cordialement.
Philippe Mouawad.