Bug 55693 - Add a "Save as Test Fragment" option
Add a "Save as Test Fragment" option
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.10
All All
: P2 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-10-23 07:09 UTC by ambrosetti.nicola
Modified: 2013-10-27 09:17 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ambrosetti.nicola 2013-10-23 07:09:25 UTC
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.
Comment 1 Sebb 2013-10-23 16:26:29 UTC
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.
Comment 2 Philippe Mouawad 2013-10-26 22:16:32 UTC
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
Comment 3 Philippe Mouawad 2013-10-26 22:33:32 UTC
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
Comment 4 Philippe Mouawad 2013-10-27 09:17:31 UTC
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