Previous value in variable

Guys, I have a script that consumes an api via python, and then I write the number generated in a robot variable to use in the test.
however, it is recording in memory the value of the previous execution, even with the value of the variable updated in a robot.

example: call the request
generated the number x
and wrote x in the robot file
but when I read the variable of x
it shows the number y (previous)

Make sure you read the variable again after being written to file.

Variables don’t work like in Python, they must be forcibly updated.

1 Like