Question: Python: I am writing a script in which I change values of a register to create a fail case. The registers are defined in the
Python: I am writing a script in which I change values of a register to create a fail case. The registers are defined in the beginning of the code as global variables. I call to these variables occasionally in my functions. If my script fails before finishing, the values stay the same I set to creating a loop of failed tests because the value is now changed.
How can I store the initial values of my global variables in a new variable so I can restest without manually changing all my values to start a new test?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
