sastowe
13 years agoSuper Contributor
slow execution while waiting for present objects
Observe this segment:
.ToolBar("Default").Button("Save").Click
set frmSave = Sys.Process("App").WaitWindow("#32770", "Select a location to Save", -1, 10000)
frmSave.Window("SHELLDLL_DefView").Window("SysListView32", "FolderView").DblClickItem OUTPUT_FOLDER, 0
frmSave.Window("ComboBoxEx32", "", 1).Window("ComboBox", "", 1).Window("Edit", "", 1).wText = asConfigs(i)
frmSave.Window("Button", "&Save", -2).Click
Set frmSave is waiting for a windows common save dialog. The wait continues waiting LONG after the window is presented. Once that form is presented, I can see all of the other objects on it. But in each case, one or more of the window objects on the form is waited for for a very long (20+ seconds) before TC finds it.
This is making for really slow operation of my tests since this segment is called a BUNCH.
Anyone know if/how I can speed recognition of these objects? Thanks
S
.ToolBar("Default").Button("Save").Click
set frmSave = Sys.Process("App").WaitWindow("#32770", "Select a location to Save", -1, 10000)
frmSave.Window("SHELLDLL_DefView").Window("SysListView32", "FolderView").DblClickItem OUTPUT_FOLDER, 0
frmSave.Window("ComboBoxEx32", "", 1).Window("ComboBox", "", 1).Window("Edit", "", 1).wText = asConfigs(i)
frmSave.Window("Button", "&Save", -2).Click
Set frmSave is waiting for a windows common save dialog. The wait continues waiting LONG after the window is presented. Once that form is presented, I can see all of the other objects on it. But in each case, one or more of the window objects on the form is waited for for a very long (20+ seconds) before TC finds it.
This is making for really slow operation of my tests since this segment is called a BUNCH.
Anyone know if/how I can speed recognition of these objects? Thanks
S