In this article we are going to see how can we change property of JMeter.
Jmeter has a very big number of properties. In this section we will see the result / report settings mention in jmeter.propertie.
In the jmeter installed bin directory(in my case C:\apache-jmeter-2.8\bin), we get a file named jmeter.properties. Open this with note pad. We can find various properties which are activated and some are not yet activated.
-To set results file type(xml/csv)
jmeter.save.saveservice.output_format=xml
-To set encoding (default ISO-8859-1)
sampleresult.default.encoding=ISO-8859-1
-To set saving parameters [True parameters will be saved]
jmeter.save.saveservice.assertion_results_failure_message=false[Only for CSV]
jmeter.save.saveservice.assertion_results=none
jmeter.save.saveservice.data_type=true
jmeter.save.saveservice.label=true
jmeter.save.saveservice.response_code=true [Not for CSV]
jmeter.save.saveservice.response_data=false [Save Response Data on fail]
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
jmeter.save.saveservice.samplerData=false
jmeter.save.saveservice.responseHeaders=false
jmeter.save.saveservice.requestHeaders=false
jmeter.save.saveservice.encoding=false
jmeter.save.saveservice.bytes=true
jmeter.save.saveservice.url=false
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=false
jmeter.save.saveservice.timestamp_format=yyyy/MM/dd HH:mm:ss.SSS[our choice]
jmeter.save.saveservice.default_delimiter=\t[For TAB character separator for CSV, a comma , is also accepted]
jmeter.save.saveservice.print_field_names=false [CSV only]
-To see results with Nano Second Parameter
sampleresult.useNanoTime=true
-To disable the background thread[result threads]
sampleresult.nanoThreadSleep=-1
Note: Values >=0 will keep the thread sleep (Nano Second Unit.)
-To Save the start time stamp (Instead of the end)[Effective for result files also]
sampleresult.timestamp.start=true
-To save list variable names with values in the result data files, we use commas to separate the names.
sample_variables=SESSION_ID,REFERENCE
[Note : Currently it saves the values in XML as attributes,so the names must be valid XML names]
-To set network response size in calculation method
Note : Size = Number of bytes for response body return by web server. If it is false, the (uncompressed) response data size will used (default before jmeter 2.5)
Include headers: Add the headers size in real size
sampleresult.getbytes.body_real_size=true
sampleresult.getbytes.headers_size=true
-To set Prefix to identify file names that are relative to the current base
jmeter.save.saveservice.base_prefix=~/
This will be long post as all specification depends on client. I will try to add more from further experiences.
..Thanks...:)
Jmeter has a very big number of properties. In this section we will see the result / report settings mention in jmeter.propertie.
In the jmeter installed bin directory(in my case C:\apache-jmeter-2.8\bin), we get a file named jmeter.properties. Open this with note pad. We can find various properties which are activated and some are not yet activated.
-To set results file type(xml/csv)
jmeter.save.saveservice.output_format=xml
-To set encoding (default ISO-8859-1)
sampleresult.default.encoding=ISO-8859-1
-To set saving parameters [True parameters will be saved]
jmeter.save.saveservice.assertion_results_failure_message=false[Only for CSV]
jmeter.save.saveservice.assertion_results=none
jmeter.save.saveservice.data_type=true
jmeter.save.saveservice.label=true
jmeter.save.saveservice.response_code=true [Not for CSV]
jmeter.save.saveservice.response_data=false [Save Response Data on fail]
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
jmeter.save.saveservice.samplerData=false
jmeter.save.saveservice.responseHeaders=false
jmeter.save.saveservice.requestHeaders=false
jmeter.save.saveservice.encoding=false
jmeter.save.saveservice.bytes=true
jmeter.save.saveservice.url=false
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=false
jmeter.save.saveservice.timestamp_format=yyyy/MM/dd HH:mm:ss.SSS[our choice]
jmeter.save.saveservice.default_delimiter=\t[For TAB character separator for CSV, a comma , is also accepted]
jmeter.save.saveservice.print_field_names=false [CSV only]
-To see results with Nano Second Parameter
sampleresult.useNanoTime=true
-To disable the background thread[result threads]
sampleresult.nanoThreadSleep=-1
Note: Values >=0 will keep the thread sleep (Nano Second Unit.)
-To Save the start time stamp (Instead of the end)[Effective for result files also]
sampleresult.timestamp.start=true
-To save list variable names with values in the result data files, we use commas to separate the names.
sample_variables=SESSION_ID,REFERENCE
[Note : Currently it saves the values in XML as attributes,so the names must be valid XML names]
-To set network response size in calculation method
Note : Size = Number of bytes for response body return by web server. If it is false, the (uncompressed) response data size will used (default before jmeter 2.5)
Include headers: Add the headers size in real size
sampleresult.getbytes.body_real_size=true
sampleresult.getbytes.headers_size=true
-To set Prefix to identify file names that are relative to the current base
jmeter.save.saveservice.base_prefix=~/
This will be long post as all specification depends on client. I will try to add more from further experiences.
..Thanks...:)