问题
I'm trying to make my windows 10 to open .jmx file with jmeter GUI when I double click on it.
I' using "apache-jmeter-3.2" and currently, in order to open a jmx file I am opening the jmeter jar "\apache-jmeter-3.2\bin\ApacheJMeter.jar" and then dragging the jmx file into it.
I have tried to use the "open with" windows feature, but if i navigate to the jar location and mark "show all files" in order to see .jar extenstions and select it, it show me a windows message says "this app cannot run on your PC".
回答1:
You should use jmeter-t.cmd (found in JMeter's bin folder)
drop a JMX file on this to load it in GUI mode
Associate file extension .jmx
to this command to open JMeter GUI on double click JMeter file.
回答2:
Use Assoc command to set file type association for JMeter .jmx scripts
Assoc .jmx=jmeter
Use FType command to define JMeter executable for the .jmx scripts
FType jmeter="c:\apps\jmeter\bin\jmeter-t.cmd" %1
- That's it, you should be now able to open .jmx scripts by double clicking them on Windows. Just in case here is how to configure MacOS for automatically opening JMeter scripts
- According to JMeter Best Practices you should always be using the latest version of JMeter so consider migrating to JMeter 5.0 (or whatever is the current version available at JMeter Downloads page)
来源:https://stackoverflow.com/questions/53947349/make-jmx-file-to-open-by-default-double-click-on-file-with-jmeter-gui-on-wind