Project Variables of type Object
I'm trying to better understand working with Project Variables of type object in JScript. Could someone help me understand why the last couple of lines throw an exception.
function main()
{
var item = {};
item.sku = "11111";
item.description = "222222";
Project.Variables.ItemDef = item; // Project.Variables.ItemDef is defined as a temporary variable of type object in the project
item.location = "3333";
// Project.Variables.ItemDef.city = "4444"; // this line throws an exception
var item2 = Project.Variables.ItemDef;
item2.state = "5555"; // this line also throws an exception
}
Thanks!
Ken
One of my colleagues (thanks Helen!) points out that this was a bug in TestComplete 8 and fixed in TestComplete 9. Sure enough, it fails for me when I try it in TestComplete 8. No known workaround.