protected JPanel createAssertionsPanel(){ VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),"Assertions")); panel.add(createAssertionClassDropDown()); return panel; }
private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final) setLayout(new BorderLayout(0, 10)); setBorder(makeBorder()); add(makeTitlePanel(), BorderLayout.NORTH); JPanel mainPanel = new VerticalPanel(); mainPanel.add(createScopePanel()); // USER_INPUT VerticalPanel durationPanel = new VerticalPanel(); durationPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), getDurationAttributesTitle())); JPanel labelPanel = new JPanel(new BorderLayout(5, 0)); JLabel durationLabel = new JLabel(JMeterUtils.getResString("duration_assertion_label")); // $NON-NLS-1$ labelPanel.add(durationLabel, BorderLayout.WEST); duration = new JTextField(); labelPanel.add(duration, BorderLayout.CENTER); durationLabel.setLabelFor(duration); durationPanel.add(labelPanel); mainPanel.add(durationPanel); add(mainPanel, BorderLayout.CENTER); } }
/** * Inits the GUI. */ private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final) setLayout(new BorderLayout(0, 10)); setBorder(makeBorder()); add(makeTitlePanel(), BorderLayout.NORTH); JPanel mainPanel = new JPanel(new BorderLayout()); // USER_INPUT VerticalPanel assertionPanel = new VerticalPanel(); assertionPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "XML Schema")); // doctype HorizontalPanel xmlSchemaPanel = new HorizontalPanel(); xmlSchemaPanel.add(new JLabel(JMeterUtils.getResString("xmlschema_assertion_label"))); //$NON-NLS-1$ xmlSchema = new JTextField(26); xmlSchemaPanel.add(xmlSchema); assertionPanel.add(xmlSchemaPanel); mainPanel.add(assertionPanel, BorderLayout.NORTH); add(mainPanel, BorderLayout.CENTER); } }
public void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEtchedBorder()); add(panel, BorderLayout.CENTER); }
public void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEtchedBorder()); add(panel, BorderLayout.CENTER); }
private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final) threadPropsPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("thread_properties"))); // $NON-NLS-1$ threadPropsPanel.add(scheduler); VerticalPanel mainPanel = new VerticalPanel(); mainPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("scheduler_configuration"))); // $NON-NLS-1$ mainPanel.add(createDurationPanel());
private void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEtchedBorder()); jsonInputTextField = new JLabeledTextField("JSON input"); panel.add(jsonInputTextField); add(panel, BorderLayout.CENTER); }
assertionPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Tidy Settings")); formatPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Format")); htmlRadioButton = new JRadioButton("HTML", true); //$NON-NLS-1$ xhtmlRadioButton = new JRadioButton("XHTML", false); //$NON-NLS-1$
private void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEtchedBorder()); jsonInputTextField = new JLabeledTextField("JSON input"); panel.add(jsonInputTextField); add(panel, BorderLayout.CENTER); }
private JPanel createTestPlanContentPanel() { httpHeaders = new JCheckBox(JMeterUtils.getResString("proxy_headers")); // $NON-NLS-1$ httpHeaders.setSelected(true); // maintain original default httpHeaders.addActionListener(this); httpHeaders.setActionCommand(ENABLE_RESTART); addAssertions = new JCheckBox(JMeterUtils.getResString("proxy_assertions")); // $NON-NLS-1$ addAssertions.setSelected(false); addAssertions.addActionListener(this); addAssertions.setActionCommand(ENABLE_RESTART); regexMatch = new JCheckBox(JMeterUtils.getResString("proxy_regex")); // $NON-NLS-1$ regexMatch.setSelected(false); regexMatch.addActionListener(this); regexMatch.setActionCommand(ENABLE_RESTART); VerticalPanel mainPanel = new VerticalPanel(); mainPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("proxy_test_plan_content"))); // $NON-NLS-1$ HorizontalPanel nodeCreationPanel = new HorizontalPanel(); nodeCreationPanel.add(createGroupingPanel()); nodeCreationPanel.add(httpHeaders); nodeCreationPanel.add(addAssertions); nodeCreationPanel.add(regexMatch); HorizontalPanel targetPanel = new HorizontalPanel(); targetPanel.add(createTargetPanel()); mainPanel.add(targetPanel); mainPanel.add(nodeCreationPanel); return mainPanel; }
panel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0));
private void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEtchedBorder()); panel.add(getResourceConfigPanel(), BorderLayout.NORTH); panel.add(getRequestPanel(), BorderLayout.CENTER); add(panel, BorderLayout.CENTER); }
private void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); VerticalPanel panel = new VerticalPanel(); panel.setBorder(BorderFactory.createEtchedBorder()); panel.add(getResourceConfigPanel(), BorderLayout.NORTH); panel.add(getRequestPanel(), BorderLayout.CENTER); add(panel, BorderLayout.CENTER); }
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); }
/** * Create a standard title section for JMeter components. This includes the * title for the component and the Name Panel allowing the user to change * the name for the component. This method is typically added to the top of * the component at the beginning of the component's init method. * * @return a panel containing the component title and name panel */ protected Container makeTitlePanel() { VerticalPanel titlePanel = new VerticalPanel(); titlePanel.add(createTitleLabel()); VerticalPanel contentPanel = new VerticalPanel(); contentPanel.setBorder(BorderFactory.createEtchedBorder()); contentPanel.add(getNamePanel()); contentPanel.add(getCommentPanel()); titlePanel.add(contentPanel); return titlePanel; }
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); }