Python as a Testing Language - TTCN-3 Comparison

Saravanan Shanmugham (sarvi) sarvi at cisco.com
Wed Jun 11 16:27:39 EDT 2008


Hi,
     Is there any work being done to make Python better suited for
writing test cases for any problem space.
 
     I am a huge python fan and one of the things that got me there was
the simplicy and elegance its constructs that allow me to do complex
programming operations in very few lines without compromising on
readability.
 
     When I was looking for an efficient language for describing test
cases for any problem domain, I naturally thought Python would be my
best bet. (Even though Tcl is used extensively, and I have used it).
 
    But I found something called TTCN-3 which is a language designed
specifcally for describing test cases. 
I found the following comparison of TTCN-3 with Junit and Tcl
 
http://www.site.uottawa.ca/~bernard/Tutorial_JUnit_tcltk_ttcn-3_animated
.pdf
 
It clearly shows the elegance of the language when it comes to
describing test cases.
 
Questions: 
   1. Does anyone one know of a similar comparison of TTCN-3 with
Python? Or does some one have an idea how it would compare if we
actually did a comparison. 
   2. Two powerfull things that seems to make TTCN-3 suite for testing
is the Template matching mechanism and the concept Alternate matching or
Trees. How best do we do this in Python? Is there room for improvement
language constructs that could make this simpler.
 
Thx,
Sarvi
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080611/1690e912/attachment.html>


More information about the Python-list mailing list