jtorgan / jmeter_plugin

21 stars 16 forks source link

Result item format must included asserted result. Format: startTime responseTime testName... #31

Closed Del-Patel closed 3 years ago

Del-Patel commented 3 years ago

has anyone got a resolution for this error? I have update the user properties and added summary listener to requests

User properties has been updated to :

jmeter.save.saveservice.default_delimiter=\t jmeter.save.saveservice.print_field_names=true

Still can't get the plug in to work. Here is a sample from the response from TeamCity. Result item format must included asserted result. Format: startTime responseTime testName... Found[1620640683277,197,LogOn-00:authToken,200,OK,Icons 1-1,text,true,,1306,462,1,1

Del-Patel commented 3 years ago

Managed to resolve this issue with the following:

Update the user properties file in Jmeter.bin directory with the following:

---------------------------------------------------------------------------

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=csv

The below properties are true when field should be saved; false otherwise

#

assertion_results_failure_message only affects CSV output

jmeter.save.saveservice.assertion_results_failure_message=true #

legitimate values: none, first, all

jmeter.save.saveservice.assertion_results=all #

jmeter.save.saveservice.data_type=true

jmeter.save.saveservice.label=true

jmeter.save.saveservice.response_code=true

response_data is not currently supported for CSV output

jmeter.save.saveservice.response_data=false

Save ResponseData for failed samples

jmeter.save.saveservice.response_data.on_error=false

jmeter.save.saveservice.response_message=true

jmeter.save.saveservice.successful=true

jmeter.save.saveservice.thread_name=true

jmeter.save.saveservice.time=true

jmeter.save.saveservice.subresults=true

jmeter.save.saveservice.assertions=true

jmeter.save.saveservice.latency=true

Only available with HttpClient4

jmeter.save.saveservice.connect_time=true

jmeter.save.saveservice.samplerData=false

jmeter.save.saveservice.responseHeaders=true jmeter.save.saveservice.requestHeaders=true

jmeter.save.saveservice.encoding=false

jmeter.save.saveservice.bytes=true

Only available with HttpClient4

jmeter.save.saveservice.sent_bytes=true

jmeter.save.saveservice.url=true

jmeter.save.saveservice.filename=false

jmeter.save.saveservice.hostname=false

jmeter.save.saveservice.thread_counts=true

jmeter.save.saveservice.sample_count=false

jmeter.save.saveservice.idle_time=true

Timestamp format - this only affects CSV output files

legitimate values: none, ms, or a format suitable for SimpleDateFormat

jmeter.save.saveservice.timestamp_format=ms

jmeter.save.saveservice.timestamp_format=yyyy/MM/dd HH:mm:ss.SSS

For use with Comma-separated value (CSV) files or other formats

where the fields' values are separated by specified delimiters.

Default:

jmeter.save.saveservice.default_delimiter=\t

For TAB, one can use:

jmeter.save.saveservice.default_delimiter=\t

Only applies to CSV format files:

Print field names as first line in CSV

jmeter.save.saveservice.print_field_names=true

Optional list of JMeter variable names whose values are to be saved in the result data files.

Use commas to separate the names. For example:

sample_variables=SESSION_ID,REFERENCE

N.B. The current implementation saves the values in XML as attributes,

so the names must be valid XML names.

By default JMeter sends the variable to all servers

to ensure that the correct data is available at the client.

Optional XML processing instruction for line 2 of the file:

Example:

jmeter.save.saveservice.xml_pi=<?xml-stylesheet type="text/xsl" href="../extras/jmeter-results-detail-report.xsl"?>

Default value:

jmeter.save.saveservice.xml_pi=

Prefix used to identify filenames that are relative to the current base

jmeter.save.saveservice.base_prefix=~/

AutoFlush on each line written in XML or CSV output

Setting this to true will result in less test results data loss in case of Crash

but with impact on performances, particularly for intensive tests (low or no pauses)

Since JMeter 2.10, this is false by default

jmeter.save.saveservice.autoflush=false