I think the Save action in JMeter should add the ".jmx" file extension if the user forgets to enter it when entering the file name. If the user forgets to do so, he will not be able to load the file back in, but has to change the name of the file first, to have the .jmx extension. I also think the save action should prompt before overwriting an existing file, when the user does a "save as".
Created attachment 20753 [details] Suggested patch The dialog when overwriting a file is optional, but I think the adding of the jmx extension should be done. Also, other code should probably be changed to use a string constant instead of ".jmx".
Good idea, but I think the extension should only be added if there is none. It can be useful to save a copy of a file with a different extension - e.g. for use in the include controller. I'll change the check accordingly.
Added to SVN in r571968. I'll raise another bug regarding centralisation of .jmx, .jtl etc strings.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1998