<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=421541505-20062008>Well, looks like someone did such a comparison just
recently. Just FYI PDF at the link below</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><A
href="http://www.site.uottawa.ca/~bernard/A%20comparison%20between%20ttcn-3%20and%20python%20v%2011.pdf">http://www.site.uottawa.ca/~bernard/A%20comparison%20between%20ttcn-3%20and%20python%20v%2011.pdf</A></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=421541505-20062008><FONT face=Arial
color=#0000ff size=2>Comparing TTCN-3 with raw python as they have done is not
fair. But even then some of the comparisons made does not seem to make good use
of python constructs to be fair. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421541505-20062008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421541505-20062008><FONT face=Arial
color=#0000ff size=2>It seems to me with a little bit of a well written python
test framework behind the scenes the comparison wouldn't be as bad as this
document shows. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421541505-20062008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421541505-20062008><FONT face=Arial
color=#0000ff size=2>For example they compare a TTCN-3 structure and template to
Python objects. But I am guessing for these uses a Dictionary would have been a
better way of representing a TTCN-3 template or structure in
python.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421541505-20062008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421541505-20062008><FONT face=Arial
color=#0000ff size=2>Anyway, </FONT> <FONT face=Arial color=#0000ff
size=2>to me what this does point out is that the current python test
frameworks(python the language) are just good enough, compared to TTCN-3. We
just need a better python test framework and may be in that process we may be
able to identify some python language constructs, if any, that might
make it easier to build the test framework or describe test
cases. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421541505-20062008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421541505-20062008><FONT face=Arial
color=#0000ff size=2>Sarvi</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Saravanan Shanmugham (sarvi)
<BR><B>Sent:</B> Wednesday, June 11, 2008 1:28 PM<BR><B>To:</B>
'python-list@python.org'<BR><B>Subject:</B> Python as a Testing Language -
TTCN-3 Comparison<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2> Is there any work being done to make Python
better suited for writing test cases for any problem
space.</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2> 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.</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2> 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).</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2> But I found something called TTCN-3 which is a
language designed specifcally for describing test cases. </FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial size=2>I found the
following comparison of TTCN-3 with Junit and Tcl</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2> <A
href="http://www.site.uottawa.ca/~bernard/Tutorial_JUnit_tcltk_ttcn-3_animated.pdf">http://www.site.uottawa.ca/~bernard/Tutorial_JUnit_tcltk_ttcn-3_animated.pdf</A></FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial size=2>It clearly shows
the elegance of the language when it comes to describing test
cases.</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial size=2>Questions:
</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial size=2> 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.
</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial size=2> 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.</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2>Thx,</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2>Sarvi</FONT></SPAN></DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125070220-11062008><FONT face=Arial
size=2></FONT></SPAN> </DIV></BLOCKQUOTE></BODY></HTML>