Binding Tcl to Target

Binding Tcl to Target

Post by sanja » Sun, 12 Sep 2004 08:41:44

Hi Folks,

I am pretty new to scripting and would appreciate your help. I have
been told to use Tcl to automate testing (have to write test cases and
then somehow execute them on the actual application). Our application
are on both Unix and Windows platforms.

My question is: How do the Tcl script files interact with applications
on Unix and Windows (applications coded in C/C++). In other words I
have an application running on unix or windows, how do I make Tcl
interact with that running application to execute a test case.


Binding Tcl to Target

Post by clair » Sun, 12 Sep 2004 11:08:04

In article < XXXX@XXXXX.COM >,

There are many ways. It sounds as though precisely
that is a big part of the responsibility you have in
your role.

It might take a couple of rounds before we understand
each other. To begin, should we regard the "application
running on unix or windows" as a "command-line" or "GUI"
executable, in general? Can you offer a single example
of "a test case" so we have a clearer picture of your


Binding Tcl to Target

Post by clair » Wed, 15 Sep 2004 23:08:04

In article < XXXX@XXXXX.COM >, I asked:

Mr. Dewan wrote me privately. I'll quote part of that
below. Mr. Dewan, this'll probably work best if you con-
tinue to post your comments here in comp.lang.tcl, so
several people have the opportunity to help out.

"... The OS will most probably be Unix or Vxworks or
Symbian. Example of a test case could be making a mobile
connection (call) between two components of a wireless

To be successful at testing, you need to operationalize
those further. Unix/VxWorks/Symbian are promising
alternatives ... Conventional testing is an application
of predicate logic: construct propositions of the form
if certain actions are taken, then
a result is observable.
In your example, how are failure and success of the test
case known? Is it that a light somewhere starts to shine,
or someone hears a familiar voice, or, closer to Tcl's
heart, because a certain software application emits a
"Connection established" message?

I'm tempted to advise you just to fly me in for a day. I
have considerable experience in telecomm testing, and, I
suspect, could help you accelerate your progress.