Jmeter - How do I see sampler data following running a test from Command line?

Tufty

I have a test which I have successfully run manually and am confident that it runs correctly.

I am now converting it to run via linux command line by parameterising it.

The test completes successfully and I'm successfully storing the 'Results Tree' and on opening the stored 'Results Tree' file I can see all tests have passed.

However, I cannot see any of the sampler data, which is making me deeply suspicious that the tests are not actually being run, merely that the requests are being sent and returned with the correct return code.

I need to be able to prove that certain values are being extracted and tested.

I tried inserting a Beanshell Post Processor but this generated more warning and error messages than it provided useful information.

Any help greatly appreciated.

Dmitri T

This is by design, JMeter doesn't store response data to avoid disk IO overhead as in case of high loads and large responses it may be a bottleneck which will ruin your test.

If you need to enable it for some reason, you can add the next 2 lines to user.properties file (located in JMeter's "bin" folder)

jmeter.save.saveservice.output_format=xml
jmeter.save.saveservice.response_data=true

JMeter restart will be required to pick the properties up.

Another way of one-time ad-hoc properties change is passing them via -J command-line argument like:

jmeter -Jjmeter.save.saveservice.output_format=xml -Jjmeter.save.saveservice.response_data=true -n -t test.jmx -l result.jtl

References:


UPD: if you need request data along with request and response headers:

jmeter.save.saveservice.output_format=xml
jmeter.save.saveservice.response_data=true
jmeter.save.saveservice.samplerData=true
jmeter.save.saveservice.requestHeaders=true
jmeter.save.saveservice.url=true
jmeter.save.saveservice.responseHeaders=true

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do I override the response content in a JMeter WebDriver sampler test?

What are the columns in the output of running a jmeter test from the command line?

How to make Jmeter run command from CMD - OS sampler - JMETER

How can I execute a curl command in OS process Sampler in jmeter?

How to write Rspec test for running file from command line?

How Do I generate Line Graph in PowerBI for the following Data

How do I stop a Python script from running in my command line?

How do I fix "ReferenceError: System is not defined" when running script from command line?

JMeter: How do I stop PreProcessors from running extra times

How do I test a long running command in aruba rspec?

How do i test the net speed from the command-line on a linux server(no gui)?

How do I capture the command line output of an already running application?

How do I find out command line arguments of a running program?

How do I get a list of running applications by using the command line?

How can I set proxy settings programatically for JMeter without running it using command line

jmeter webdriver sampler is not running when the test is run thru jenkins

Sequelize CLI: How do I keep test data seeders from running in production?

How do I execute a command in an iTerm window from the command line?

How to execute Jmeter test case from command line that is integrated with Robot framework

How to get throughput( in influx db) of each sampler i have in jmeter test

How do I detach from a controlling terminal from the command line?

How do I interpret output from "top" command? How do I see actual CPU load?

No such element error from Web Driver sampler in Jmeter while running headless

How do I translate the following "for /f" command from cmd for an equivalent command in Linux centos 6,64?

In Jmeter how do I set a variable number of threads using a beanshell sampler variable?

How to run the same sampler in Jmeter until I get specific result in response data Json

How do I see success of the following FMDatabase executeUpdate statement?

How to get Sampler Body data from beanshell Pre-Processor - JMeter

Jmeter: How can i disable specific thread group from command line