<HTML>
<HEAD>
<TITLE>Python Design Patterns Question</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
Hi <BR>
My problem space is to test emedded systems. <BR>
Or standlone processes on Virtual Machine.<BR>
In general entities that have well defined external interfaces that I want to exercises.<BR>
<BR>
Python is my language of choice, ofourse.<BR>
Its good as a general purpose language and has a lot of design patterns and idioms that allow for simple, compact and readable writing of general algorithms. <BR>
But I am not sure how they apply for testing design patterns.<BR>
<BR>
I’ve been looking for good design patterns in python for testing.<BR>
<BR>
So far as I have seen TTCN-3, explained below has some very good design patterns for testing scenarios<BR>
<BR>
</SPAN></FONT><FONT FACE="Arial"><SPAN STYLE='font-size:12pt'><B>TTCN</B>-<B>3</B> - A new Test Specification Language for Black-Box Testing <<FONT COLOR="#0000FF"><U><a href="http://www.google.com/url?sa=t&source=web&cd=2&ved=0CBgQFjAB&url=http%3A%2F%2Fciteseerx.ist.psu.edu%2Fviewdoc%2Fdownload%3Fdoi%3D10.1.1.59.1521%26rep%3Drep1%26type%3Dpdf&rct=j&q=TTCN-3%20alt&ei=G8icTKD9OpK2sAPn5rjVAQ&usg=AFQjCNGGxZ4rjZ091jg5IXYAKl4hP9Z4iw&sig2=h_4yveDAhE_Aw8nvfsECJw">http://www.google.com/url?sa=t&source=web&cd=2&ved=0CBgQFjAB&url=http%3A%2F%2Fciteseerx.ist.psu.edu%2Fviewdoc%2Fdownload%3Fdoi%3D10.1.1.59.1521%26rep%3Drep1%26type%3Dpdf&rct=j&q=TTCN-3%20alt&ei=G8icTKD9OpK2sAPn5rjVAQ&usg=AFQjCNGGxZ4rjZ091jg5IXYAKl4hP9Z4iw&sig2=h_4yveDAhE_Aw8nvfsECJw</a></U></FONT>> <BR>
</SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
What is the best way to write these things in python. <BR>
Is there python framework/library that enhances the experience.<BR>
<BR>
Some thinks in TTCN-3 that I like is <BR>
</SPAN></FONT><OL><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>The “ALT” behaviour. Section 9 above has some variations
</SPAN></FONT><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Template Matching as in 4.3<BR>
</SPAN></FONT></OL><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
Another way asking the question is, What would be the best way/design-pattern to write the following test case in python <BR>
<FONT COLOR="#0000FF"><U><a href="http://www.site.uottawa.ca/~bernard/SOAP_client.ttcn3">http://www.site.uottawa.ca/~bernard/SOAP_client.ttcn3</a><BR>
</U></FONT><BR>
<BR>
Thx<BR>
Sarvi<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>