Forum Discussion
joeljons
Staff
11 years agoNow the code will look for the property called curHolidayVariable. Try changing it to
def holidayVariable = context.expand("\${#TestCase#${curHolidayVariable}}")
or
def holidayVariable = context.expand('${#TestCase#' + curHolidayVariable + '}')
That will make the code look for holiday_1, holiday_2, etc.