use of org.apache.jmeter.config.Arguments in project jmeter-plugins by undera.
the class ParameterizedControllerTest method testSetUserDefinedVariables.
@Test
public void testSetUserDefinedVariables() {
System.out.println("setUserDefinedVariables");
Arguments vars = new Arguments();
instance.setUserDefinedVariables(vars);
}
use of org.apache.jmeter.config.Arguments in project jmeter-plugins by undera.
the class ParameterizedControllerTest method testGetUserDefinedVariablesAsProperty.
@Test
public void testGetUserDefinedVariablesAsProperty() {
System.out.println("getUserDefinedVariablesAsProperty");
Arguments vars = new Arguments();
vars.addArgument("key", "value");
instance.setUserDefinedVariables(vars);
JMeterProperty result = instance.getUserDefinedVariablesAsProperty();
assertNotNull(result);
}
use of org.apache.jmeter.config.Arguments in project jmeter-plugins by undera.
the class ParameterizedControllerTest method testNext.
@Test
public void testNext() throws InvalidVariableException {
System.out.println("next");
Arguments args = new Arguments();
args.addArgument("var2", "${var1}");
args.addArgument("var3", "${var2}");
instance.setUserDefinedVariables(args);
ValueReplacer replacer = new ValueReplacer();
replacer.replaceValues(instance);
args.setRunningVersion(true);
instance.next();
JMeterVariables vars = JMeterContextService.getContext().getVariables();
assertEquals("${var2}", vars.get("var3"));
assertEquals("val1", vars.get("var2"));
instance.next();
assertEquals("val1", vars.get("var3"));
}
use of org.apache.jmeter.config.Arguments in project jmeter-plugins by undera.
the class SetVariablesActionTest method testSetUserDefinedVariables.
@Test
public void testSetUserDefinedVariables() {
System.out.println("setUserDefinedVariables");
Arguments vars = new Arguments();
vars.addArgument("var1", "val0");
instance.setUserDefinedVariables(vars);
JMeterProperty property = instance.getUserDefinedVariablesAsProperty();
Arguments args = (Arguments) property.getObjectValue();
assertEquals("val0", args.getArgumentsAsMap().get("var1"));
}
use of org.apache.jmeter.config.Arguments in project jmeter-plugins by undera.
the class JmsUtil method getDefaultParameters.
@Override
public Arguments getDefaultParameters() {
Arguments args = new Arguments();
args.addArgument("connection.url", "");
args.addArgument("binding.url", "");
args.addArgument("message", "");
args.addArgument("direction", "");
args.addArgument("header.properties", "");
args.addArgument("header.property.reference", "");
args.addArgument("message.selector", "");
args.addArgument("receive.timeout", "");
return args;
}
Aggregations