本文整理汇总了Java中org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel类的典型用法代码示例。如果您正苦于以下问题:Java HTTPArgumentsPanel类的具体用法?Java HTTPArgumentsPanel怎么用?Java HTTPArgumentsPanel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HTTPArgumentsPanel类属于org.apache.jmeter.protocol.http.gui包,在下文中一共展示了HTTPArgumentsPanel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: WebSocketConnectionSamplerPanel
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
public WebSocketConnectionSamplerPanel() {
initComponents();
attributePanel = new HTTPArgumentsPanel();
patternsPanel = new ArgumentsPanel("Response Patterns");
querystringAttributesPanel.add(attributePanel);
querystringPatternsPanel.add(patternsPanel);
}
示例2: modifyTestElement
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
@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()));
}
}
}
示例3: WebSocketConnectionConfigPanel
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
public WebSocketConnectionConfigPanel() {
initComponents();
attributePanel = new HTTPArgumentsPanel();
patternsPanel = new ArgumentsPanel("Response Patterns");
querystringAttributesPanel.add(attributePanel);
querystringPatternsPanel.add(patternsPanel);
}
示例4: getTestElement
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
public TestElement getTestElement() {
Preconditions.checkNotNull(name);
Preconditions.checkNotNull(value);
HTTPArgument httpArgument = new HTTPArgument();
httpArgument.setProperty(TestElement.GUI_CLASS, HTTPArgumentsPanel.class.getName().toString());
httpArgument.setProperty(TestElement.TEST_CLASS, HTTPSamplerProxy.class.getName().toString());
httpArgument.setName(name);
httpArgument.setValue(value);
httpArgument.setMetaData(getOptionalValue(metaData, "="));
httpArgument.setUseEquals(getOptionalValue(useEquals, true));
httpArgument.setAlwaysEncoded(getOptionalValue(setAlwaysEncoded, true));
return httpArgument;
}
示例5: getArgumentsElement
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
private Arguments getArgumentsElement(List<HTTPArgument> httpArguments) {
Arguments arguments = new Arguments();
arguments.setProperty(TestElement.GUI_CLASS, HTTPArgumentsPanel.class.getName());
arguments.setProperty(TestElement.TEST_CLASS, Arguments.class.getName());
arguments.setProperty(TestElement.ENABLED, true);
if (httpArguments != null) {
for (HTTPArgument httpArgument : httpArguments) {
arguments.addArgument(httpArgument);
}
}
return arguments;
}
示例6: WebSocketSamplerPanel
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
/**
* Creates new form WebSocketSamplerPanel
*/
public WebSocketSamplerPanel() {
initComponents();
attributePanel = new HTTPArgumentsPanel();
querystringAttributesPanel.add(attributePanel);
}
示例7: WebSocketSamplerPanel
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
/**
* Creates new form WebSocketSamplerPanel
*/
public WebSocketSamplerPanel() {
initComponents();
attributePanel = new HTTPArgumentsPanel();
querystringAttributesPanel.add(attributePanel);
}
示例8: WebSocketApplicationResponse
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
/**
* Creates new form WebSocketSamplerPanel
*/
public WebSocketApplicationResponse() {
initComponents();
attributePanel = new HTTPArgumentsPanel();
querystringAttributesPanel.add(attributePanel);
}
示例9: WebSocketApplicationRequest
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
/**
* Creates new form WebSocketSamplerPanel
*/
public WebSocketApplicationRequest() {
initComponents();
attributePanel = new HTTPArgumentsPanel();
querystringAttributesPanel.add(attributePanel);
}
示例10: WebSocketApplicationConfig
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
/**
* Creates new form WebSocketSamplerPanel
*/
public WebSocketApplicationConfig() {
initComponents();
attributePanel = new HTTPArgumentsPanel();
querystringAttributesPanel.add(attributePanel);
}
示例11: init
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
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);
}
示例12: getParameterPanel
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
protected JTabbedPane getParameterPanel() {
postContentTabbedPane = new ValidationTabbedPane();
argsPanel = new HTTPArgumentsPanel();
postContentTabbedPane.add(JMeterUtils.getResString("post_as_parameters"), argsPanel);// $NON-NLS-1$
if(showRawBodyPane) {
postBodyContent = new JSyntaxTextArea(30, 50);// $NON-NLS-1$
postContentTabbedPane.add(JMeterUtils.getResString("post_body"), new JTextScrollPane(postBodyContent));// $NON-NLS-1$
}
return postContentTabbedPane;
}
示例13: getAttributePanel
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
/**
* @return the attributePanel
*/
public HTTPArgumentsPanel getAttributePanel() {
return attributePanel;
}
示例14: init
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
public void init() {
initComponents();
postContentTabbedPane = new ValidationTabbedPane();
argsPanel = new HTTPArgumentsPanel();
postContentTabbedPane.add(JMeterUtils.getResString("post_as_parameters"), argsPanel);// $NON-NLS-1$
int indx = TAB_PARAMETERS;
tabRawBodyIndex = ++indx;
postBodyContent = JSyntaxTextArea.getInstance(30, 50);// $NON-NLS-1$
postContentTabbedPane.add(JMeterUtils.getResString("post_body"), JTextScrollPane.getInstance(postBodyContent));// $NON-NLS-1$
tabFileUploadIndex = ++indx;
filesPanel = new HTTPFileArgsPanel();
postContentTabbedPane.add(JMeterUtils.getResString("post_files_upload"), filesPanel);
parametersPanel.add(postContentTabbedPane);
}
示例15: testHTTPArgumentsPanel
import org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel; //导入依赖的package包/类
public void testHTTPArgumentsPanel() throws Exception{
assertTrue("HTTPArgumentsPanel Functor",HTTPArgumentsPanel.testFunctors());
}