Testing ActiveX Controls using QuickTest Professional


Many applications include ActiveX controls developed with third-party vendors. You can use the QuickTest Professional ActiveX Add-in to test ActiveX controls. You can create and run software tests and components on these controls, as well as check their properties. QuickTest Professional supports Software Testing on ActiveX controls in any application.

  • In QuickTest Professional ActiveX Add-in is considered a Windows-Based add-in.
  • You can check the properties of an ActiveX control as you check the properties of any other Windows object. You can also use output value steps to output property or text values from the objects in your ActiveX application.
  • When you create a checkpoint on an ActiveX control, QuickTest Professional captures all the properties for an ActiveX control, but it does not select any properties to check.
  • You use the Windows Applications tab in the Options dialog box to set global preferences for testing ActiveX applications.
  • You use the Windows Applications tab of the Record and Run Settings dialog box or the Application Area Settings dialog box to set preferences for testing ActiveX applications.
  • The ActiveX Add-in provides custom test objects, methods, and properties that can be used when testing objects (controls) in ActiveX applications.
  • The application containing the ActiveX controls on which you want to record must be opened after setting the Record and Run options.
  • In QuickTest Professional It is recommended that you begin your recording session before opening the application containing the ActiveX controls on which you want to record.
  • When testing ActiveX objects in a browser, the top-level ActiveX object is inserted within the standard Web object hierarchy, for example, Browser > Page > ActiveX.
  • QuickTest Professional can record on standard controls within an ActiveX control and if an ActiveX control contains another ActiveX control, then QuickTest Professional can record and run on this internal control as well. For example, suppose your ActiveX control is a calendar that contains a drop-down list from which you can choose the month. If you record a click in the list to select the month of May, QuickTest Professional records this step in the Expert View as:

Dialog("ActiveX Calendars").ActiveX("SMonth Control").WinComboBox("ComboBox").Select "May"

  • When creating a programmatic description for an ActiveX test object and the relevant run-time object is windowless (has no window handle associated with it), you must add the windowless property to the description and set its value to True. For Example:

Set ButDesc = Description.Create
ButDesc("ProgId").Value = "Forms.CommandButton.1"
ButDesc("Caption").Value = "OK"
ButDesc("Windowless").Value = True


No comments:

Post a Comment