Configuring result file data when running JMeter in non-GUI mode

HiChews123 :

I'm currently running JMeter in Non-GUI mode via:

"apache-jmeter/bin/jmeter -n -t $testPlan.jmx -l results.jtl"

When the tests finish running, the results.jtl file contains something like this:

1379545163610,186,HTTP Request,403,Forbidden,Service 1-30,text,false,239,186

It appears that it's using a default configuration for what should be outputted, but what if I'm interested in seeing only the latencies per line instead this big csv value? I know that when you use JMeter in GUI mode, and when you add a new listener such as "View Results In Table", you can configure what exactly should be written to the resulting jtl file such as response code, latency, thread name, etc.

I just want the latency data, however. How can configure this through this command line instead of through the GUI?

Thanks!

Manish Sapariya :

Update: The following is correct, but it's considered best practice to modify the user.properties file in order to avoid updates which may overwrite jmeter.properties (See the documentation).

Check out following set of properties in jmeter.properties.

#---------------------------------------------------------------------------
# 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

...
...
# Only applies to CSV format files:
jmeter.save.saveservice.print_field_names=true

print_field_names is by default false. Set it to true to figure out what column is what?

timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,bytes,Latency
1379564790444,652,jp@gc - Dummy Sampler,200,OK,Thread Group 1-1,text,true,87,78
1379564791099,1,Debug Sampler,200,OK,Thread Group 1-1,text,true,1175,0

By the way that big value is timestamp in epoch, if you meant 1st field by big value.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

log assertion result in NoN GUI mode[Jmeter]

jmeter.log file overrides each time when jmeter launched in GUI as well as NON GUI mode

JMeter result log does not include parent samples while running in NON-GUI mode, I need the parent samples

Properties from properties file are not used, when run jmeter test in NON GUI mode

In Jmeter how to record/capture only error sampler data in raw JTL file through non gui mode?

Does the property file reader works in jmeter non gui mode

JMeter does not pass token when executed in non-gui mode

Jmeter NullPointerException when running the GUI

how to get throughput of samples while running jmeter in non-GUI mode?

JMeter 500- Internal Error while running 100 users for the first time in Non-GUI mode

Jmeter Non GUI mode timestamp date format

Graph Results via Non GUI mode in JMeter

I can run my .jmx file using GUI mode but can't using non-gui mode. I am running command "jmeter -n -t Peda_First.jmx -l testresult.jtl" in terminal

How to get header values in .csv file generated in non gui mode of jmeter

Getting "Uncaught Exception BUG! exception in phase 'semantic analysis'" errors when jmeter runs in NON-GUI mode

JMeter: Why status as "Success" is not shown in View Result in a Tree's response Data when JMeter runs in Distributed mode

How to add date to JMeter csv result file while running in command line mode

Trying to run a JMeter test using a docker container for JMeter (non GUI mode) throws error "Could not open xxxx.jmx file"

Uncaught Exception java.lang.OutOfMemoryError: "unable to create new native thread" error occurring while running jmeter in non gui mode

JMeter - override jtl file in non GUI with dashboard

Jmeter run in ubuntu server none gui mode not show nothing result

set a variable in jmeter postprocessor and access in command prompt in NON GUI mode

JMeter Non-GUI-Mode one logfile for every sampler

Non gui mode does not provide advantage in my test in Jmeter?

"java.lang.IllegalArgumentException: Results log file is not empty" error showing while generate dashboard report for Non GUI mode in jmeter3.0

JMeter non-GUI mode taking longer than expected with minimal load

Trouble accessing properties set by JSR223 Sampler in JMeter non-GUI mode

Error while trying to merge results from different JTL files using the MergeResults PLUGIN in JMETER NON GUI mode

JMeter create custom .jtl log for each sampler in non-GUI mode