本文整理汇总了Java中org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.setMD5方法的典型用法代码示例。如果您正苦于以下问题:Java HTTPSamplerBase.setMD5方法的具体用法?Java HTTPSamplerBase.setMD5怎么用?Java HTTPSamplerBase.setMD5使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase
的用法示例。
在下文中一共展示了HTTPSamplerBase.setMD5方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: modifyTestElement
import org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase; //导入方法依赖的package包/类
/**
* Modifies a given TestElement to mirror the data in the gui components.
*
* @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
*/
public void modifyTestElement(TestElement sampler) {
sampler.clear();
oauthConfigGui.modifyTestElement(sampler);
urlConfigGui.modifyTestElement(sampler);
final HTTPSamplerBase samplerBase = (HTTPSamplerBase) sampler;
if (getImages.isSelected()) {
samplerBase.setImageParser(true);
} else {
// The default is false, so we can remove the property to simplify JMX files
// This also allows HTTPDefaults to work for this checkbox
sampler.removeProperty(HTTPSamplerBase.IMAGE_PARSER);
}
samplerBase.setMonitor(isMon.isSelected());
samplerBase.setMD5(useMD5.isSelected());
samplerBase.setEmbeddedUrlRE(embeddedRE.getText());
this.configureTestElement(sampler);
}
示例2: modifyTestElement
import org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase; //导入方法依赖的package包/类
/**
* Modifies a given TestElement to mirror the data in the gui components.
* <p>
* {@inheritDoc}
*/
@Override
public void modifyTestElement(TestElement sampler) {
sampler.clear();
urlConfigGui.modifyTestElement(sampler);
final HTTPSamplerBase samplerBase = (HTTPSamplerBase) sampler;
samplerBase.setImageParser(getImages.isSelected());
enableConcurrentDwn(getImages.isSelected());
samplerBase.setConcurrentDwn(concurrentDwn.isSelected());
samplerBase.setConcurrentPool(concurrentPool.getText());
samplerBase.setMonitor(isMon.isSelected());
samplerBase.setMD5(useMD5.isSelected());
samplerBase.setEmbeddedUrlRE(embeddedRE.getText());
if (!isAJP) {
samplerBase.setIpSource(sourceIpAddr.getText());
samplerBase.setIpSourceType(sourceIpType.getSelectedIndex());
}
this.configureTestElement(sampler);
}