<br><br><div class="gmail_quote">On Nov 21, 2007 10:14 AM, David Malcolm &lt;<a href="mailto:dmalcolm@redhat.com">dmalcolm@redhat.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="Wj3C7c">On Wed, 2007-11-21 at 09:35 -0500, Noah Gift wrote:<br>&gt; I have a gigantic threaded beast I need to test, and I want to write<br>&gt; functional tests that supplement the doctests and unittests, but
<br>&gt; wanted some advice on the proper way to do this. &nbsp;I have not seen much<br>&gt; documentation on writing non-web functional tests, my tool is a CLI<br>&gt; tool. The basic thing I want to verify is that my tool creates a XML
<br>&gt; file with the information I would expect to be there. &nbsp;For example, is<br>&gt; there a selenium equivalent for command line tools?<br>&gt;<br></div></div>Have you tried the &quot;expect&quot; tool; see e.g.<br><a href="http://pexpect.sourceforge.net/" target="_blank">
http://pexpect.sourceforge.net/</a><br><br>Doesn&#39;t do recording AFAIK, but useful for invoking CLI tools in a<br>testing context<br></blockquote><div><br class="webkit-block-placeholder"></div><div>Dave,</div><div><br class="webkit-block-placeholder">
</div><div>I hadn&#39;t even thought of that, using pexpect is an interesting idea though. &nbsp;Recording command line tools seems like it could be a really cool open source testing project actually, now that I think about it more.... &nbsp;Maybe a Sprint for PyCon?
</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br>Hope this helps<br>Dave Malcolm<br><br><br></blockquote></div><br>