You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by David Miller <Da...@exchange.curtin.edu.au> on 2004/05/24 08:09:42 UTC

Different logs when running gui and commandline.


I am getting different result logs when running Jmeter in commandline
compared to GUI mode.

In my script I have a Simple Data Writer assertion with the 'Log Errors
Only' checkbox selected.

When I run the script in GUI mode, it works correctly by only logging the
errors(what i want).

When I run the script via commandline like : 
jmeter -n -t test.jmx -l output.xml
I get ALL of the results, rather than just logging the errors.


Below is the relevant section of the jmeter.properties file that I have. The
jmeter.save.saveservice.response_data property is set to true because I want
the binary response if the assertion returns false.

Thanks in advance if anyone can help me out.

Dave..



#---------------------------------------------------------------------------
# Results file configuration
#---------------------------------------------------------------------------

# This section helps determine how result data will be saved.
# The commented out values are the defaults.

# legitimate values: xml, csv, db.  Only xml and csv are currently
supported.
jmeter.save.saveservice.output_format=xml


# true when field should be saved; false otherwise

# assertion_results_failure_message only affects CSV output
#jmeter.save.saveservice.assertion_results_failure_message=all

#jmeter.save.saveservice.data_type=true
#jmeter.save.saveservice.label=true
#jmeter.save.saveservice.response_code=true
jmeter.save.saveservice.response_data=true
#jmeter.save.saveservice.response_message=true
#jmeter.save.saveservice.successful=true
#jmeter.save.saveservice.thread_name=true
#jmeter.save.saveservice.time=true

# legitimate values: none, ms, or a format suitable for SimpleDateFormat
#jmeter.save.saveservice.timestamp_format=ms
jmeter.save.saveservice.timestamp_format=dd/MM/yy HH:mm:ss

# legitimate values: none, first, all
jmeter.save.saveservice.assertion_results=none

# For use with Comma-separated value (CSV) files or other formats
# where the fields' values are separated by specified delimiters.
#jmeter.save.saveservice.default_delimiter=,
#jmeter.save.saveservice.print_field_names=true

# File that holds a record of name changes for backward compatibility issues
upgrade_properties=/bin/upgrade.properties

# If the proxy detects a gap of at least 1s (default) between HTTP requests,
# it assumes that the user has clicked a new URL
#proxy.pause=1000

# Add numeric prefix to Sampler names (default false)
#proxy.number.requests=true
#
# Define the HTML parser to be used.
# Default parser:
#htmlParser.className=org.apache.jmeter.protocol.http.parser.HtmlParserHTMLP
arser
# Other parsers:
#htmlParser.className=org.apache.jmeter.protocol.http.parser.JTidyHTMLParser
#htmlParser.className=org.apache.jmeter.protocol.http.parser.RegexpHTMLParse
r

# Put the start time stamp in logs instead of the end
#sampleresult.timestamp.start=true

# Turn expert mode on/off: expert mode will show expert-mode beans and
properties
#jmeter.expertMode=true

# To set the buffer size, enter the desired value
# monitor.buffer.size=800

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org