use of org.apache.jmeter.sampler.TestAction in project jmeter by apache.
the class TestActionGui method configure.
@Override
public void configure(TestElement element) {
super.configure(element);
TestAction ta = (TestAction) element;
target = ta.getTarget();
if (target == TestAction.THREAD) {
targetBox.setSelectedItem(THREAD_TARGET_LABEL);
} else {
targetBox.setSelectedItem(TEST_TARGET_LABEL);
}
action = ta.getAction();
switch(action) {
case TestAction.PAUSE:
pauseButton.setSelected(true);
break;
case TestAction.STOP_NOW:
stopNowButton.setSelected(true);
break;
case TestAction.STOP:
stopButton.setSelected(true);
break;
case TestAction.RESTART_NEXT_LOOP:
restartNextThreadLoopButton.setSelected(true);
break;
case TestAction.START_NEXT_ITERATION_CURRENT_LOOP:
startNextIterationOfCurrentLoopButton.setSelected(true);
break;
case TestAction.BREAK_CURRENT_LOOP:
breakLoopButton.setSelected(true);
break;
default:
break;
}
durationField.setText(ta.getDurationAsString());
}
Aggregations