Hi Kent,

 

By removing the historyreport I get this output (no *.html files at all, only 
CSS and images):

 

C:\SVN\trunk\lab\jmeter-lab>mvn clean site

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building JMeter test 1.1

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ tests ---

[INFO] Deleting C:\SVN\trunk\lab\jmeter-lab\target

[INFO]

[INFO] --- maven-site-plugin:3.0:site (default-site) @ tests ---

[INFO] configuring report plugin 
org.codehaus.mojo:chronos-report-maven-plugin:1.0-beta-1

[WARNING] No project URL defined - decoration links will not be relativized!

[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 
skin.

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.983s

[INFO] Finished at: Mon Nov 14 12:39:39 CET 2011

[INFO] Final Memory: 9M/103M

[INFO] ------------------------------------------------------------------------

 

Notice that my JMeter-test is not executed at all when omitting the 
historyreport. So there's no input at all to the site-plugin. 

 

Might be worth mentioning that I fail to run chronos-report:report (but 
chronos-report:history works fine):

 

C:\SVN\trunk\lab\jmeter-lab>mvn clean chronos-report:report

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building JMeter test 1.1

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ tests ---

[INFO] Deleting C:\SVN\trunk\lab\jmeter-lab\target

[INFO]

[INFO] --- chronos-report-maven-plugin:1.0-beta-1:report (default-cli) @ tests 
---

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.030s

[INFO] Finished at: Mon Nov 14 12:51:19 CET 2011

[INFO] Final Memory: 6M/74M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal 
org.codehaus.mojo:chronos-report-maven-plugin:1.0-beta-1:report (default-cli) 
on project tests: An error has occurred in performancetest report generation. 
Unknown directory C:\SVN\trunk\lab\jmeter-lab\target\chronos\performancetest 
Maybe the performancetests have not yet been run -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please 
read the following articles:

[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 

Maven 2 syntax (<reporting> tags after <build>) doesn't work out for me when 
using Maven 3. I get the same error mentioned above (An error has occurred in 
performancetest report generation. Unknown directory 
C:\SVN\trunk\lab\jmeter-lab\target\chronos\performancetest Maybe the 
performancetests have not yet been run). I.e. looking for dataid 
performancetest but cannot find it (as my dataid is named testperftest).

 

/Mattias

 

Från: Kent Sølvsten [mailto:[email protected]] 
Skickat: den 14 november 2011 12:05
Till: [email protected]
Ämne: Re: SV: [mojo-user] [chronos-report] Maven 3 cannot generate report (only 
historyreport)

 

Hi Mattias.

 

You are correct, the problem is that the 'standard' report generation is not 
triggered.

I suspect that the dear site plugin is teasing us.

 

Can You make an experiment: REMOVE the historyreport and recreate the site, to 
see if the normal report is still not run?

 

I would really like to nail this issue. Even though the maven 2 syntax should 
work in this (rather simple) case, the maven 3 syntax is necesary in case of 
several tests in the same pproject.

 

/Kent

 

Den 14/11/2011 kl. 09.58 skrev Wessman Mattias:





Thanks for your reply.

 

Target contains:

chronos/testperftest/

site/css

site/images

site/history-testperftest.html

site/project-reports.html

 

I've modified the historydir property = 
<historydir>${project.basedir}/history</historydir>. That directory however 
contain a folder named testperftest.

 

So; no I cannot find the file target/site/testperftest.html.

 

Given the output listed in previous mail there doesn't seem to be any attempt 
to create the "regular" report.

 

/Mattias

 

Från: Kent Sølvsten [mailto:[email protected]] 
Skickat: den 14 november 2011 09:28
Till: [email protected]
Ämne: Re: [mojo-user] [chronos-report] Maven 3 cannot generate report (only 
historyreport)

 

Weird, it works for me, I have just tested again.

 

What is the content of Your target directory?

 

Do You see folders target/chronos/testperftest and target/history/testperftest  
?

If Yes, what is the content of these folders?

 

Are You able to find files target/site/testperftest.html and 
target/site/history-testperftest.html ?

 

/Kent

 

Den 14/11/2011 kl. 08.47 skrev Wessman Mattias:






Hi!

 

I'm trying to generate reports (historyreport and report) based on 
chronos-jmeter executions using Maven 3.0.3. Basically following the sample 
found here 
<http://mojo.codehaus.org/chronos/chronos-samples/historytest/index.html> .

 

A code-snippet from my pom.xml below:

...

<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>chronos-jmeter-maven-plugin</artifactId>

<version>1.0-beta-1</version>

<executions>

<execution>

<id>Testing</id>

<configuration>

<dataid>testperftest</dataid>                                                   
                                                                                
                                                                  

<input>${project.basedir}/src/test/jmeter/testar.jmx</input>

<historydir>${project.basedir}/history</historydir>

</configuration>

<phase>integration-test</phase>

<goals>

<goal>jmeter</goal>

<goal>savehistory</goal>

<goal>check</goal>

</goals>

</execution>

</executions>

</plugin>

                                                                                
                                                                                
             

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-site-plugin</artifactId>

<version>3.0</version>

<configuration>

<reportPlugins>

<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>chronos-report-maven-plugin</artifactId>

<version>1.0-beta-1</version>

<configuration>

<dataid>testperftest</dataid>

<title>JMeter Test history</title>

<description>This is a test report illustrating the different parts of the 
reports.</description>

<showgc>false</showgc>

<historydir>${project.basedir}/history</historydir>

</configuration>

<reports>

<report>report</report>

<report>historyreport</report>

</reports>

</plugin>

</reportPlugins>

</configuration>

</plugin>

...

 

Then I execute mvn clean site

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building JMeter test 1.1

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ tests ---

[INFO] Deleting C:\SVN\trunk\lab\jmeter-lab\target

[INFO]

[INFO] --- maven-site-plugin:3.0:site (default-site) @ tests ---

[INFO] configuring report plugin 
org.codehaus.mojo:chronos-report-maven-plugin:1.0-beta-1

[INFO]

[INFO] >>> chronos-report-maven-plugin:1.0-beta-1:historyreport 
(report:historyreport) @ tests >>>

[INFO]

[INFO] --- chronos-jmeter-maven-plugin:1.0-beta-1:jmeter (Testing) @ tests ---

[INFO] No bootstrapper class found

[INFO] Excuting test C:\SVN\trunk\lab\jmeter-lab\src\test\jmeter\testar.jmx

[WARNING] Artifact not found. Note that if Your JMeter test contains 
JUnittestcases, You can only invoke this goal through the default lifecycle.

[INFO] Created the tree successfully using 
C:\SVN\trunk\lab\jmeter-lab\src\test\jmeter\testar.jmx

[INFO] Starting the test @ Fri Nov 11 16:41:12 CET 2011 (1321026072034)

[INFO] Waiting for possible shutdown message on port 4445

[INFO] Tidying up ...    @ Fri Nov 11 16:41:12 CET 2011 (1321026072740)

[INFO] ... end of run

[INFO]

[INFO] --- chronos-jmeter-maven-plugin:1.0-beta-1:savehistory (Testing) @ tests 
---

[INFO]

[INFO] --- chronos-jmeter-maven-plugin:1.0-beta-1:check (Testing) @ tests ---

[INFO]

[INFO] <<< chronos-report-maven-plugin:1.0-beta-1:historyreport 
(report:historyreport) @ tests <<<

[WARNING] No project URL defined - decoration links will not be relativized!

[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 
skin.

[INFO] Generating "history-testperftest" report    --- 
chronos-report-maven-plugin:1.0-beta-1

[INFO]  generating charts...

[warn] [XHTML Sink] Modified invalid anchor name: '0testperftest' to 
'a0testperftest'

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 5.344s

[INFO] Finished at: Fri Nov 11 16:41:15 CET 2011

[INFO] Final Memory: 11M/162M

[INFO] ------------------------------------------------------------------------

 

As seen from Maven output, there's only a historyreport generated. I'm 
expecting a report and a historyreport. Why isn't the report also generated? Am 
I missing something here? Using Maven 2 and the <reporting> syntax without 
mave-site-plugin generates 2 reports.

 

Thanks and regards,

 

Mattias

 

 

Reply via email to