Search in sources :

Example 1 with ResultAction

use of org.apache.jmeter.reporters.ResultAction in project jmeter by apache.

the class ResultActionGui method createTestElement.

/**
     * @see org.apache.jmeter.gui.JMeterGUIComponent#createTestElement()
     */
@Override
public TestElement createTestElement() {
    ResultAction resultAction = new ResultAction();
    modifyTestElement(resultAction);
    return resultAction;
}
Also used : ResultAction(org.apache.jmeter.reporters.ResultAction)

Example 2 with ResultAction

use of org.apache.jmeter.reporters.ResultAction in project jmeter by apache.

the class TestResultAction method setUp.

@Before
public void setUp() {
    JMeterContext jmctx = JMeterContextService.getContext();
    resultAction = new ResultAction();
    resultAction.setThreadContext(jmctx);
    JMeterVariables vars = new JMeterVariables();
    jmctx.setVariables(vars);
    sampleResult = new SampleResult();
    sampleResult.setResponseData(data, null);
}
Also used : JMeterVariables(org.apache.jmeter.threads.JMeterVariables) JMeterContext(org.apache.jmeter.threads.JMeterContext) SampleResult(org.apache.jmeter.samplers.SampleResult) ResultAction(org.apache.jmeter.reporters.ResultAction) Before(org.junit.Before)

Aggregations

ResultAction (org.apache.jmeter.reporters.ResultAction)2 SampleResult (org.apache.jmeter.samplers.SampleResult)1 JMeterContext (org.apache.jmeter.threads.JMeterContext)1 JMeterVariables (org.apache.jmeter.threads.JMeterVariables)1 Before (org.junit.Before)1