I don't have a Robot Framework environment to test right now but I think you can use: BuiltIn.Set test variable ${variable1} value