Skip to content
Pradeep Vemulakonda edited this page Jun 26, 2015 · 1 revision

Welcome to the JMeter-Charts wiki!

Detailed Usage:

Before you can generate reports using this tool you need to create JMeter results file in XML format.

  • To create a result file add an Aggregate Report listener.
  • Set the result file type to xml as shown in the screenshot below.

Sample Perfromance test for this application in JMeter

JMeter samples
![JMeterCharts JMX](https://github.com/pradeepvemulakonda/JMeter-Charts/blob/master/out/docs/Sample_JMeterCharts_jmx.png "JMeterCharts JMX")
Aggregate Report
![JMeterCharts Result Config](https://github.com/pradeepvemulakonda/JMeter-Charts/blob/master/out/docs/Config_for_report.png "JMeterCharts Result Config")
Start JMeterCharts application
- start mongodb using mongod command - start node application

JMeterCharts app start

Open browser at http://$host:$port/jc
- The host and the port can be configured in src/config.json. - Once the changes are made the server needs to be restarted.
Sample config json
```javascript { "mongoHost": "localhost", // mongodb host name "mongoPort": "27017", // mongodb port "mongoDB": "JMeterReportDB", // mongodb db name "httpPort": "30000" // node express port } ```
Using JMeter Chart Application
- Once you open the application, if there are no existing projects you can create one by uploading a JMeter results file. ![JMeterCharts start page](https://github.com/pradeepvemulakonda/JMeter-Charts/blob/master/out/docs/initial.png "JMeterCharts start page")
  • Select a JMeter results file using the browse button.
  • Once the file is selected you should provide the project, version and build which are all mandatory.
  • Once you provide the required details click upload

Selected file

  • Click upload and one the upload is successful the file color changes to green.

Uploaded file

  • Refreh page to load newly created project.

Project menu

  • Select the Project "JMeterCharts" to view the versions in the menu.
  • The details page on the right also shows the versions present in the project.

Version menu

To View reports you need to first select the config tab in in the project details view and select the samples.

  • Select the config tab to view the available samples for the project

View Samples

  • Select the samples to display and select Set Samples

Update Samples

  • Once the samples are set the application reloads to get the latest changes.
  • Now you can select any project and see detailed charts for a specific viersion.

View Version details

  • To view build details => select a specific version

Version Menu

  • To view details of specific build click on view details on specific build

Build Details

View and download Reports

For each version or build the application generates 3 types of charts

  1. Samples vs Response time
  2. Sample Response Time vs Threads
  3. Active threads vs run time
Sample charts

1 Samples vs Response Time

Sample vs response

2 Samples Response ms vs No of Threads

Sample Response ms vs No of threads

3 Active No of threads vs Run Time

Active No of Threads vs Time

Download Chart Images
- To download chart images selected the context menu on the right side of the chart and click Print.

Download Chart

  • Once you click print a print preview is shown and once you click download the chart image is download to your local system.

Print Preview

Download Detailed PDF report for selected Verison or Build
  • To download pdf report select a version/build and in the report section on the right hand side select "download Report" menu item.

Download Report

  • When you select downlod report a report form is show to capture test conditions an environment.

Report Form

  • When you select Add Details , a pdf is generted and download to your local system.

A sample is attached for your reference [Sample Report] (https://github.com/pradeepvemulakonda/JMeter-Charts/blob/master/out/docs/JMeterReport-report.pdf) Report generation does not work on IE, all other functionality works on IE.

Compare two version or builds

You can compare response times between two versions or build

  • Select a version which contains more than one build

View Builds

  • select the builds to compare and select the compare button.

Compare Builds

  • Once you select compare a comparison chart is displayed.

In this example the comaprison is between builds 1 and 2. Build 1 is run with 1000 concurrent users and build 2 is run with 2000 concurrent users.

Compare Builds

  • you can downlod the chart as described above in the Download charts section.

Application Performance

JMeter charts performes well under load and the tests in the example are actual perfromance tets done on a local instance of the application with 1000 and 2000 concurrent users.

Additional Info

A sample jtl file is provided for your testing

Sample Jtl file for JMeter Charts