linux - How to not append the old Result.xml file in Jmeter? -


in jmeter in linux, creating result.xml each test suite on re-running gets appended old result.xml want create new result.xml

for need run rm -rf result.xml before test plan execution.

i used os process sampler in jmeter follows :

3 os process samplers

first need go folder result.xml , jmeter.jmx files there. path not fixed.

so have used pushd . save current path jmeter.jmx file run in non-gui mode(same directory result.xml present).

then popd go path should folder jmeter.jmx , result.xml file there.

and remove rm -rf result.xml should remove result.xml file.

then execute rest of calls , make new result.xml file in same directory.

execution sequence of entire suite


this method not working as, result of test execution doesnt give error there no new result.xml created. means if os process sampler placed before test suite, deletes new result.xml file. hence, before results tree created or executed, result.xml made.

how can run os process sampler remove old result.xml file?

the reason cannot remove file being opened jmeter writing results. can clean contents of file using single os process sampler configured like:

jmeter os process sampler configuration


in general approach not using xml output format , having listeners enabled during test run violates jmeter best practices listeners cause massive io overhead recommend reconsidering results saving approach , using -l command-line argument specify results file location instead of using listeners.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -