private JPanel getRequestPanel() { body = new JLabeledTextArea("Body"); headers = new JLabeledTextArea("Headers"); VerticalPanel panel = new VerticalPanel(); panel.add(headers, BorderLayout.NORTH); panel.add(body, BorderLayout.CENTER); return panel; }
private JPanel getRequestPanel() { body = new JLabeledTextArea("Body"); headers = new JLabeledTextArea("Headers"); VerticalPanel panel = new VerticalPanel(); panel.add(headers, BorderLayout.NORTH); panel.add(body, BorderLayout.CENTER); return panel; }
/** * Creates a new UI that provides means to configure the Command & Control endpoint to connect to for sending * commands and receiving command responses. */ public HonoCommanderSamplerUI() { honoServerOptions = new ServerOptionsPanel("Hono connection options"); reconnectAttempts = new JLabeledTextField("Max reconnect attempts"); tenant = new JLabeledTextField("Tenant"); command = new JLabeledTextArea("Command"); commandPayload = new JLabeledTextArea("Command payload"); commandTimeOut = new JLabeledTextField("Command Timeout In Milliseconds"); triggerType = new JComboBox(new String[] { "device", "sampler" }); triggerTypeDescription = new JTextArea(); addOption(honoServerOptions); addOption(reconnectAttempts); addOption(tenant); addOption(command); addOption(commandPayload); addOption(commandTimeOut); addOption(getTriggerTypePanel()); }
jsonValidation = new JCheckBox("Additionally assert value"); isRegex = new JCheckBox("Match as regular expression"); jsonValue = new JLabeledTextArea("Expected Value: "); expectNull = new JCheckBox("Expect null"); invert = new JCheckBox("Invert assertion (will fail if above conditions met)");
public void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0)); jsonPath = new JLabeledTextField("JSON Path: "); jsonValidation = new JCheckBox("Validate against expected value"); jsonValue = new JLabeledTextArea("Expected Value (regular expression): "); expectNull = new JCheckBox("Expect null"); invert = new JCheckBox("Invert assertion (will fail if above conditions met)"); jsonValidation.addChangeListener(this); expectNull.addChangeListener(this); panel.add(jsonPath); panel.add(jsonValidation); panel.add(jsonValue); panel.add(expectNull); panel.add(invert); add(panel, BorderLayout.CENTER); }
public void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(makeTitlePanel(), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0)); jsonPath = new JLabeledTextField(JMeterUtils.getResString("json_assertion_path")); jsonValidation = new JCheckBox(JMeterUtils.getResString("json_assertion_validation")); isRegex = new JCheckBox(JMeterUtils.getResString("json_assertion_regex")); jsonValue = new JLabeledTextArea(JMeterUtils.getResString("json_assertion_expected_value")); expectNull = new JCheckBox(JMeterUtils.getResString("json_assertion_null")); invert = new JCheckBox(JMeterUtils.getResString("json_assertion_invert")); jsonValidation.addChangeListener(this); expectNull.addChangeListener(this); panel.add(jsonPath); panel.add(jsonValidation); panel.add(isRegex); panel.add(jsonValue); panel.add(expectNull); panel.add(invert); add(panel, BorderLayout.CENTER); }
assertion = new JLabeledTextField("Registration Assertion"); contentType = new JLabeledTextField("Content type"); data = new JLabeledTextArea("Message data"); waitForCredits = new JCheckBox("Wait for credits if none left after sending"); waitForDeliveryResult = new JCheckBox("Wait for delivery result");