org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel Java Examples

The following examples show how to use org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebSocketConnectionSamplerPanel.java    From jmeter-bzm-plugins with Apache License 2.0 5 votes vote down vote up
public WebSocketConnectionSamplerPanel() {
    initComponents();
    attributePanel = new HTTPArgumentsPanel();
    patternsPanel = new ArgumentsPanel("Response Patterns");
    querystringAttributesPanel.add(attributePanel);
    querystringPatternsPanel.add(patternsPanel);
}
 
Example #2
Source File: WebSocketConnectionConfigGui.java    From jmeter-bzm-plugins with Apache License 2.0 5 votes vote down vote up
@Override
public void modifyTestElement(TestElement te) {
    configureTestElement(te);
    if (te instanceof ConfigTestElement) {
    	ConfigTestElement configTestElement = (ConfigTestElement) te;
    	configTestElement.setProperty("WebSocketConnectionConfig.Server", webSocketConnectionConfigPanel.getServer());
    	configTestElement.setProperty("WebSocketConnectionConfig.Port", webSocketConnectionConfigPanel.getPort());
    	configTestElement.setProperty("WebSocketConnectionConfig.ConnectionTimeout", webSocketConnectionConfigPanel.getConnectionTimeout());
    	configTestElement.setProperty("WebSocketConnectionConfig.Protocol", webSocketConnectionConfigPanel.getProtocolSelected());
    	configTestElement.setProperty("WebSocketConnectionConfig.Path", webSocketConnectionConfigPanel.getPath());
    	configTestElement.setProperty("WebSocketConnectionConfig.Topic", webSocketConnectionConfigPanel.getTopic());
    	configTestElement.setProperty("WebSocketConnectionConfig.Encoding", webSocketConnectionConfigPanel.getContentEncoding());
    	configTestElement.setProperty("WebSocketConnectionConfig.Implementation", webSocketConnectionConfigPanel.getImplementation());
        configTestElement.setProperty("WebSocketConnectionConfig.CloseConnectionPattern", webSocketConnectionConfigPanel.getCloseConnectionPattern());
        configTestElement.setProperty("WebSocketConnectionConfig.ProtocolWSMQTTComboBox", webSocketConnectionConfigPanel.getProtocolWSMQTTComboBox());
        configTestElement.setProperty("WebSocketConnectionConfig.LogLevel", webSocketConnectionConfigPanel.getLogLevel());
        
        
        HTTPArgumentsPanel queryStringParameters = webSocketConnectionConfigPanel.getAttributePanel();
        if (queryStringParameters != null) {
        	configTestElement.setProperty(new TestElementProperty("WebSocketConnectionConfig.HTTPRequest.ARGUMENTS", (Arguments)queryStringParameters.createTestElement()));
        }
        
        ArgumentsPanel queryStringPatterns = webSocketConnectionConfigPanel.getPatternsPanel();
        if (queryStringPatterns != null) {
        	configTestElement.setProperty(new TestElementProperty("WebSocketConnectionConfig.ResponsePatterns.ARGUMENTS", (Arguments)queryStringPatterns.createTestElement()));
        }
    }
}
 
Example #3
Source File: WebSocketConnectionConfigPanel.java    From jmeter-bzm-plugins with Apache License 2.0 5 votes vote down vote up
public WebSocketConnectionConfigPanel() {
    initComponents();
    attributePanel = new HTTPArgumentsPanel();
    patternsPanel = new ArgumentsPanel("Response Patterns");
    querystringAttributesPanel.add(attributePanel);
    querystringPatternsPanel.add(patternsPanel);
}
 
Example #4
Source File: WebSocketSamplerPanel.java    From JMeter-WebSocketSampler with Apache License 2.0 5 votes vote down vote up
/**
 * Creates new form WebSocketSamplerPanel
 */
public WebSocketSamplerPanel() {
    initComponents();

    attributePanel = new HTTPArgumentsPanel();
    querystringAttributesPanel.add(attributePanel);
}
 
Example #5
Source File: WebSocketApplicationResponse.java    From JMeter-WebSocketSampler with Apache License 2.0 5 votes vote down vote up
/**
 * Creates new form WebSocketSamplerPanel
 */
public WebSocketApplicationResponse() {
    initComponents();

    attributePanel = new HTTPArgumentsPanel();
    querystringAttributesPanel.add(attributePanel);
}
 
Example #6
Source File: WebSocketApplicationRequest.java    From JMeter-WebSocketSampler with Apache License 2.0 5 votes vote down vote up
/**
 * Creates new form WebSocketSamplerPanel
 */
public WebSocketApplicationRequest() {
    initComponents();

    attributePanel = new HTTPArgumentsPanel();
    querystringAttributesPanel.add(attributePanel);
}
 
Example #7
Source File: WebSocketApplicationConfig.java    From JMeter-WebSocketSampler with Apache License 2.0 5 votes vote down vote up
/**
 * Creates new form WebSocketSamplerPanel
 */
public WebSocketApplicationConfig() {
    initComponents();

    attributePanel = new HTTPArgumentsPanel();
    querystringAttributesPanel.add(attributePanel);
}
 
Example #8
Source File: WebSocketSamplerGui.java    From jmeter-websocket with Apache License 2.0 5 votes vote down vote up
private void init() {
    setLayout(new BorderLayout(0, 5));

    if (displayName) {
        setBorder(makeBorder());
        add(makeTitlePanel(), BorderLayout.NORTH);
    }

    // MAIN PANEL
    VerticalPanel mainPanel = new VerticalPanel();
    JPanel webRequestPanel = new HorizontalPanel();
    JPanel serverPanel = new JPanel();
    serverPanel.setLayout(new BoxLayout(serverPanel, BoxLayout.X_AXIS));
    serverPanel.add(getDomainPanel());
    serverPanel.add(getPortPanel());

    webRequestPanel.add(serverPanel, BorderLayout.NORTH);
    JPanel northPanel = new JPanel();
    northPanel.setLayout(new BoxLayout(northPanel, BoxLayout.Y_AXIS));
    northPanel.add(getProtocolAndPathPanel());

    webRequestPanel.add(northPanel, BorderLayout.CENTER);
    argsPanel = new HTTPArgumentsPanel();
    webRequestPanel.add(argsPanel, BorderLayout.SOUTH);

    mainPanel.add(webRequestPanel);
    mainPanel.add(getSendMessagePanel());
    mainPanel.add(getRecvMessagePanel());
    add(mainPanel, BorderLayout.CENTER);
}
 
Example #9
Source File: WebSocketConnectionConfigPanel.java    From jmeter-bzm-plugins with Apache License 2.0 4 votes vote down vote up
/**
 * @return the attributePanel
 */
public HTTPArgumentsPanel getAttributePanel() {
    return attributePanel;
}