@Override public void configure(TestElement te) { super.configure(te); SetVariablesAction controller = (SetVariablesAction) te; final JMeterProperty udv = controller.getUserDefinedVariablesAsProperty(); if (udv != null && !(udv instanceof NullProperty)) { argsPanel.configure((Arguments) udv.getObjectValue()); } } }
@Override public void configure(TestElement te) { super.configure(te); ParameterizedController controller = (ParameterizedController) te; final JMeterProperty udv = controller.getUserDefinedVariablesAsProperty(); if (udv != null && !(udv instanceof NullProperty)) { argsPanel.configure((Arguments) udv.getObjectValue()); } } }
@Override public void configure(TestElement te) { super.configure(te); ParameterizedController controller = (ParameterizedController) te; final JMeterProperty udv = controller.getUserDefinedVariablesAsProperty(); if (udv != null) { argsPanel.configure((Arguments) udv.getObjectValue()); } } }
/** {@inheritDoc} */ @Override public void configure(TestElement config) { super.configure(config); argsPanel.configure((Arguments) config.getProperty(BackendListener.ARGUMENTS).getObjectValue()); className = config.getPropertyAsString(BackendListener.CLASSNAME); if(checkContainsClassName(classnameCombo.getModel(), className)) { classnameCombo.setSelectedItem(className); } else { log.error( "Error setting class: '{}' in BackendListener: {}, check for a missing jar in" + "your jmeter 'search_paths' and 'plugin_dependency_paths' properties", className, getName()); } queueSize.setText(((BackendListener)config).getQueueSize()); }
argsPanel.configure(newArgs); } catch (Exception e) { log.error("Error getting argument list for {}", newClassName, e);
argsPanel.configure(newArgs); warningLabel.setVisible(false); } catch (Exception e) {
addTest.setSelected(true); add.setText(element.getPropertyAsString(LDAPSampler.BASE_ENTRY_DN)); tableAddPanel.configure((TestElement) element.getProperty(LDAPSampler.ARGUMENTS).getObjectValue()); cl.show(cards, "Add"); } else if (testType.equals(LDAPSampler.MODIFY)) { modifyTest.setSelected(true); modify.setText(element.getPropertyAsString(LDAPSampler.BASE_ENTRY_DN)); tableModifyPanel.configure((TestElement) element.getProperty(LDAPSampler.ARGUMENTS).getObjectValue()); cl.show(cards, "Modify"); } else if (testType.equals(LDAPSampler.DELETE)) {
/** * @throws InstantiationException if function instantiation fails * @throws IllegalAccessException if function instantiation fails */ protected void initParameterPanel() throws InstantiationException, IllegalAccessException { Arguments args = new Arguments(); Function function = CompoundVariable.getFunctionClass(functionList.getText()).newInstance(); List<String> argumentDesc = function.getArgumentDesc(); for (String help : argumentDesc) { args.addArgument(help, ""); //$NON-NLS-1$ } parameterPanel.configure(args); parameterPanel.revalidate(); }
/** * 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()); } }
addTest.setSelected(true); add.setText(element.getPropertyAsString(LDAPExtSampler.BASE_ENTRY_DN)); tableAddPanel.configure((TestElement) element.getProperty(LDAPExtSampler.ARGUMENTS).getObjectValue()); cl.show(cards, CARDS_ADD); } else if (testType.equals(LDAPExtSampler.MODIFY)) {
@Override public void configure(TestElement el) { super.configure(el); if (el instanceof Arguments) { tableModel.clearData(); HTTPArgument.convertArgumentsToHTTP((Arguments) el); for (JMeterProperty jMeterProperty : ((Arguments) el).getArguments()) { HTTPArgument arg = (HTTPArgument) jMeterProperty.getObjectValue(); tableModel.addRow(arg); } } checkButtonsStatus(); }
/** {@inheritDoc} */ @Override public void configure(TestElement config) { super.configure(config); argsPanel.configure((Arguments) config.getProperty(JavaSampler.ARGUMENTS).getObjectValue()); String className = config.getPropertyAsString(JavaSampler.CLASSNAME); if(!checkContainsClassName(classNameLabeledChoice, className)) { classNameLabeledChoice.addValue(className); } warningLabel.setVisible(!classOk(className)); classNameLabeledChoice.setText(className); configureClassName(); }
@Override public void configure(TestElement el) { super.configure(el); SystemSampler systemSampler = (SystemSampler) el; checkReturnCode.setSelected(systemSampler.getCheckReturnCode()); desiredReturnCode.setText(Integer.toString(systemSampler.getExpectedReturnCode())); desiredReturnCode.setEnabled(checkReturnCode.isSelected()); command.setFilename(systemSampler.getCommand()); argsPanel.configure(systemSampler.getArguments()); envPanel.configure(systemSampler.getEnvironmentVariables()); directory.setFilename(systemSampler.getDirectory()); stdin.setFilename(systemSampler.getStdin()); stdout.setFilename(systemSampler.getStdout()); stderr.setFilename(systemSampler.getStderr()); timeout.setText(systemSampler.getTimeout() == 0L ? "": // $NON-NLS-1$ Long.toString(systemSampler.getTimeout())); // not sure if replace 0L to empty string is the good way. }
jndiPropertiesPanel.configure(sampler.getJNDIProperties());
@Override public void configure(TestElement element) { super.configure(element); if (element instanceof WebSocketSampler) { WebSocketSampler webSocketSamplerTestElement = (WebSocketSampler) element; webSocketSamplerPanel.setServerAddress(webSocketSamplerTestElement.getServerAddress()); webSocketSamplerPanel.setServerPort(webSocketSamplerTestElement.getServerPort()); webSocketSamplerPanel.setImplementation(webSocketSamplerTestElement.getImplementation()); webSocketSamplerPanel.setProtocol(webSocketSamplerTestElement.getProtocol()); webSocketSamplerPanel.setContextPath(webSocketSamplerTestElement.getContextPath()); webSocketSamplerPanel.setContentEncoding(webSocketSamplerTestElement.getContentEncoding()); webSocketSamplerPanel.setRequestPayload(webSocketSamplerTestElement.getRequestPayload()); webSocketSamplerPanel.setResponseTimeout(webSocketSamplerTestElement.getResponseTimeout()); webSocketSamplerPanel.setConnectionTimeout(webSocketSamplerTestElement.getConnectionTimeout()); webSocketSamplerPanel.setIgnoreSslErrors(webSocketSamplerTestElement.isIgnoreSslErrors()); webSocketSamplerPanel.setStreamingConnection(webSocketSamplerTestElement.isStreamingConnection()); webSocketSamplerPanel.setConnectionId(webSocketSamplerTestElement.getConnectionId()); webSocketSamplerPanel.setResponsePattern(webSocketSamplerTestElement.getResponsePattern()); webSocketSamplerPanel.setCloseConncectionPattern(webSocketSamplerTestElement.getCloseConncectionPattern()); webSocketSamplerPanel.setProxyAddress(webSocketSamplerTestElement.getProxyAddress()); webSocketSamplerPanel.setProxyPassword(webSocketSamplerTestElement.getProxyPassword()); webSocketSamplerPanel.setProxyPort(webSocketSamplerTestElement.getProxyPort()); webSocketSamplerPanel.setProxyUsername(webSocketSamplerTestElement.getProxyUsername()); webSocketSamplerPanel.setMessageBacklog(webSocketSamplerTestElement.getMessageBacklog()); Arguments queryStringParameters = webSocketSamplerTestElement.getQueryStringParameters(); if (queryStringParameters != null) { webSocketSamplerPanel.getAttributePanel().configure(queryStringParameters); } } }