Public Function Activate(test_object) test_object.object.Activate Reporter.ReportEvent micDone, test_object.object.Text +".Activate", "" End Function RegisterUserFunc "SwfWindow", "Activate", "Activate", True
You should take note of the following known issues related to the WinToolbarsManager™ control:
When there is more than one docking area on the form and more than one custom server initialized for that areas, duplicate instances of the DropdownContext and ClickMenuTool actions are recorded. These duplicate actions need to be removed manually.
When the drop-down list on a context menu is opened, the DropdownContext action is recorded for that submenu. This action is superfluous and should be removed manually from the test script.
A mouse click must be recorded on the toolbar in order to start recording the new ShortcutKey method.
When recording actions on WinGridColumnChooser™, you must record an action over the grid that is attached to the WinGridColumnChooser control before using the column chooser. This is required so that the grid gets added to the HP QuickTest Professional object repository.
When the WinToolbarsManager ribbon is visible, the form’s Activate action throws an “Object not visible” run-time error. This is due to the fact that the Activate action is trying to click on the form’s caption area which is hidden by the Ribbon.
The workaround for this issue is to override the Activate action using a Function Library (FL) as follows:
Create a new Function Library (FL) in HP QuickTest Professional.
Add the following script to the function library:
Public Function Activate(test_object) test_object.object.Activate Reporter.ReportEvent micDone, test_object.object.Text +".Activate", "" End Function RegisterUserFunc "SwfWindow", "Activate", "Activate", True
Save the FL and associate it with your test.
This issue is fixed in HP QuickTest Professional patch QTPNET91P2204. * User actions are not recorded for controls inside the PopupControlContainer. Test scripts need to be manually modified to simulate these actions using the WScriptShell object to send key strokes to the active object. Review the HP QuickTest Professional help for more information on using WScriptShell. * When using MDI Merging while the Office2007Compatibility property is set to True (or default which resolved to True) on the WinToolbarsManager control, the Ribbon tabs and groups with the same keys will both be displayed on WinToolbarsManger’s Ribbon. This will cause an issue in identifying the Ribbon tabs and groups if the user is using the RecordByText setting for the WinToolbarsManager control. To avoid this issue, you must do either of the following:
Use the Settings Utility to switch to the RecordItemsByIndex setting on the WinToolbarsManager control.
Manually change the recorded actions and switch Ribbon tabs and groups keys by their indexes.
If the Office2007Compaitibility property is set to False on the WinToolbarsManager control, and you are using MDIMerging, RibbonTabs with the same keys and different contextual tab groups may encounter an issue during the replay of a recorded script. This is due to the fact that you are using the RecordByText setting for WinToolbarsManager, which would record using the Key. To avoid this issue, the record setting should be changed to RecordByIndex for for ToolbarsManager using the Settings Utility.
A mouse click needs to be recorded on the Ribbon or the toolbar before recording any actions on the MiniToolbar. If the Ribbon or Toolbar is not displayed on the form, MiniToolbar will record actions off the floating Dock ara in which the MiniToolbar is displayed.
When the ClickMiniToolbarTool action is recorded for the MiniToolbar off the floating Dock area, an error with the message "Cannot access a disposed object" may be displayed during replay. This error is thrown when the MiniToolbar is displayed more than once. The reason for this error is that HP QuickTest Professional picks up the multiple appearances of the MiniToolbar as one object and during the replay for the second appearance, HP QuickTest Professional tries to replay the action on the first instance of MiniToolbar that has already been disposed. The workaround for this issue is to force HP QuickTest Professional to recognize each instance of MiniToolbar as a different object. To do that, you can implement the workaround specified in Infragistics AppStylist for Windows Forms.
When replaying any actions on the MiniToolbar that exists on the form by itself, without the Ribbon or Toolbar, and is displayed by right-clicking, you may encounter a General run error. To resolve this issue, add the swftypename property to the Test object details in the Object repositories for the SwfToolbar object. The value for the swftypename property should be set to "Infragistics.Win.UltraToolbars.UltraToolbarsDockArea.