cf.registerUserDefinedCommandFactory(new UserDefinedCommandFactory() {
@Override
public Command newCommand(int index, String name, String... args) {
if (!"setBoolean".equals(name))
return null;
return new Command(index, name, args, 2) {
@Override
protected Result doCommandImpl(TestCase testCase, Runner runner) {
runner.getVarsMap().put(args[1], Boolean.parseBoolean(args[0]));
return Success.SUCCESS;