fmendes
13 years agoContributor
Project Object Variable
I am trying to save an object to be used from multiple script routines or keyword tests. The problem I am having is that the value gets reset after the script function is executed i.e.
The value of the Project.Variables.MappingGrid is null when I run the code from another keyword test.
<code>
function StoreMappingGrid( grid )
{
if(Project.Variables.VariableExists("MappingGrid"))
{
Project.Variables.RemoveVariable("MappingGrid");
}
Project.Variables.AddVariable("MappingGrid", "Object");
Project.Variables.MappingGrid = grid;
}
function ValidateMappedData()
{
var mappingGrid = Project.Variables.MappingGrid;
}
</code>