-
Notifications
You must be signed in to change notification settings - Fork 9
Home
Welcome to the JMeter-Charts wiki!
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
![JMeterCharts JMX](https://github.com/pradeepvemulakonda/JMeter-Charts/blob/master/out/docs/Sample_JMeterCharts_jmx.png "JMeterCharts JMX") ![JMeterCharts Result Config](https://github.com/pradeepvemulakonda/JMeter-Charts/blob/master/out/docs/Config_for_report.png "JMeterCharts Result Config") - start mongodb using mongod command - start node application - The host and the port can be configured in src/config.json. - Once the changes are made the server needs to be restarted. ```javascript { "mongoHost": "localhost", // mongodb host name "mongoPort": "27017", // mongodb port "mongoDB": "JMeterReportDB", // mongodb db name "httpPort": "30000" // node express port } ``` - 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
- Click upload and one the upload is successful the file color changes to green.
- Refreh page to load newly created project.
- 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.
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
- Select the samples to display and select Set 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.
- To view build details => select a specific version
- To view details of specific build click on view details on specific build
For each version or build the application generates 3 types of charts
- Samples vs Response time
- Sample Response Time vs Threads
- Active threads vs run time
1 Samples vs Response Time
2 Samples Response ms vs No of Threads
3 Active No of threads vs Run Time
- To download chart images selected the context menu on the right side of the chart and click Print.- Once you click print a print preview is shown and once you click download the chart image is download to your local system.
- To download pdf report select a version/build and in the report section on the right hand side select "download Report" menu item.
- When you select downlod report a report form is show to capture test conditions an environment.
- 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.
You can compare response times between two versions or build
- Select a version which contains more than one build
- select the builds to compare and select the compare button.
- 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.
- you can downlod the chart as described above in the Download charts section.
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.
A sample jtl file is provided for your testing