I have a for loop in which I would like to create list and add values to there.
FOR ${i} IN RANGE 3
*Create list List_${i}
- Add values to list
END
How could I do it? So that after exit the for loop, I would have list_1 & list_2 and list_3
Meaning I can create dynamic variable like this:
FOR ${idx} IN RANGE 3
${var_name} = Catenate SEPARATOR=_ var ${idx}
Set Suite Variable ${${var_name}} ${idx}
END
Maybe it is some easy way to do the same with @list ?
This does not work:
FOR ${i} IN RANGE 3
Log ${i}
${var_name}= Catenate SEPARATOR=_ TEST_NAME ${i}
Log ${var_name}
@{${${var_name}}}= Create List data
END