Bug 46921 - Add Ability to Change Controller elements
Summary: Add Ability to Change Controller elements
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.3.2
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 07:47 UTC by Noel O'Brien
Modified: 2011-11-21 00:24 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noel O'Brien 2009-03-26 07:47:50 UTC
Hi,

I think it would be very convenient to add the ability to convert test elements from one type to another, esp. for controllers, listeners and HTTP samplers.

e.g. I've got a simple controller I want to change it to an If controller. At the moment I need to either add the if controller as a child or parent, move the child elements of the simple controller to the if controller and then remove the simpler controller. It would be much more convenient to add e.g. a "Convert to.." context menu option, sampler to the "Add Parent" context menu option. 

Regards,
Noel
Comment 1 Sebb 2011-11-21 00:24:28 UTC
It's easy enough to add a new sampler and delete the old one.

However, replacing a Controller with many children is not as easy.
Implemented in SVN:

URL: http://svn.apache.org/viewvc?rev=1204302&view=rev
Log:
Bug 46921 - Add Ability to Change Controller elements

Added:
   jmeter/trunk/src/core/org/apache/jmeter/gui/action/ChangeParent.java   (with props)
Modified:
   jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionNames.java
   jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java
   jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
   jmeter/trunk/xdocs/changes.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:37:43 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2214