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.