Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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".

like image 900
Amitk Avatar asked Dec 27 '18 15:12

Amitk


2 Answers

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.

like image 142
user7294900 Avatar answered Oct 20 '22 02:10

user7294900


  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
    

    enter image description here

  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)
like image 4
Dmitri T Avatar answered Oct 20 '22 03:10

Dmitri T