Contributions
Re: Objects was not found - SysTreeView32 in Windows 8
We implemented extended logging in Delphi script code and we got different results in TC and TE. It is seen that TE doesn't recognize Properties and Methods of the tested object. What is wrong? Delphi script code: procedure LoggingObjectProperties(obj: IDispatch); var props: aqObjIterator; prop: aqObjProperty; begin props := aqObject.GetProperties(obj); Log.Message('Begin Print Object (Name = ' + obj.Name + ') Properties', Sys.Desktop.ActiveWindow, pmHighest); while (props.HasNext) do begin prop := props.Next; Log.Message(' ' + prop.Name, Sys.Desktop.ActiveWindow, pmHighest); end; Log.Message('End Print Object Properties', Sys.Desktop.ActiveWindow, pmHighest); end; procedure LoggingObjectMethods(obj: IDispatch); var colMethods: aqObjIterator; Method: aqObjMethod; Params: string; i: integer; begin colMethods := aqObject.GetMethods(obj); Log.Message('Begin Print Object (Name = ' + obj.Name + ') Object Methods', Sys.Desktop.ActiveWindow, pmHighest); while (colMethods.HasNext) do begin Method := colMethods.Next; Params := ''; for i := 0 to Method.ParamCount - 1 do Params := Params + 'Param' + IntToStr(I) + ' - ' + Method.ParamName(I) + ', '; Log.Message(' ' + Method.Name + ': ' + Params, Sys.Desktop.ActiveWindow, pmHighest); end; Log.Message('End Print Object Methods', Sys.Desktop.ActiveWindow, pmHighest); end; Results in screenshots.1.2KViews0likes0CommentsObjects was not found - SysTreeView32 in Windows 8
The test has been written in TestComplete 10.0.531.7 (under Windows XP) and executes without errors. In TestExecute 10.0.531.11 (under Windows 8) it fails with the following error: An error occurred while accessing the "ClickItem" method or property of the "SysTreeView32" object. The object or one of its parent objects was not found. Object Whose Method or Property Was Accessed Alias: Aliases.SLV_sql.dlg_4.SHBrowseForFolderShellNameSpaceControl.SysTreeView32 Name mapping item: NameMapping.Sys.SLV_sql.dlg_4.SHBrowseForFolderShellNameSpaceControl.SysTreeView32 Object That Was Not Found Alias: Aliases.SLV_sql.dlg_4.SHBrowseForFolderShellNameSpaceControl.SysTreeView32 Name mapping item: NameMapping.Sys.SLV_sql.dlg_4.SHBrowseForFolderShellNameSpaceControl.SysTreeView32 Click the link above to view and configure mapping settings for the missing object. It is normal that the same message?2.7KViews0likes5Comments