/** * A newly created component can be initialized with the contents of a Test * Element object by calling this method. The component is responsible for * querying the Test Element object for the relevant information to display * in its GUI. * * @param el * the TestElement to configure */ @Override public void configure(TestElement el) { super.configure(el); if (el instanceof TestPlan) { TestPlan tp = (TestPlan) el; functionalMode.setSelected(tp.isFunctionalMode()); serializedMode.setSelected(tp.isSerialized()); tearDownOnShutdown.setSelected(tp.isTearDownOnShutdown()); final JMeterProperty udv = tp.getUserDefinedVariablesAsProperty(); if (udv != null) { argsPanel.configure((Arguments) udv.getObjectValue()); } browseJar.setFiles(tp.getTestPlanClasspathArray()); } }
userObject.addTestElement(item); userObject.setName(item.getName()); userObject.setFunctionalMode(tp.isFunctionalMode()); userObject.setSerialized(tp.isSerialized()); addSubTree(subTree.getTree(item), current);