Search in sources :

Example 6 with TransactionController

use of org.apache.jmeter.control.TransactionController in project jmeter by apache.

the class TestCompiler method configureTransactionSampler.

/**
     * Configures Transaction Sampler from SamplePackage extracted from Test plan and returns it
     * @param transactionSampler {@link TransactionSampler}
     * @return {@link SamplePackage}
     */
public SamplePackage configureTransactionSampler(TransactionSampler transactionSampler) {
    TransactionController controller = transactionSampler.getTransactionController();
    SamplePackage pack = transactionControllerConfigMap.get(controller);
    pack.setSampler(transactionSampler);
    return pack;
}
Also used : TransactionController(org.apache.jmeter.control.TransactionController)

Aggregations

TransactionController (org.apache.jmeter.control.TransactionController)6 ConfigTestElement (org.apache.jmeter.config.ConfigTestElement)2 Controller (org.apache.jmeter.control.Controller)2 TransactionSampler (org.apache.jmeter.control.TransactionSampler)2 LinkedList (java.util.LinkedList)1 Assertion (org.apache.jmeter.assertions.Assertion)1 PostProcessor (org.apache.jmeter.processor.PostProcessor)1 PreProcessor (org.apache.jmeter.processor.PreProcessor)1 SampleListener (org.apache.jmeter.samplers.SampleListener)1 Sampler (org.apache.jmeter.samplers.Sampler)1 TestElement (org.apache.jmeter.testelement.TestElement)1 Timer (org.apache.jmeter.timers.Timer)1