org.apache.jmeter.config.gui.ArgumentsPanel Java Examples

The following examples show how to use org.apache.jmeter.config.gui.ArgumentsPanel. 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: WebSocketSamplerGui.java    From JMeter-WebSocketSampler with Apache License 2.0 5 votes vote down vote up
@Override
public void modifyTestElement(TestElement te) {
    configureTestElement(te);
    if (te instanceof WebSocketSampler) {
        WebSocketSampler webSocketSamplerTestElement = (WebSocketSampler) te;
        webSocketSamplerTestElement.setServerAddress(webSocketSamplerPanel.getServerAddress());
        webSocketSamplerTestElement.setServerPort(webSocketSamplerPanel.getServerPort());
        webSocketSamplerTestElement.setImplementation(webSocketSamplerPanel.getImplementation());
        webSocketSamplerTestElement.setProtocol(webSocketSamplerPanel.getProtocol());
        webSocketSamplerTestElement.setContextPath(webSocketSamplerPanel.getContextPath());
        webSocketSamplerTestElement.setContentEncoding(webSocketSamplerPanel.getContentEncoding());
        webSocketSamplerTestElement.setRequestPayload(webSocketSamplerPanel.getRequestPayload());
        webSocketSamplerTestElement.setConnectionTimeout(webSocketSamplerPanel.getConnectionTimeout());
        webSocketSamplerTestElement.setResponseTimeout(webSocketSamplerPanel.getResponseTimeout());
        webSocketSamplerTestElement.setIgnoreSslErrors(webSocketSamplerPanel.isIgnoreSslErrors());
        webSocketSamplerTestElement.setStreamingConnection(webSocketSamplerPanel.isStreamingConnection());
        webSocketSamplerTestElement.setConnectionId(webSocketSamplerPanel.getConnectionId());
        webSocketSamplerTestElement.setResponsePattern(webSocketSamplerPanel.getResponsePattern());
        webSocketSamplerTestElement.setCloseConncectionPattern(webSocketSamplerPanel.getCloseConncectionPattern());
        webSocketSamplerTestElement.setProxyAddress(webSocketSamplerPanel.getProxyAddress());
        webSocketSamplerTestElement.setProxyPassword(webSocketSamplerPanel.getProxyPassword());
        webSocketSamplerTestElement.setProxyPort(webSocketSamplerPanel.getProxyPort());
        webSocketSamplerTestElement.setProxyUsername(webSocketSamplerPanel.getProxyUsername());
        webSocketSamplerTestElement.setMessageBacklog(webSocketSamplerPanel.getMessageBacklog());

        ArgumentsPanel queryStringParameters = webSocketSamplerPanel.getAttributePanel();
        if (queryStringParameters != null) {
            webSocketSamplerTestElement.setQueryStringParameters((Arguments)queryStringParameters.createTestElement());
        }
    }
}
 
Example #5
Source File: WebSocketSamplerGui.java    From JMeter-WebSocketSampler with Apache License 2.0 5 votes vote down vote up
@Override
public void modifyTestElement(TestElement te) {
    configureTestElement(te);
    if (te instanceof WebSocketSampler) {
        WebSocketSampler webSocketSamplerTestElement = (WebSocketSampler) te;
        webSocketSamplerTestElement.setServerAddress(webSocketSamplerPanel.getServerAddress());
        webSocketSamplerTestElement.setServerPort(webSocketSamplerPanel.getServerPort());
        webSocketSamplerTestElement.setImplementation(webSocketSamplerPanel.getImplementation());
        webSocketSamplerTestElement.setProtocol(webSocketSamplerPanel.getProtocol());
        webSocketSamplerTestElement.setContextPath(webSocketSamplerPanel.getContextPath());
        webSocketSamplerTestElement.setContentEncoding(webSocketSamplerPanel.getContentEncoding());
        webSocketSamplerTestElement.setRequestPayload(webSocketSamplerPanel.getRequestPayload());
        webSocketSamplerTestElement.setConnectionTimeout(webSocketSamplerPanel.getConnectionTimeout());
        webSocketSamplerTestElement.setResponseTimeout(webSocketSamplerPanel.getResponseTimeout());
        webSocketSamplerTestElement.setIgnoreSslErrors(webSocketSamplerPanel.isIgnoreSslErrors());
        webSocketSamplerTestElement.setStreamingConnection(webSocketSamplerPanel.isStreamingConnection());
        webSocketSamplerTestElement.setConnectionId(webSocketSamplerPanel.getConnectionId());
        webSocketSamplerTestElement.setResponsePattern(webSocketSamplerPanel.getResponsePattern());
        webSocketSamplerTestElement.setCloseConncectionPattern(webSocketSamplerPanel.getCloseConncectionPattern());
        webSocketSamplerTestElement.setProxyAddress(webSocketSamplerPanel.getProxyAddress());
        webSocketSamplerTestElement.setProxyPassword(webSocketSamplerPanel.getProxyPassword());
        webSocketSamplerTestElement.setProxyPort(webSocketSamplerPanel.getProxyPort());
        webSocketSamplerTestElement.setProxyUsername(webSocketSamplerPanel.getProxyUsername());
        webSocketSamplerTestElement.setMessageBacklog(webSocketSamplerPanel.getMessageBacklog());

        ArgumentsPanel queryStringParameters = webSocketSamplerPanel.getAttributePanel();
        if (queryStringParameters != null) {
            webSocketSamplerTestElement.setQueryStringParameters((Arguments)queryStringParameters.createTestElement());
        }
    }
}
 
Example #6
Source File: WebSocketConnectionSamplerPanel.java    From jmeter-bzm-plugins with Apache License 2.0 4 votes vote down vote up
/**
 * @return the attributePanel
 */
public ArgumentsPanel getAttributePanel() {
    return attributePanel;
}
 
Example #7
Source File: WebSocketConnectionSamplerPanel.java    From jmeter-bzm-plugins with Apache License 2.0 4 votes vote down vote up
public ArgumentsPanel getPatternsPanel() {
    return patternsPanel;
}
 
Example #8
Source File: WebSocketConnectionConfigPanel.java    From jmeter-bzm-plugins with Apache License 2.0 4 votes vote down vote up
public ArgumentsPanel getPatternsPanel() {
    return patternsPanel;
}
 
Example #9
Source File: WebSocketSamplerPanel.java    From JMeter-WebSocketSampler with Apache License 2.0 4 votes vote down vote up
/**
 * @return the attributePanel
 */
public ArgumentsPanel getAttributePanel() {
    return attributePanel;
}
 
Example #10
Source File: WebSocketApplicationResponse.java    From JMeter-WebSocketSampler with Apache License 2.0 4 votes vote down vote up
/**
 * @return the attributePanel
 */
public ArgumentsPanel getAttributePanel() {
    return attributePanel;
}
 
Example #11
Source File: WebSocketApplicationRequest.java    From JMeter-WebSocketSampler with Apache License 2.0 4 votes vote down vote up
/**
 * @return the attributePanel
 */
public ArgumentsPanel getAttributePanel() {
    return attributePanel;
}
 
Example #12
Source File: WebSocketApplicationConfig.java    From JMeter-WebSocketSampler with Apache License 2.0 4 votes vote down vote up
/**
 * @return the attributePanel
 */
public ArgumentsPanel getAttributePanel() {
    return attributePanel;
}
 
Example #13
Source File: SetVariablesActionGui.java    From jmeter-plugins with Apache License 2.0 4 votes vote down vote up
private JPanel createVariablePanel() {
    argsPanel = new ArgumentsPanel(JMeterUtils.getResString("user_defined_variables"), null, true, true);
    return argsPanel;
}
 
Example #14
Source File: ParameterizedControllerGui.java    From jmeter-plugins with Apache License 2.0 4 votes vote down vote up
private JPanel createVariablePanel() {
    argsPanel = new ArgumentsPanel(JMeterUtils.getResString("user_defined_variables"), null, true, true);
    return argsPanel;
}