Setting ActiveX/Visual Basic Extension Options

This functionality is supported only if you are using the Classic Agent.

The ActiveX/VB options you can set are:

You can set the ActiveX/VB extension options by manually editing the axext.ini file. The settings go in the [VBOptions] section of axext.ini and are optional. You do not have to include them in your axext.ini if you want the default behavior.

SetAdvSink option

Default is TRUE. Setting the advise sink may cause certain applications to crash if they frequently destroy and recreate ActiveX/VB controls. Try setting this option to FALSE if your application under test crashes. Setting the option to FALSE disables the code in the ActiveX/VB extension that sets the advise sink.

ShowAllWin option

Default is FALSE. ShowAllWin lets you control whether or not Silk Test Classic recognizes the full window hierarchy in ActiveX applications. The default FALSE setting causes the ActiveX extension to construct a simplified window hierarchy that filters out windows perceived to be containers. Setting the option to TRUE causes the ActiveX extension to recognize the full window hierarchy. Try setting this option to TRUE if a control that you need to test is not recognized because it has the same position and size (in other words, the same rectangle) as another control that is recognized.

MsgTimeout option

Default is 1000. Setting the MsgTimeout option controls the number in milliseconds of the timeout used for messaging in the extension. 1000 milliseconds corresponds to 1 second. Try increasing the timeout to 2000 or 3000 (2 or 3 seconds) if you notice the following symptoms appearing at apparently random intervals:

  • The VB/ActiveX extension recognizes certain controls as CustomWin rather than as 4Test or recorded classes.
  • The application under test crashes while a test script is running.

Increasing the value of MsgTimeout may slow down the performance of Silk Test Classic when interacting with an application.

To edit the ActiveX/VB extension options

  1. Close Silk Test Classic and your application under test, if they are open.
  2. Open axext.ini, located in the extend subdirectory of the directory where you installed Silk Test Classic. If you are using a Silk Test Classic Project, the applicable axext.ini file is still in the Silk Test Classic install directory.
  3. Go to the [VBOptions] section and change the value of the option. You may need to add a line containing the [VBOptions] section name, if it does not already exist.
  4. Save and close the axext.ini file.
  5. Restart Silk Test Classic.