<br><br><div><span class="gmail_quote">On 7/7/06, <b class="gmail_sendername">Adrian Rutter</b> &lt;<a href="mailto:Adrian.Rutter@tnt.com">Adrian.Rutter@tnt.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Could anyone elaborate on this, and maybe give some simple examples? Are<br>you talking about creating a DSL?</blockquote><div><font size="2"><br>In a word, yes. Here is an example of a test.<br></font></div><div><pre class="code">
<font style="font-family: courier new,monospace;" size="2">      login <br>      goto AddMatterDialog do<br>        matter_no &quot;123#{unique}&quot;<br>        matter_name &quot;My Matter#{unique}&quot;<br>        open_date '1/1/2006'
<br>        matter_type 'Bankruptcy'<br>        work_group 'Taggart Corporate Division'<br>        professional_in_charge 'Hernandez, Mark'<br>      end<br>      browser_title.should_equal 'View Matter'<br><br style="font-family: courier new,monospace;">
</font><span style="font-family: arial,sans-serif;"><font size="2"><br>I got a lot of ideas from the Systir testing framework, although i ended up not actually using this library. I am also making heavy use of Rspec. Several articles on writing DSLs in Ruby were also helpful.
<br><br>Bret</font><br></span></pre></div></div>