I have a requirement to execute a set-up method before executing all the tests. And this set-up method is supposed to have 10 global variables and intializing those within that method. So adding this piece code each time i want to a add a global variable.
Project.Variables.AddVariable("Plugin_table","String")
Project.Variables.Plugin_table = "Testing"And each time before i begin to run a test i need to make sure i wipe out all the variables before running the test with the below code, but it does not work well. The reason why i try to delete is because it does not let me add the same variable since it already exists due to the previous run as a persistent variable.
varcount = Project.Variables.VariableCount
for i in range (0,varcount):
if Project.Variables.VariableExists(Project.Variables.GetVariableName(i)):
Project.Variables.RemoveVariable(Project.Variables.GetVariableName(i))Has anyone worked with such a scenario before?

