Html Report
jmeter -n -t "TestPlan.jmx" -l resultfolder/ReportType.jtl -e -o resultfolder
jmeter -Jthreads=50 -n -t testplan.jmx -l result.csv -e -o resultfolder
https://grafana.com/
http://testingfreak.com/step-by-step-process-to-run-jmx-file-through-command-prompt-using-ant-and-generate-html-report/
If you want to start Apache JMeter in non-GUI mode, use the following command line options:
- -n – non-GUI mode – this specifies JMeter is to run in non-GUI mode
- -t – JMX file – location of the test plan and the name of JMX file that contains the Test Plan
- -l – log file name of JTL file to log sample results to
Example
jmeter -n -t my_test_plan.jmx -l log.jtl
Optional
- -j – name of JMeter run log file
- -r – Run the test in the servers specified by the JMeter property “remote_hosts”
- -R – list of remote servers Run the test in the specified remote servers
- -H – proxy server hostname or ip address
- -P – proxy server port
-----------------------------------------------------------------------------------------------
Capture all the information in the XML file
Add a Listener of type View Result Tree (or any Listener)
Configure
select the fields in Sample Result Save Configuaration
FileName: give xml file name (xml need not to be created, Jmeter automatically creates the file in the folder provided)
Execute and check the result. All data will be capture in the xml file.
No comments:
Post a Comment