It is confusing that when using "Save selection as" the produced jmx project has the selected steps sitting right under the test plan, instead of being under a test fragment. Thus one could be led to believe that the saved selection could be included as is. However this is not the case: the include controller will completely ignore anything in the included project that is not child of a test fragment. One could argue that it would be better to automatically save the selection under a test fragment so that it is ready for use with an include controller, unless the selection includes a thread group. I have not investigated thoroughly all the the possible consequences.
Actually, the saved file does not contain the top-level test plan. It's just that when the file is reloaded, it is added to the Test Plan (or the WorkBench, depending where it is imported). Changing this behaviour will likely cause other problems. However it might be possible to add a "Save as Test Fragment" option.
Date: Sat Oct 26 22:15:19 2013 New Revision: 1536040 URL: http://svn.apache.org/r1536040 Log: Bug 55693 - Add a "Save as Test Fragment" option Bugzilla Id: 55693 Modified: jmeter/trunk/src/core/org/apache/jmeter/control/gui/TestPlanGui.java jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionNames.java jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java jmeter/trunk/src/core/org/apache/jmeter/gui/util/JMeterMenuBar.java jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties jmeter/trunk/src/core/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java jmeter/trunk/xdocs/changes.xml
Date: Sat Oct 26 22:32:44 2013 New Revision: 1536042 URL: http://svn.apache.org/r1536042 Log: Bug 55693 - Add a "Save as Test Fragment" option Bugzilla Id: 55693 Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java
Date: Sun Oct 27 09:15:51 2013 New Revision: 1536071 URL: http://svn.apache.org/r1536071 Log: Bug 55693 - Add a "Save as Test Fragment" option Add missing labels Bugzilla Id: 55693 Modified: jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3258