Automatic generation of reports

915 views
Skip to first unread message

Sandeep Dahiya

unread,
Apr 1, 2012, 12:11:01 PM4/1/12
to jmeter-plugins
Hi,

Is there a way that the graphs are generated automatically once the
test is complete?

What i am doing currently is once the test is complete i save the
graphs images and csv. Then i use them to generate my report in
another template. is there a way that once test is completed i willl
find all the graphs and csv in one location and through excel
capability i would be able to fetch data from csv.

I mean i m trying to reduce the manual effort in generating the final
report.

Any help , inputs, ideas would be apppreciated.

Thanx in advance.
Sandeep

Andrey Pohilko

unread,
Apr 1, 2012, 12:45:25 PM4/1/12
to jmeter-...@googlegroups.com
The maximum automation is to run JMeter test in non-gui mode, saving results to JTL file. After this use http://code.google.com/p/jmeter-plugins/wiki/JMeterPluginsCMD to generate graphs and CSV files. Then run your report generator.

воскресенье, 1 апреля 2012 г. 20:11:01 UTC+4 пользователь Sandeep Dahiya написал:

Sandeep Dahiya

unread,
Apr 1, 2012, 2:29:36 PM4/1/12
to jmeter-plugins
I read the link....it says the tool is place inside the distribution
zip..is it refering to the JMeterPlugins-0.5.1.zip file. or there is
some other file that needs to be downloaded.

I copied the CMDRunner.jar file from the JMeterPlugins-0.5.1 folder
and copied it in lib/ext folder and JmeterPlugin.jar file was already
there as i am using the GUI mode earlier. Is there any other file
which needs to copied. I see mention of shell wrappers in
documentation.(no idea what it means)

I will appreciate if u can tell me steps or guide me to run this.

Thanx
sandeep

Andrey Pohilko

unread,
Apr 1, 2012, 3:02:43 PM4/1/12
to jmeter-...@googlegroups.com
You're on the right way. Shell wrappers are *.bat and *.sh files for shorter command-lines.

воскресенье, 1 апреля 2012 г. 22:29:36 UTC+4 пользователь Sandeep Dahiya написал:

Sandeep Dahiya

unread,
Apr 1, 2012, 3:25:08 PM4/1/12
to jmeter-plugins
thanx fro the reply...i copied the CMD Runner.jar file. run the test
from non gui mode.Generated the .jtl file in bin folder. changed the
path in command line fom bin to lib/ext and ran the command to
generate the png file for PerfMon type. its giving me error

C:\Documents and Settings\sandeep\Desktop\apache-jmeter-2.6\lib
\ext>java -jar CM
DRunner.jar --tool Reporter --generate-png test.png --input-jtl
Latest.jtl --plu
gin-type PerfMon --width 800 --height 600
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP
\QUICKT~1\
bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes
\jasmine.jar
DEBUG 2012-04-02 00:53:18.881 [kg.apc.j] (): Creating jmeter env
using JMeter
home: C:\Documents and Settings\sandeep\Desktop\apache-jmeter-2.6
ERROR: java.lang.NoSuchMethodError:
org.apache.jorphan.util.JOrphanUtils.closeQu
ietly(Ljava/io/InputStream;)V
*** Problem's technical details go below ***
Home directory was detected as: C:\Documents and Settings\sandeep
\Desktop\apache
-jmeter-2.6\lib\ext
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.jorphan.util.
JOrphanUtils.closeQuietly(Ljava/io/InputStream;)V
at
kg.apc.jmeter.PluginsCMDWorker.initializeProperties(PluginsCMDWorker.
java:104)

I have not copied the whole mssg...if u have get any idea what i m
doing wrong plz share your inputs.

Thanx
Sandeep

Andrey Pohilko

unread,
Apr 1, 2012, 3:35:51 PM4/1/12
to jmeter-...@googlegroups.com
Are you sure you use latest JMeter and latest plugins pack? This error was on one of old JMeter plugin packs, not latest. Please, re-check this.

воскресенье, 1 апреля 2012 г. 23:25:08 UTC+4 пользователь Sandeep Dahiya написал:

Sandeep Dahiya

unread,
Apr 1, 2012, 3:52:54 PM4/1/12
to jmeter-plugins
Yeah i am using apache Jmeter 2.6 and JMeterPlugins-0.5.1.

Sandeep Dahiya

unread,
Apr 1, 2012, 5:19:27 PM4/1/12
to jmeter-plugins
Yes i was exactly doing this...Changed the JmeterPlugin.jar
file...but
then i get the error below. is it a bug or i m doing something wrong???
plz help

C:\Documents and Settings\sandeep\Desktop\apache-jmeter-2.6\lib
\ext>java -jar CM
DRunner.jar --tool Reporter --generate-png Latest.png --input-jtl C:
\Documents a
nd Settings\sandeep\Desktop\apache-jmeter-2.6\bin\Latest.jtl --
plugin-
type PerfM
on --width 800 --height 600
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:
\PROGRA~1\HP
\QUICKT~1\
bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes
\jasmine.jar
DEBUG 2012-04-02 02:11:58.221 [kg.apc.j] (): Creating jmeter env
using JMeter
home: C:\Documents and Settings\sandeep\Desktop\apache-jmeter-2.6
ERROR: java.lang.UnsupportedOperationException: Unrecognized option:
and
*** Problem's technical details go below ***
Home directory was detected as: C:\Documents and Settings\sandeep
\Desktop\apache
-jmeter-2.6\lib\ext
Exception in thread "main" java.lang.UnsupportedOperationException:
Unrecognized
option: and
at
kg.apc.cmdtools.ReporterTool.processParams(ReporterTool.java:168)
at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:
63)
at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:
23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at kg.apc.cmd.UniversalRunner.main(UniversalRunner.java:149)

saml...@gmail.com

unread,
Aug 23, 2012, 12:34:00 PM8/23/12
to jmeter-...@googlegroups.com, funk.ne...@gmail.com
Sandeep, did you ever get this to work?  I'm having the same problem with Jmeter 2.7 (latest version) and the latest 0.5.3 pack... trying on REST samplers

2012/08/23 12:31:18 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
2012/08/23 12:31:18 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 
2012/08/23 12:31:18 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group. 
2012/08/23 12:31:18 INFO  - jmeter.engine.StandardJMeterEngine: Thread will continue on error 
2012/08/23 12:31:18 INFO  - jmeter.engine.StandardJMeterEngine: All threads have been started 
2012/08/23 12:31:18 INFO  - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1 
2012/08/23 12:31:18 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.NoSuchMethodError: org.apache.jorphan.util.JOrphanUtils.closeQuietly(Ljava/io/InputStream;)V
at smartrics.jmeter.sampler.RestSampler.sample(Unknown Source)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1060)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1049)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:442)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271)
at java.lang.Thread.run(Unknown Source)

2012/08/23 12:31:18 INFO  - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1 
2012/08/23 12:31:18 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-1 
2012/08/23 12:31:18 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
2012/08/23 12:31:18 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 
2012/08/23 12:31:18 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended on host null 

Stéphane Hoblingre

unread,
Aug 24, 2012, 3:11:08 PM8/24/12
to jmeter-...@googlegroups.com

Hi,
Your rest sampler is cosing the problem and is not related to jmeter or jmeter plugins.

Stef

Sam Trifoso

unread,
Aug 24, 2012, 4:55:02 PM8/24/12
to jmeter-...@googlegroups.com
Hi Stef,

It works fine in the 2.4 version of jmeter... I also have the latest version of REST sampler (2.3.4), so does jmeter 2.7 just not support REST samplers anymore??

Thanks,
Sam

Stéphane Hoblingre

unread,
Aug 24, 2012, 5:02:20 PM8/24/12
to jmeter-...@googlegroups.com
I don't know, it is not part of our plugins you should ask the plugin authors.

Stef
Reply all
Reply to author
Forward
0 new messages