If you are using Apache JMeter™ on a macOS machine, you probably encountered an annoying issue: double clicking on a JMeter JMX script doesn’t open JMeter GUI automatically! Instead, to open a JMX script in JMeter you have to open the terminal, navigate to your bin folder, run the /jmeter.sh command, click the ‘Open’ button in JMeter and choose your JMX script.

Luckily for all you Mac users, there is a way to automate this manual procedure, by using Apple’s Automator, The Automator is an OS X application that creates workflows for automating repetitive tasks into batches.

5a1c18e321931.jpg

Here is how you can use Automator to automate the process of opening a JMX script in JMeter:

  1. Open the Automator on your Mac.
  1. Choose ‘Application’.

  2. In the search field, search for Run Shell Script and double click on this option.

  3. Replace the ‘cat’ in the shell script field to the full path for your JMeter executable file

  4. Change the ‘Pass input’ on the top-right corner from ‘to stdin’ to ‘as arguments’.

  5. Save the application and give it a name, for example ‘JMeter’.

  6. Right click on a JMX script that you created, choose ‘Open With’ and select ‘Other..’.

  1. Select the new ‘JMeter’ application you created with Automator, check the ‘Always Open With’ checkbox and click on ‘Open’.
  1. Right click on a JMX file and click on ‘Get Info’.

  2. Make sure that the ‘Open With’ is set to JMeter, click on ‘Change All...’ and then click on ‘Continue’.

If you are using Apache JMeter™ on a macOS machine, you probably encountered an annoying issue: double clicking on a JMeter JMX script doesn’t open JMeter GUI automatically! Instead, to open a JMX script in JMeter you have to open the terminal, navigate to your bin folder, run the /jmeter.sh command, click the ‘Open’ button in JMeter and choose your JMX script. Luckily for all you Mac users, there is a way to automate this manual procedure, by using Apple’s Automator, The Automator is an OS X application that creates workflows for automating repetitive tasks into batches. ![5a1c18e321931.jpg](serve/attachment&path=5a1c18e321931.jpg) Here is how you can use Automator to automate the process of opening a JMX script in JMeter: 1. Open the Automator on your Mac. 2. Choose ‘Application’. 3. In the search field, search for Run Shell Script and double click on this option. 4. Replace the ‘cat’ in the shell script field to the full path for your JMeter executable file 5. Change the ‘Pass input’ on the top-right corner from ‘to stdin’ to ‘as arguments’. 6. Save the application and give it a name, for example ‘JMeter’. 7. Right click on a JMX script that you created, choose ‘Open With’ and select ‘Other..’. 8. Select the new ‘JMeter’ application you created with Automator, check the ‘Always Open With’ checkbox and click on ‘Open’. 9. Right click on a JMX file and click on ‘Get Info’. 10. Make sure that the ‘Open With’ is set to JMeter, click on ‘Change All...’ and then click on ‘Continue’.
edited Nov 27 '17 at 7:26 pm
 
0
reply
83
views
0
replies
1
followers
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft