variables.put("hello", "citrus:concat('Hello ', ${name}, '!')");
variables.put("goodbye", "Goodbye ${name}!");
variables.put("welcome", "Welcome ${name}, today is citrus:currentDate()!");
testcase.setVariableDefinitions(variables);
testcase.addTestAction(new AbstractTestAction() {
@Override
public void doExecute(TestContext context) {
Assert.assertEquals(context.getVariables().get(CitrusConstants.TEST_NAME_VARIABLE), "MyTestCase");
Assert.assertEquals(context.getVariables().get(CitrusConstants.TEST_PACKAGE_VARIABLE), TestCase.class.getPackage().getName());
Assert.assertEquals(context.getVariable("${name}"), "Citrus");