Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
An error occurred: Unknown arg: testing errorlevel=1 Press any key to continue

Open 1 Answers 779 Views
0 1

jmx loc = "E:\Abhishek\Performance testing result\abc.jmx"
jtl loc = "E:\Abhishek\Performance testing result\def.jtl"
Jmeter loc = "E:\Abhishek\Performance testing tools\apache-jmeter-3.3\apache-jmeter-3.3\bin"

in cmd i moved to bin loc

1) jmeter -n -t \Abhishek\Performance testing result\abc.jmx  -l \Abhishek\Performance testing result\def.jtl

2) jmeter -n -t abc.jmx -l def.jtl

am getting an error
An error occurred: Unknown arg: testing
errorlevel=1
Press any key to continue . . .

how to resolve this ??

Read more: https://softwaretestingboard.com/qna/2725/

1 Answer

1
1

first, maintain test result file in bin folder after that run this command and if you want to log then run this command:
jmeter -n -t YourJmeterTestPlan.jmx -l TestResultFile.jtl  -j LogFile.log
 

answered by (748 points)
5Comments
commented by (872 points)
i have one doubt all the files shoud be in bin folder ah ?
(i,e) .jmx, .jtl, .log .
then only this cmd will run
or
only .jtl file shoud be in bin folder ?

Copied from Abhishek's comment.
commented by (748 points)
First it make jmx file to save all records and if someone want run script in non gui mode for more than 10 users then run {jmeter -n -t YourJmeterTestPlan.jmx}  in cmd .After that TestResultFile maintain in bin folder in apache jmeter directory {-l TestResultFile.jtl} and if you want log then { -j LogFile.log }

>jmeter -n -t YourJmeterTestPlan.jmx -l TestResultFile.jtl  -j LogFile.log    //overall run in cmd
========================================================================
Helpful notes:
-n – Non-GUI mode – This specifies JMeter is to run in non-gui mode
-t – Name of JMX file that contains Test Plan
-l – Name of JTL file (JMeter text logs) to capture log results        
-j – Name of Log file to capture execution logs
commented by (188 points)
Thank You @Bharat, I will Try it .
commented by (188 points)
edited by
@Bharat

My Test plan Save location = "E:\Abhishek\Performance testing tools\apache-jmeter-3.3\apache-jmeter-3.3\bin\examples"
In this loc am having my .jmx and .jtl file

i moved to bin folder
i run the cmd
jmeter -n -t login.jmx -l sample.jtl

This time am getting
Could not open login.jmx

or
if i give like this

jmeter -n -t E:\Abhishek\Performance testing tools\apache-jmeter-3.3\apache-jmeter-3.3\bin\examples\login.jmx -l E:\Abhishek\Performance testing tools\apache-jmeter-3.3\apache-jmeter-3.3\bin\examples\sample.jtl

An error occurred: Unknown arg: testing
errorlevel=1
commented by (748 points)
If it possible to share jmx file wtih hide your aplication url .So, i can check in my end

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...