Package org.apache.jmeter.testelement

Examples of org.apache.jmeter.testelement.TestElement.clone()


          tp.setSerialized(tp.isSerialized());
        }
                // TODO: this is a bit of a hack, but seems to work for the Include Controller
        if (item instanceof ReplaceableController) {
                    // HACK: force the controller to load its tree
                     ReplaceableController rc = (ReplaceableController) item.clone();
                     HashTree subTree = tree.getTree(item);
             if (subTree != null) {
                         HashTree replacementTree = rc.getReplacementSubTree();
                         if (replacementTree != null) {
                             convertSubTree(replacementTree);
View Full Code Here


            if (o instanceof TestElement) {
                TestElement item = (TestElement) o;
                if (item.isEnabled()) {
                    if (item instanceof ReplaceableController) {
                        // HACK: force the controller to load its tree
                        ReplaceableController rc = (ReplaceableController) item
                            .clone();
                        HashTree subTree = tree.getTree(item);
                        if (subTree != null) {
                            HashTree replacementTree = rc
                                .getReplacementSubTree();
View Full Code Here

                        // Unfortunately ModuleController is in components, not core
                        if (item.getClass().getName().equals("org.apache.jmeter.control.ModuleController")){ // Bug 47165
                            rc = (ReplaceableController) item;
                        } else {
                            // HACK: force the controller to load its tree
                            rc = (ReplaceableController) item.clone();
                        }

                        HashTree subTree = tree.getTree(item);
                        if (subTree != null) {
                            HashTree replacementTree = rc.getReplacementSubTree();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.