ianlop
2 years agoOccasional Contributor
Changing the value of a project variable through scripting
Hello
I'd like to change the value of a project variable through a script that has already been set as some value at some time at the beginning of execution.
So at the beginning of my python script i do something like this:
Project.Variable.Obj1 = Some Object
...
But then later on down the execution of my keyword test I want to reassign that project variable object to a new one through a method like so, where "projVarObj" would be the "reference" to the project variable "Obj1":
def foo(projVarObj, propNames=[], propValues=[])):
...
projVarObj = MainWindow.Find(propNames, propValues, 1000, True)
I have tried this but when I debug I see that the projVarObj is None.