<HTML>
<HEAD>
<TITLE>Re: [TIP] Python Testing Design Patterns Question</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Looks like someone has already given this a shot. Hadn&#8217;t seen it before. <BR>
<a href="http://snoops.roy202.org/testerman/">http://snoops.roy202.org/testerman/</a><BR>
<BR>
Has anyone used this? Like? Don&#8217;t Like?<BR>
<BR>
Sarvi<BR>
<BR>
On 9/24/10 9:15 AM, &quot;Saravanan Shanmugham&quot; &lt;<a href="sarvi@cisco.com">sarvi@cisco.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
Hi <BR>
&nbsp;&nbsp;&nbsp;&nbsp;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. &nbsp;<BR>
But I am not sure how they apply for testing design patterns.<BR>
<BR>
I&#8217;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 &lt;<FONT COLOR="#0000FF"><U><a href="http://www.google.com/url?sa=t&amp;source=web&amp;cd=2&amp;ved=0CBgQFjAB&amp;url=http%3A%2F%2Fciteseerx.ist.psu.edu%2Fviewdoc%2Fdownload%3Fdoi%3D10.1.1.59.1521%26rep%3Drep1%26type%3Dpdf&amp;rct=j&amp;q=TTCN-3%20alt&amp;ei=G8icTKD9OpK2sAPn5rjVAQ&amp;usg=AFQjCNGGxZ4rjZ091jg5IXYAKl4hP9Z4iw&amp;sig2=h_4yveDAhE_Aw8nvfsECJw">http://www.google.com/url?sa=t&amp;source=web&amp;cd=2&amp;ved=0CBgQFjAB&amp;url=http%3A%2F%2Fciteseerx.ist.psu.edu%2Fviewdoc%2Fdownload%3Fdoi%3D10.1.1.59.1521%26rep%3Drep1%26type%3Dpdf&amp;rct=j&amp;q=TTCN-3%20alt&amp;ei=G8icTKD9OpK2sAPn5rjVAQ&amp;usg=AFQjCNGGxZ4rjZ091jg5IXYAKl4hP9Z4iw&amp;sig2=h_4yveDAhE_Aw8nvfsECJw</a></U></FONT>&gt; <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 &#8220;ALT&#8221; 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>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
testing-in-python mailing list<BR>
<a href="testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><BR>
<a href="http://lists.idyll.org/listinfo/testing-in-python">http://lists.idyll.org/listinfo/testing-in-python</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>