本文整理汇总了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);
}
示例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));
} */
}