Make .jmx file to open by default (double click on file) with jmeter GUI on windows 10

妖精的绣舞 提交于 2020-06-13 00:17:14

问题


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:


  1. Use Assoc command to set file type association for JMeter .jmx scripts

    Assoc .jmx=jmeter
    
  2. Use FType command to define JMeter executable for the .jmx scripts

    FType jmeter="c:\apps\jmeter\bin\jmeter-t.cmd" %1
    

  3. 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
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!