Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1089191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:11:03+00:00 2026-05-16T23:11:03+00:00

We have a few Tcl/Tk scripts (because a GUI we use can incorporate macros

  • 0

We have a few Tcl/Tk scripts (because a GUI we use can incorporate macros only in Tcl).
I have just modified one of these, and want to test it.

We make use of Test::More for testing Perl modules, and have made a little use of Selenium for web pages, but we have never had any kind of automatic test rig for our Tcl/Tk scripts.

I’ve tried searching, but because Tcl’s original purpose was for testing, I’ve found it difficult to sort out if there are any hits about testing Tcl/Tk itself.

Does anybody know of a program which will let me run a Tcl/Tk script, and test its user interaction as well as its eventual operation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:11:04+00:00Added an answer on May 16, 2026 at 11:11 pm

    Are you asking specifically about GUI testing, or testing of Tcl scripts that may or may not have a GUI component?

    Tcl comes with tcltest, which is quite useful for testing tcl scripts. It lets you specify expected values, flag tests to run only on certain platforms, etc.

    To test GUIs there’s no clear cut answer. The tcl’ers wiki lists a few choices. However, since Tcl is a scripting language, you can easily write scripts that drive your application without the need for a fancy harness. What I’ve done in the past is create commands like “press_button” (eg: press_button “Open”) which looks for a button that has the label “Open” and invokes its callback. With Tcl’s powerful introspection capabilities, things like this are quite easy.

    The only real gotcha is when dealing with menus on Windows, since those are implemented with native controls so it’s a bit harder to interact with them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have few databses of sql 2000 on windows 2000. Can I attach these
I have few nested DIVs at page. I want to add event only for
I have few Vaadin tabs one of them is displaying an table and some
I have few TabPages and each contains rich text box. How can I access
I have few images embedded in my executable in resource section. I followed these
I have few PC's that run on slow Internet connection network + they use
I have few SQL scripts which setups the db of an app. have few
We have few projects, which are compiling my makefile. These make file working fine
I have few tabs with same form inside of them, only difference is location
I know that Tkinter is just a thin layer over Tcl/Tk. Tkinter you can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.