I am running the JMeter script through cmd[non-gui mode] but unfortunately, I am unable to run the same. can you please help me ?
D:\Jmeter\apache-jmeter-5.1.1\bin>jmeter -n -t Regular_Expression_Practice.jmx
Nov 13, 2019 5:19:42 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Could not open Regular_Expression_Practice.jmx
Also for solutions, I have checked the below parameter : - I am having java installed only once and also the same path added in the environment variable.
To get rid of this bit:
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
open Command Prompt interpreter as Administrator and run JMeter. It can be done only once as normal User windows accounts cannot create registry keys.
This error:
Could not open Regular_Expression_Practice.jmx
may stand for either Java installation corruption or impossibility to read the file from the file system. Try the following hints:
Run JMeter using ApacheJMeter.jar
directly like:
java -jar ApacheJMeter.jar -n -t Regular_Expression_Practice.jmx
If the above suggestion doesn't work check out jmeter.log file, normally it should contain enough troubleshooting information to get to the bottom of the failure reason
This issue can be from different reason
Please try this step and let me know your feedback
Run with abovbe configuration if it fail then try this
Hope this will help you
I guess that Warning Message is a known Java issue (not JMeter specific):
Groovy Shell warning "Could not open/create prefs root node ..."
So that leaves "Could not open Regular_Expression_Practice.jmx"
I strongly recommend that you double-check your filenames and provide the full path to your test plan as well as the jmeter.bat.
D:\Jmeter\apache-jmeter-5.1.1\bin\jmeter.bat -n -t "D:\WHEREEVER\Regular_Expression_Practice.jmx"
I also faced the same issue, but the solution was as simple as including the full path properly! (if the file path to the .jmx file has spaces be sure to include the double quotes to wrap around)
User contributions licensed under CC BY-SA 3.0