0
votes

JMeter Folder: C:\Jmeter\apache-jmeter-5.1.1\bin Script Folder: C:\Users\supra\OneDrive\Documents
JMeter Script Name: Google Home.jmx

While I am trying to execute Jmeter script named Google Home through cmd I am facing below error:

C:\Jmeter\apache-jmeter-5.1.1\bin>jmeter -n -t C:\Users\supra\OneDrive\Documents"Google Home.jmx" An error occurred: Unknown arg: Home.jmx errorlevel=1 Press any key to continue . . .

If I change script name "Google Home.jmx" to "Google.jmx", it is running successfully. Kindly help.

1
If there is space in filename put " around full path as "C:.....jmx"user7294900

1 Answers

0
votes

Either surround the path with quotation marks like:

jmeter -n -t "C:\Users\supra\OneDrive\Documents\Google Home.jmx" 

or use URL-like encoding:

jmeter -n -t C:\Users\supra\OneDrive\Documents\Google%20Home.jmx

Also consider: