当前位置: 首页>>代码示例>>Java>>正文


Java TestElement.getPropertyAsBoolean方法代码示例

本文整理汇总了Java中org.apache.jmeter.testelement.TestElement.getPropertyAsBoolean方法的典型用法代码示例。如果您正苦于以下问题:Java TestElement.getPropertyAsBoolean方法的具体用法?Java TestElement.getPropertyAsBoolean怎么用?Java TestElement.getPropertyAsBoolean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.jmeter.testelement.TestElement的用法示例。


在下文中一共展示了TestElement.getPropertyAsBoolean方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

import org.apache.jmeter.testelement.TestElement; //导入方法依赖的package包/类
@Override
public void configure(TestElement element) {
	super.configure(element);

	boolean cyclic = element.getPropertyAsBoolean(ARGUMENT_CYCLIC_ITERATOR);
	cyclicCheckbox.setSelected(cyclic);

	boolean shuffled = element.getPropertyAsBoolean(ARGUMENT_SHUFFLED_ITERATION);
	shuffledCheckbox.setSelected(shuffled);

	String spelFilter = element.getPropertyAsString(ARGUMENT_SPEL_FILTER);
	spelFilterField.setText(spelFilter);
}
 
开发者ID:qas-guru,项目名称:martini-jmeter-extension,代码行数:14,代码来源:MartiniPreProcessorGui.java

示例2: configure

import org.apache.jmeter.testelement.TestElement; //导入方法依赖的package包/类
public void configure(TestElement el) {
    setName(el.getName());
    Arguments arguments = (Arguments) el.getProperty(HTTP2Request.ARGUMENTS).getObjectValue();

    boolean useRaw = el.getPropertyAsBoolean(HTTP2Request.POST_BODY_RAW, HTTP2Request.POST_BODY_RAW_DEFAULT);
    if(useRaw) {
        String postBody = computePostBody(arguments, true); // Convert CRLF to CR, see modifyTestElement
        postBodyContent.setInitialText(postBody); 
        postBodyContent.setCaretPosition(0);
        postContentTabbedPane.setSelectedIndex(tabRawBodyIndex, false);
    } else {
        argsPanel.configure(arguments);
        postContentTabbedPane.setSelectedIndex(TAB_PARAMETERS, false);
        if(showFileUploadPane) {
            filesPanel.configure(el);                
        }
    }

    domain.setText(el.getPropertyAsString(HTTP2Request.DOMAIN));

    String portString = el.getPropertyAsString(HTTP2Request.PORT);

    // Only display the port number if it is meaningfully specified
    if (portString.equals(HTTP2Request.UNSPECIFIED_PORT_AS_STRING)) {
        port.setText(""); // $NON-NLS-1$
    } else {
        port.setText(portString);
    }
    responseTimeout.setText(el.getPropertyAsString(HTTP2Request.RESPONSE_TIMEOUT));
    protocol.setText(el.getPropertyAsString(HTTP2Request.PROTOCOL));
    contentEncoding.setText(el.getPropertyAsString(HTTP2Request.CONTENT_ENCODING));
    path.setText(el.getPropertyAsString(HTTP2Request.PATH));
    if (notConfigOnly){
        method.setSelectedItem(el.getPropertyAsString(HTTP2Request.METHOD));
        followRedirects.setSelected(el.getPropertyAsBoolean(HTTP2Request.FOLLOW_REDIRECTS));
        autoRedirects.setSelected(el.getPropertyAsBoolean(HTTP2Request.AUTO_REDIRECTS));
        requestId.setText(el.getPropertyAsString(HTTP2Request.REQUEST_ID));
    }
    syncRequest.setSelected(el.getPropertyAsBoolean(HTTP2Request.SYNCREQUEST));
    //TODO agregate implementation selection
    /*if (showImplementation) {
        httpImplementation.setText(el.getPropertyAsString(HTTP2Request.IMPLEMENTATION));
    } */
}
 
开发者ID:Blazemeter,项目名称:jmeter-bzm-plugins,代码行数:45,代码来源:HTTP2RequestPanel.java


注:本文中的org.apache.jmeter.testelement.TestElement.getPropertyAsBoolean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。