Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Does SilkTest support Tcl Tk GUI applications?

Does SilkTest support Tcl Tk GUI applications?

No SilkTest does not carry native support for Tcl Tk GUI applications. SilkTest will recognize CustomWin objects. The methods that you can use to work with CustomWin objects are as follows:

  • Record > Class to expose any public methods or properties.
  • Classmap (Record > Declarations, CTRL + ALT, click on the Class Map... button) the TK objects to existing SilkTest classes.

    Class-mapping will only work if the CustomWin responds to the same system messages that SilkTest expects for the standard control. Just because an object looks like a standard control does not mean that it will respond as one, and therefore it does not mean that class-mapping will be effective.

  • Use relative tagging.

    Additional information on Tcl Tk GUI:

    The information below was taken from http://en.wikipedia.org/wiki/Tk_%28computing%29 - the online wikipedia encyclopedia

    Tk is an open source, cross-platform widget toolkit, that is, a library of basic elements for building a Graphical User Interface (GUI).

    Tk provides the following widgets:


    as well as the following top-level windows:

    tk_chooseColor - pops up a dialog box for the user to select a color.
    tk_chooseDirectory - pops up a dialog box for the user to select a directory.
    tk_dialog - Create modal dialog and wait for response
    tk_getOpenFile - pop up a dialog box for the user to select a file to open or save.
    tk_messageBox - pops up a message window and waits for user response.
    tk_popup - Post a popup menu
    toplevel - Create and manipulate toplevel widgets

    The most unusual features of Tk are its canvas and text widgets, which provide capabilities found in few if any other widget toolkits.

    Tk provides three geometry managers:

    place - which positions widgets at absolute locations
    grid - which arranges widgets in a grid
    pack - which packs widgets into a cavity

    The information below was taken from http://www.tcl.tk/

    Tcl (Tool Command Language)
    is a very powerful but easy to learn dynamic programming language, suitable for a very wide range of uses, including web and desktop applications, networking, administration, testing and many more. Open source and business-friendly, Tcl is a mature yet evolving language that is truly cross platform, easily deployed and highly extensible.

    is a graphical user interface toolkit that takes developing desktop applications to a higher level than conventional approaches. Tk is the standard GUI not only for Tcl, but for many other dynamic languages, and can produce rich, native applications that run unchanged across Windows, Mac OS X, Linux and more.

Old KB# 21072


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:16
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.