JMeter Learning Note--jmeter Listener

Source: Internet
Author: User

A listener (Listeners) is a test element that exhibits sample results that can be displayed by a tree, a table, a picture, or simply written to a result file.

Note: Different listeners display server response information in different ways, but they all log the same raw data to an output file (specify an output file in a listener)

The "Configure" button can be used to configure which data will be written to the result file, as well as the format of the resulting file CSV or XML. CSV files consume much less disk space than XML files, and it is recommended to use CSV format when sampling more times. In addition, testers can use a simple controller to combine a series of samplers and add a listener to a simple controller, and multiple samplers can use the same result file, provided they have the same configuration.

  1. Listener default configuration: Which data fields are saved by the listener by default and can be defined in the jmeter.properties (or user.properties) file through the attribute. These properties act as the default settings for the Listener Configuration dialog box and also affect the command line-l identity for the specified log file (typically for non-GUI mode). As in Jmeter.properties, find the following line: jmeter.save.saveservice.output_format= How to save the sample information is configurable, to obtain the most comprehensive information, select the "XML" format, and in the test plan select the " Function Test Mode check box, if the check box is not selected, the default saved data contains the timestamp, data type, thread name, label, corresponding duration, message, encoding, and success flag. The Sample_variables attribute is used to define some supplemental JMeter variables that are saved to the JTL file along with the sampled results. These variables are written to the CVS file as supplemental columns, or as supplemental properties to the XML file.
  2. Configuration

JMeter Learning Note--jmeter Listener

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.