I'm working with some property arrays to add a named child to the name map, but I can't seem to get them to work right. I can get them to work with certain properties, but when I try to use a property that is a property of a object it won't work.
- item / parent / and childName are defined elsewhere, didn't think they were relevant to the example
<font class="small">Code:</font><hr /><pre>
var propArray = new Array(2);
propArray = "NativeClrObject.Name";
propArray = "DataObject.ClrClassName";
var arr = new Array();
arr = ConvertJScriptArray(propArray);
var newItem = item.AddNamedChild(parent, childName, "", arr);
var objDict = Sys.OleObject("Scripting.Dictionary");
for (var i in JScriptArray)
If I change the properties to something like "ControlId" it will work, but I needed the sub-properties of specified objects. (It seems like its possible since I can define them by hand on the name map with the properties I want.)
Thanks in advance,
Re: Property Arrays
The AddNamedChild method lets you map an object only by its immediate properties. Mapping an object by properties that belong to objects returned by the immediate properties is possible only at design time. See the "Mapping an object with TestComplete’s dialogs and panels" section of the "Adding Name Mapping Items" topic.