TC has temporary variables types that can't be replicated as persistent variables
I need to create a Table Var as a persistent var - used for DDT loop
I can populate this temp var in real...
Persistant variables type
Larry_M
4 years agoNew Contributor
Hello Lee_M ,
Something that has worked for us is to create an event handler. Here is some documentation:
https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/about.html
We use the On Start Test event handler. In the handler, if the variable does not already exist, we add it. Then we update the value stored in it.
if not Project.Variables.VariableExists(variableName):
Project.Variables.AddVariable(variableName, variableDataType)
Project.Variables.VariableByName[variableName] = variableValue
Hope this is somewhat helpful and good luck,
Larry
Related Content
- 14 years ago
- 10 years ago