I suggest the following enhancements to JMeter to make test element copying more seamless and more straightforward: 1. Enable test elements to be left in the Workspace between the loading of test plans, this will allow users to copy elements between test plans. 2. Enable drag & drop and copy/paste between separate instances of JMeter.
*** Bug 52176 has been marked as a duplicate of this bug. ***
Created attachment 27934 [details] Proposed enhancement as patch to build revision 1196526 of JMeter For compatibility the attached patch does not remove or replace the currently unused interfaces "getCopiedNode", "setCopiedNode" and some of the other obsolete variables and methods in the class "org.apache.jmeter.gui.action.Copy". The JMeter team may want to consider this additional cleanup. The patch does not address the DnD across instances.
Thanks for patch but: - It is not working under Mac OSX when using CMD+C/CMD+V (or apple C / apple V) while it is working OK with Menu Copy/paste. In the first case custom DataFlavor is not supported. Can you check if you have the same behaviour under Windows ? Another point, it makes hypothesis all JMeterTreeNode userdata are Serializable, not sure it is always the case.
True, this also fails for Windows. The reason is that the default transfer handler registered for the Tree component gets called after the Copy action and places its own stuff in the clipboard. I will have to give this implementation some rework. Stay tuned for an update.
Created attachment 29614 [details] Updated patch Here is the updated patch. After fix to 54172 the copy/paste now works OK. There remains an issue on ModuleController where reference is not pasted correctly. Patch needs upgrade to JDK6.
I found issue, so now I can commit it, but it requires upgrade to JDK 6. Are you OK with this ? What must we do to upgrade ? Thanks
(In reply to comment #6) > I found issue, so now I can commit it, but it requires upgrade to JDK 6. > > Are you OK with this ? > What must we do to upgrade ? Those are questions for the dev list, rather than here. > Thanks
Date: Sat Nov 24 20:34:40 2012 New Revision: 1413259 URL: http://svn.apache.org/viewvc?rev=1413259&view=rev Log: Bug 46677 - Copying Test Elements between test plans Bugzilla Id: 46677 Added: jmeter/trunk/src/core/org/apache/jmeter/util/JMeterTreeNodeTransferable.java (with props) Modified: jmeter/trunk/src/components/org/apache/jmeter/control/ModuleController.java jmeter/trunk/src/core/org/apache/jmeter/gui/action/Copy.java jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2199