1

I am running some jmeter tests through command line, and in that command I have the statement:

jmeter -n -t /abc.jmx -l /${START.HMS}Results.csv -e -o /${START.HMS}someFolder

which of course outputs the JMeter results into a file that is called "xxxxResults.csv" and its working fine for me.

My question is:

Is there a way in the command line to give a unique name to the test results folder?

Because when I run the above command .csv file is getting generated, but the dashboard is not getting created with the name ${START.HMS} some folder and seeing the following error in command line,

Error generating the report: org.apache.jmeter.report.core.SampleException: Could not locate input sample files!
Bharat Mane
6,78512 gold badges42 silver badges69 bronze badges
asked Sep 15, 2017 at 10:48

1 Answer 1

1

Make sure you have report-template folder in the same place where you run JMeter from.

Alternatively you can set location of the folder containing JMeter report templates by amending jmeter.reportgenerator.exporter.html.property.template_dir property, it can be done either in user.properties file or via -J command-line argument.

References:


Also be aware that your operating system doesn't know anything about ${START.HMS} property, you will need to get current timestamp in other way, i.e. using Time command on Windows systems or date command on Linux/Unix/MacOSX

answered Sep 18, 2017 at 4:41

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.