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.
- 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.
- Configuration
JMeter Learning Note--jmeter Listener