Whenever I save my Test Plan the current WorkBench is not saved along with the Test Plan. I saved using "Ctrl-S" and "File > Save". I can save the WorkBench as its own ".jmx" file and then merge that into my Test Plan, but when I save my Test Plan again the merge that I made ceases to exist. This is rather annoying since I have set up a HTTP Proxy Server that has a long list of includes and excludes which takes a lot of effort to setup due to the usability (or lack of) of the includes and excludes UI. Im not sure whether this is by design or a bug, but seems to be a bug. As I see it JMeter loads one Test Plan at a time. Hence that workbench should be associated with one Test Plan since all Test Plans are going to be inherently different hence what works for one Test Plan in the workbench may not work for another. If the argument above does not settle well on the palate then the workbench should be global and saved as part of each users application settings. Or an HTTP Proxy Server should be able to be under a Test Plan. NOTE: Using Sun's JRE 1.6.0_01
Currently, this is by design. Changing to enhancement.
Is this useful now with Test Fragment ?
Created attachment 30142 [details] saving WorkBench to JMX Hi, Please, review my patch for this bug. I've added saving WorkBench in test HashTree.
As it stands, the patch unconditionally saves the Workbench with the Test Plan. This is a significant change and will adversely affect those who use the Workbench as a scratch pad. The saving of the Workbench should be optional. Also the patch includes lots of irrelevant changes - for example, the import statements are re-arranged, and some spacing is changed. Documentation also needs to be updated.
Created attachment 30156 [details] updated patch Sebb, I've added check-box to WorkBechGui to let user choose whether to save WB or not.
Date: Sun Apr 7 14:55:37 2013 New Revision: 1465406 URL: http://svn.apache.org/r1465406 Log: Bug 42428 - Workbench not saved with Test Plan Bugzilla Id: 42428 Modified: jmeter/trunk/src/core/org/apache/jmeter/control/gui/WorkBenchGui.java jmeter/trunk/src/core/org/apache/jmeter/gui/action/Save.java jmeter/trunk/src/core/org/apache/jmeter/gui/tree/JMeterTreeModel.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/testelement/WorkBench.java jmeter/trunk/xdocs/changes.xml
Thanks for patch. Applied with following modifications: - saveWorkbench was static with side effect of impacting all test plans, made it a property - Also removed some useless formatting changes
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1945