本文整理汇总了Java中org.apache.jmeter.control.TransactionController.setIncludeTimers方法的典型用法代码示例。如果您正苦于以下问题:Java TransactionController.setIncludeTimers方法的具体用法?Java TransactionController.setIncludeTimers怎么用?Java TransactionController.setIncludeTimers使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.jmeter.control.TransactionController
的用法示例。
在下文中一共展示了TransactionController.setIncludeTimers方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addTransactionController
import org.apache.jmeter.control.TransactionController; //导入方法依赖的package包/类
/**
* Helper method to add a Transaction Controller to contain the samplers.
* Called from Application Thread that needs to update GUI (JMeterTreeModel)
* @param model
* Test component tree model
* @param node
* Node in the tree where we will add the Controller
* @param name
* A name for the Controller
* @throws InvocationTargetException
* @throws InterruptedException
*/
private void addTransactionController(final JMeterTreeModel model, final JMeterTreeNode node, String name)
throws InterruptedException, InvocationTargetException {
final TransactionController sc = new TransactionController();
sc.setIncludeTimers(false);
sc.setProperty(TestElement.GUI_CLASS, TRANSACTION_CONTROLLER_GUI);
sc.setName(name);
JMeterUtils.runSafe(new Runnable() {
@Override
public void run() {
try {
model.addComponent(sc, node);
} catch (IllegalUserActionException e) {
log.error("Program error", e);
throw new Error(e);
}
}
});
}
示例2: initilizeElement
import org.apache.jmeter.control.TransactionController; //导入方法依赖的package包/类
@Override
public TestElement initilizeElement() {
TransactionController ele = new TransactionController();
this.baseElement(ele, "Transaction Controller");
ele.setGenerateParentSample(false);
ele.setIncludeTimers(false);
return ele;
}
示例3: modifyTestElement
import org.apache.jmeter.control.TransactionController; //导入方法依赖的package包/类
@Override
public void modifyTestElement(TestElement el) {
configureTestElement(el);
((TransactionController) el).setParent(parent.isSelected());
TransactionController tc = ((TransactionController) el);
tc.setParent(parent.isSelected());
tc.setIncludeTimers(includeTimers.isSelected());
}