<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>WatirMelon &#187; Watir</title>
	<atom:link href="http://watirmelon.com/category/Watir/feed/" rel="self" type="application/rss+xml" />
	<link>http://watirmelon.com</link>
	<description>A 93% Watir Based Blog by Alister Scott</description>
	<lastBuildDate>Sun, 28 Jun 2009 03:03:55 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
		<url>http://www.gravatar.com/blavatar/c9de640b304257bb2361e16d95fec265?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>WatirMelon &#187; Watir</title>
		<link>http://watirmelon.com</link>
	</image>
			<item>
		<title>Watir.com</title>
		<link>http://watirmelon.com/2009/06/25/watir-com/</link>
		<comments>http://watirmelon.com/2009/06/25/watir-com/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 03:56:30 +0000</pubDate>
		<dc:creator>Alister Scott</dc:creator>
				<category><![CDATA[FireWatir]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[watir.com]]></category>

		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=238</guid>
		<description><![CDATA[I have spent a bit of time over the last few days setting up Watir.com, hosted here on WordPress.
We were originally aiming to host our own version of Confluence and JIRA and use Confluence to serve the Watir.com homepage, but this ended up being a lot more complicated and expensive than originally planned.
The great thing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=238&subd=watirmelon&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have spent a bit of time over the last few days setting up <a href="http://watir.com/">Watir.com</a>, hosted here on WordPress.</p>
<p>We were originally aiming to host our own version of Confluence and JIRA and use Confluence to serve the Watir.com homepage, but this ended up being a lot more complicated and expensive than originally planned.</p>
<p>The great thing about WordPress is, although it was originally a blogging platform, its functionality also works as a very neat CMS. Whilst wordpress.com has some limitations over wordpress.org, we can live with these limitations for now as we have a free (as in beer) hosted site that the world can see.</p>
<p>Check it out.</p>
<p><a href="http://watir.com"><img class="size-full wp-image-239 alignleft" title="watir.com" src="http://watirmelon.files.wordpress.com/2009/06/watir-com.jpg?w=450&#038;h=717" alt="watir.com" width="450" height="717" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/watirmelon.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/watirmelon.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/watirmelon.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/watirmelon.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/watirmelon.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/watirmelon.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/watirmelon.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/watirmelon.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/watirmelon.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/watirmelon.wordpress.com/238/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=238&subd=watirmelon&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://watirmelon.com/2009/06/25/watir-com/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/344eed26ff913de38b45620d18eed695?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">eclectic</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/06/watir-com.jpg" medium="image">
			<media:title type="html">watir.com</media:title>
		</media:content>
	</item>
		<item>
		<title>Watir presentation @ SIGIST Brisbane on May 26</title>
		<link>http://watirmelon.com/2009/04/06/watir-presentation-sigist-brisbane-on-may-26/</link>
		<comments>http://watirmelon.com/2009/04/06/watir-presentation-sigist-brisbane-on-may-26/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 06:57:42 +0000</pubDate>
		<dc:creator>Alister Scott</dc:creator>
				<category><![CDATA[Automated Testing]]></category>
		<category><![CDATA[Brisbane]]></category>
		<category><![CDATA[Business Driven]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[ANZTB]]></category>
		<category><![CDATA[Hilton]]></category>
		<category><![CDATA[ISTQB]]></category>
		<category><![CDATA[SIGIST]]></category>

		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=215</guid>
		<description><![CDATA[I will be presenting at a SIGIST (Special Interest Group in Software Testing) on Watir on May 26 @ the Hilton in Brisbane. Everyone is welcome to attend.

More details here.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=215&subd=watirmelon&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I will be presenting at a SIGIST (Special Interest Group in Software Testing) on Watir on May 26 @ the Hilton in Brisbane. Everyone is welcome to attend.</p>
<p><a href="http://watirmelon.files.wordpress.com/2009/04/brisbane-sigist.jpg"><img class="aligncenter size-full wp-image-216" title="brisbane-sigist" src="http://watirmelon.files.wordpress.com/2009/04/brisbane-sigist.jpg?w=450&#038;h=313" alt="brisbane-sigist" width="450" height="313" /></a><br />
More details <a href="http://watirmelon.files.wordpress.com/2009/04/brisbane-sigist-invite-26-may-09.pdf">here</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/watirmelon.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/watirmelon.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/watirmelon.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/watirmelon.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/watirmelon.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/watirmelon.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/watirmelon.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/watirmelon.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/watirmelon.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/watirmelon.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=215&subd=watirmelon&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://watirmelon.com/2009/04/06/watir-presentation-sigist-brisbane-on-may-26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/344eed26ff913de38b45620d18eed695?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">eclectic</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/04/brisbane-sigist.jpg" medium="image">
			<media:title type="html">brisbane-sigist</media:title>
		</media:content>
	</item>
		<item>
		<title>Introducing Watif</title>
		<link>http://watirmelon.com/2009/04/01/introducing-watif/</link>
		<comments>http://watirmelon.com/2009/04/01/introducing-watif/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 00:35:24 +0000</pubDate>
		<dc:creator>Alister Scott</dc:creator>
				<category><![CDATA[Automated Testing]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[FORTRAN]]></category>
		<category><![CDATA[Watif]]></category>

		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=205</guid>
		<description><![CDATA[
Watif if you don&#8217;t want to learn a new language just so you can test your web app?
Watif you want to kick it old-skool with punch cards?
Watif you want a fully supported automated test solution running SAS and with in built notifications of results?

Introducing Watif
Web Application Testing in FORTRAN:
web application testing that punches!
Watif is simple
Tests [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=205&subd=watirmelon&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><ul>
<li><strong>Watif</strong> if you don&#8217;t want to learn a new language just so you can test your web app?</li>
<li><strong>Watif</strong> you want to kick it old-skool with punch cards?</li>
<li><strong>Watif</strong> you want a fully supported automated test solution running SAS and with in built notifications of results?</li>
</ul>
<h2 style="text-align:center;">Introducing <strong>Watif</strong></h2>
<h2 style="text-align:center;">Web Application Testing in FORTRAN:<br />
web application testing that punches!</h2>
<p><strong>Watif is simple</strong></p>
<p>Tests are created using simple, easy to use coding forms, easily followed by business analysts and end users. No more expensive test automation engineers!</p>
<div id="attachment_206" class="wp-caption aligncenter" style="width: 310px"><a href="http://en.wikipedia.org/wiki/File:FortranCodingForm.png"><img class="size-medium wp-image-206" title="watifcodingform" src="http://watirmelon.files.wordpress.com/2009/04/watifcodingform.jpg?w=300&#038;h=190" alt="Watif Coding Form" width="300" height="190" /></a><p class="wp-caption-text">Watif Coding Form</p></div>
<p><strong>Watif is automated</strong></p>
<p>Code is created automatically on punch cards using state of the art FORTRAN compilers, saving you valuable compilation time.</p>
<div id="attachment_207" class="wp-caption aligncenter" style="width: 310px"><a href="http://en.wikipedia.org/wiki/File:FortranCardPROJ039.agr.jpg"><img class="size-medium wp-image-207" title="watifcode" src="http://watirmelon.files.wordpress.com/2009/04/watifcode.jpg?w=300&#038;h=144" alt="Sample Watif code (automatically generated)" width="300" height="144" /></a><p class="wp-caption-text">Sample Watif code (automatically generated)</p></div>
<p><strong>Watif is fully supported</strong></p>
<p>Watirfort is a new company of 1,000 monkeys, available 24/7 worldwide to commercially support Watif and make it a success in your organization.</p>
<div id="attachment_208" class="wp-caption aligncenter" style="width: 310px"><a href="http://en.wikipedia.org/wiki/File:Monkey-typing.jpg"><img class="size-medium wp-image-208" title="watirfort" src="http://watirmelon.files.wordpress.com/2009/04/watirfort.jpg?w=300&#038;h=214" alt="Fully supported by Watirfort" width="300" height="214" /></a><p class="wp-caption-text">Fully supported by Watirfort</p></div>
<p><strong>Watif is SAS</strong></p>
<p>All your tests are run by Watirfort using state of the art punch card processing systems, just like salesforce.com.</p>
<div id="attachment_209" class="wp-caption aligncenter" style="width: 310px"><a href="http://watirmelon.files.wordpress.com/2009/04/watirfort-lab.jpg"><img class="size-medium wp-image-209" title="watirfort-lab" src="http://watirmelon.files.wordpress.com/2009/04/watirfort-lab.jpg?w=300&#038;h=195" alt="State of the art Watirfort labs" width="300" height="195" /></a><p class="wp-caption-text">State of the art Watirfort labs</p></div>
<p><strong>In built notification systems</strong></p>
<p>When you purchase Watif services from Watirfort, you can specifiy how many homing pigeons you would like to lease. These homing pigeons are dedicated to delivering your printed Watif output directly to you! Rapid feedback!</p>
<div id="attachment_210" class="wp-caption aligncenter" style="width: 310px"><a href="http://en.wikipedia.org/wiki/File:Bus_pigeon_loft.jpg"><img class="size-medium wp-image-210" title="watirfort-notifications" src="http://watirmelon.files.wordpress.com/2009/04/watirfort-notifications.jpg?w=300&#038;h=210" alt="Watirfort Homing Pigeons" width="300" height="210" /></a><p class="wp-caption-text">Watirfort Homing Pigeons</p></div>
<p><strong>Planned Additional Browser Support</strong></p>
<p>While Watif 1.0 only initially supports the <a href="http://en.wikipedia.org/wiki/WorldWideWeb">WorldWideWeb</a> browser, alternative browsers including Netscape Navigator 1.0 are planned for Watif 2.0.</p>
<div id="attachment_211" class="wp-caption aligncenter" style="width: 310px"><a href="http://en.wikipedia.org/wiki/File:WorldWideWeb_screenshot.gif"><img class="size-medium wp-image-211" title="worldwideweb_screenshot" src="http://watirmelon.files.wordpress.com/2009/04/worldwideweb_screenshot.jpg?w=300&#038;h=222" alt="WorldWideWeb fully supported!" width="300" height="222" /></a><p class="wp-caption-text">WorldWideWeb fully supported!</p></div>
<p style="text-align:left;"><strong>Quotes</strong></p>
<blockquote>
<p style="text-align:left;">&#8220;I wanted to run around my office <strong>punching</strong> my hands in the air.&#8221;   -   Bec Ferguson</p>
</blockquote>
<h2 style="text-align:center;"><strong>Watif is available for immediate release.</strong></h2>
<p style="text-align:center;">Order now and get a bonus FORTRAN book.</p>
<p style="text-align:center;"><a href="http://en.wikipedia.org/wiki/File:Fortran_acs_cover.jpeg"><img class="aligncenter size-medium wp-image-212" title="469px-fortran_acs_cover" src="http://watirmelon.files.wordpress.com/2009/04/469px-fortran_acs_cover.jpeg?w=234&#038;h=300" alt="469px-fortran_acs_cover" width="234" height="300" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/watirmelon.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/watirmelon.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/watirmelon.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/watirmelon.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/watirmelon.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/watirmelon.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/watirmelon.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/watirmelon.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/watirmelon.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/watirmelon.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=205&subd=watirmelon&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://watirmelon.com/2009/04/01/introducing-watif/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/344eed26ff913de38b45620d18eed695?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">eclectic</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/04/watifcodingform.jpg?w=300" medium="image">
			<media:title type="html">watifcodingform</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/04/watifcode.jpg?w=300" medium="image">
			<media:title type="html">watifcode</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/04/watirfort.jpg?w=300" medium="image">
			<media:title type="html">watirfort</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/04/watirfort-lab.jpg?w=300" medium="image">
			<media:title type="html">watirfort-lab</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/04/watirfort-notifications.jpg?w=300" medium="image">
			<media:title type="html">watirfort-notifications</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/04/worldwideweb_screenshot.jpg?w=300" medium="image">
			<media:title type="html">worldwideweb_screenshot</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/04/469px-fortran_acs_cover.jpeg?w=234" medium="image">
			<media:title type="html">469px-fortran_acs_cover</media:title>
		</media:content>
	</item>
		<item>
		<title>Timing out Watir with Timeout::timeout</title>
		<link>http://watirmelon.com/2009/03/26/timing-out-watir-with-timeouttimeout/</link>
		<comments>http://watirmelon.com/2009/03/26/timing-out-watir-with-timeouttimeout/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 09:21:25 +0000</pubDate>
		<dc:creator>Alister Scott</dc:creator>
				<category><![CDATA[Automated Testing]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[timeout]]></category>
		<category><![CDATA[timeout::timeout]]></category>
		<category><![CDATA[watirmelon]]></category>

		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=202</guid>
		<description><![CDATA[I&#8217;ve been writing a script to monitor our production app that has been playing up a lot lately. The problem is that the service on the server continues to run but when trying to access the main page it just sits there loading indefinitely.
The idea is to write a Watir script that brings up the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=202&subd=watirmelon&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve been writing a script to monitor our production app that has been playing up a lot lately. The problem is that the service on the server continues to run but when trying to access the main page it just sits there loading indefinitely.</p>
<p>The idea is to write a Watir script that brings up the main page every minute and notifies us if it displays an error, or, as has been happening, sits there loading indefinitely.</p>
<p>One of the things I love about Watir is how it handles browser synchronization: it&#8217;s really neat. To quote Bret&#8217;s <a href="http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir">design objective</a>:</p>
<blockquote><p>&#8220;Watir is deterministic. Watir does not wait X seconds. It waits until the page is loaded. Period.&#8221;<br />
- Bret Pettichord</p></blockquote>
<p>So this is great when you&#8217;re writing a test script, but as my page sometimes loads indefinitely, so does my Watir script:</p>
<pre name="code" class="ruby">

require &#039;watir&#039;
check_url = &#039;www.google.com&#039;
ie = Watir::IE.new()
ie.goto(check_url)
puts ie.check_for_http_error()
</pre>
<p>I did some research and found a ruby Timeout class that I figured I could use. My first attempt was to do something like this:</p>
<pre name="code" class="ruby">

require &#039;watir&#039;
check_url = &#039;www.google.com&#039;
ie = Watir::IE.new()
begin&lt;/pre&gt;
Timeout::timeout(30) do
 ie.goto(check_url)
 puts ie.check_for_http_error()
 end
rescue
 puts &#039;timed out&#039;
end
</pre>
<p>This seemed to work when the page didn&#8217;t timeout, but for some reason it wasn&#8217;t catching the timeout. So I did a bit of digging and found out a rescue clause in ruby with no following class only catches exceptions of type StandardError, a subclass of Exception. So it wasn&#8217;t catching the Timeout::Error exception. The way to catch this exception is to always include the Exception clause, and to pass it to a variable such as &#8216;e&#8217;.</p>
<p>The final script looked something like:</p>
<pre name="code" class="ruby">

require &#039;watir&#039;

check_url = &#039;www.google.com&#039;
ie = Watir::IE.new()
begin
 Timeout::timeout(30) do
 ie.goto(check_url)
 puts ie.check_for_http_error()
 end
rescue Exception =&gt; e
 puts &#039;timed out: &#039;+e
end
</pre>
<p>In my research on Timeout::timeout I found this <a href="http://blog.headius.com/2008/02/rubys-threadraise-threadkill-timeoutrb.html">article</a> that explains how it&#8217;s actually dangerous to use Timeout::timeout, but until I figure out a better solution it seems to work pretty well for me.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/watirmelon.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/watirmelon.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/watirmelon.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/watirmelon.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/watirmelon.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/watirmelon.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/watirmelon.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/watirmelon.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/watirmelon.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/watirmelon.wordpress.com/202/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=202&subd=watirmelon&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://watirmelon.com/2009/03/26/timing-out-watir-with-timeouttimeout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/344eed26ff913de38b45620d18eed695?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">eclectic</media:title>
		</media:content>
	</item>
		<item>
		<title>AWTA 2009 survey results</title>
		<link>http://watirmelon.com/2009/01/29/awta-2009-survey-results/</link>
		<comments>http://watirmelon.com/2009/01/29/awta-2009-survey-results/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 13:32:30 +0000</pubDate>
		<dc:creator>Alister Scott</dc:creator>
				<category><![CDATA[AWTA]]></category>
		<category><![CDATA[Automated Testing]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[Austin]]></category>
		<category><![CDATA[Texas]]></category>
		<category><![CDATA[WatirCraft]]></category>
		<category><![CDATA[watirmelon]]></category>
		<category><![CDATA[web testing]]></category>

		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=191</guid>
		<description><![CDATA[I conducted a survey for the Austin Workshop on Test Automation (AWTA) to see what people thought was good about the workshop and what could be improved in the future.  The response was very positive.
Whilst there were twenty-one questions, I believe the following two graphs tell the story:
The full results are available here. Bret also [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=191&subd=watirmelon&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I conducted a survey for the Austin Workshop on Test Automation (<a href="http://awta.wikispaces.com/AWTA+2009">AWTA</a>) to see what people thought was good about the workshop and what could be improved in the future.  The response was very positive.</p>
<p>Whilst there were twenty-one questions, I believe the following two graphs tell the story:</p>
<div id="attachment_192" class="wp-caption aligncenter" style="width: 310px"><a href="http://tinyurl.com/awta2009"><img class="size-full wp-image-192" title="how-much-fun-at-awta" src="http://watirmelon.files.wordpress.com/2009/01/how-much-fun-at-awta.png?w=300&#038;h=150" alt="How much fun did you have at AWTA 2009?" width="300" height="150" /></a><p class="wp-caption-text">How much fun did you have at AWTA 2009?</p></div>
<div id="attachment_193" class="wp-caption aligncenter" style="width: 310px"><a href="http://tinyurl.com/awta2009"><img class="size-full wp-image-193" title="would-you-attend-awta-again" src="http://watirmelon.files.wordpress.com/2009/01/would-you-attend-awta-again.png?w=300&#038;h=150" alt="Would you attend another AWTA?" width="300" height="150" /></a><p class="wp-caption-text">Would you attend another AWTA?</p></div>
<p>The full results are available <a href="http://tinyurl.com/awta2009">here</a>. <a href="http://www.pettichord.com/">Bret</a> also did a nice writeup of the AWTA 2009 proceedings <a href="http://www.io.com/~wazmo/blog/archives/2009_01.html#000290">here</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/watirmelon.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/watirmelon.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/watirmelon.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/watirmelon.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/watirmelon.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/watirmelon.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/watirmelon.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/watirmelon.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/watirmelon.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/watirmelon.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=191&subd=watirmelon&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://watirmelon.com/2009/01/29/awta-2009-survey-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/344eed26ff913de38b45620d18eed695?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">eclectic</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/how-much-fun-at-awta.png" medium="image">
			<media:title type="html">how-much-fun-at-awta</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/would-you-attend-awta-again.png" medium="image">
			<media:title type="html">would-you-attend-awta-again</media:title>
		</media:content>
	</item>
		<item>
		<title>Austin Workshop on Test Automation 2009 Redux</title>
		<link>http://watirmelon.com/2009/01/24/awta-2009-redux/</link>
		<comments>http://watirmelon.com/2009/01/24/awta-2009-redux/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 11:56:49 +0000</pubDate>
		<dc:creator>Alister Scott</dc:creator>
				<category><![CDATA[AWTA]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[Austin]]></category>
		<category><![CDATA[Automated Testing]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[AWTA09]]></category>
		<category><![CDATA[AWTA2009]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[Texas]]></category>

		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=174</guid>
		<description><![CDATA[It&#8217;s been about a week since AWTA 2009 in Texas, and since I had a 30+ hour journey home I think I am excused for not posting this redux until now.
I had an amazing time at both the workshop and also doing things outside the workshop with the people I met there. Everyone was super [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=174&subd=watirmelon&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It&#8217;s been about a week since AWTA 2009 in Texas, and since I had a 30+ hour journey home I think I am excused for not posting this redux until now.</p>
<p>I had an amazing time at both the workshop and also doing things outside the workshop with the people I met there. Everyone was super friendly and make me feel very at home.</p>
<p><strong>At the Workshop</strong></p>
<p>I enjoyed talking about what people expect in a test automation framework. It&#8217;s great to see that the list of things is slowly changing as the ways that people work change. For example, continous integration and running &#8216;headless&#8217; tests was mentioned quite a bit whereas this probably wouldn&#8217;t have even been a requirement for people not too long ago.</p>
<p>All the individual presentations were great. I especially enjoyed <a href="http://www.marekj.com/">MarekJ</a>&#8217;s on <a href="http://github.com/marekj/watirloo/tree/master">Watirloo</a> and Dave Hoover&#8217;s <a href="http://vimeo.com/2871256">presentation on Cucumber</a> (code <a href="http://github.com/redsquirrel/nest/commit/cc9f6f0f7d767a84e54a8891c72cfa685e9d48b1">here</a>). I like how Opera are going to use Watir to run web tests on any Opera browser through remote control: nice.</p>
<p>I enjoyed many conversations I had, especially those with Hugh McGowan and Gregg Yows about Rasta as well as a great conversation I had with Pete Dignan and <a href="http://janetgregory.blogspot.com/">Janet Gregory</a> about ethics and choosing who you work for.</p>
<p>I also shared my experiences in running automated tests in live production environments to many people&#8217;s amazement. This is why my ears pricked up when I heard mention the possibility of one day replacing Watir&#8217;s engine with that of Selenium. The problem I have with selenium is the server side components make it almost impossible for me to use it. I would have lots of trouble convincing the right people to install server side components for automated testing on public facing web applications in production environments: too risky.</p>
<p>On the final day Pete shared some information about a great non-profit aptly named <a href="http://www.charitywater.org/">Charity: Water</a> and what they are doing in Africa to improve sanitation. I couldn&#8217;t help but share the slightly non-relevant <a href="http://www.gapminder.org/">gapminder.org</a> just because it is too cool not to.</p>
<p><strong>Twitter</strong></p>
<p>Using twitter at a meetup is really fun. You can view all the <a href="http://search.twitter.com/search?q=%23awta">#awta posts</a>. Someone raised the point of why we don&#8217;t just use IRC but since I received a fair amount of interest from outside AWTA via twitter, I think it&#8217;s best not to use IRC which wouldn&#8217;t have generated this interest.</p>
<p><strong>Lightning Talks</strong></p>
<p>My two lightning talks are both available on Google Docs: <a href="http://docs.google.com/Presentation?id=ddv9jk4v_80s8rnxfn">talk one</a> and <a href="http://docs.google.com/Presentation?id=ddv9jk4v_85hqxfsvhk">talk two</a>.</p>
<p><strong>Podcasts</strong></p>
<p><a href="http://twitter.com/zeljkofilipin">Zeljko</a> (aka Z*) was busy recording heaps of podcasts at AWTA. The one I did with him is published <a href="http://watirpodcast.com/awta-2009-alister-scott/">here</a>.</p>
<p><strong>Outside the workshop</strong></p>
<p>I had one afternoon to spend in sunny Los Angeles and so I caught a bus to Santa Monica to see the Pacific Ocean from the other side of the world. It was surreal.</p>
<div id="attachment_175" class="wp-caption aligncenter" style="width: 258px"><a href="http://watirmelon.files.wordpress.com/2009/01/los-angeles-santa-monica.jpg"><img class="size-medium wp-image-175" title="los-angeles-santa-monica" src="http://watirmelon.files.wordpress.com/2009/01/los-angeles-santa-monica.jpg?w=248&#038;h=300" alt="Santa Monica Beach, Los Angeles" width="248" height="300" /></a><p class="wp-caption-text">Santa Monica Beach, Los Angeles</p></div>
<p>I enjoyed experiencing a few different places to eat in Austin, Texas. Huts did a mean burger downtown.</p>
<div id="attachment_176" class="wp-caption aligncenter" style="width: 310px"><a href="http://watirmelon.files.wordpress.com/2009/01/huts-burgers.jpg"><img class="size-medium wp-image-176" title="huts-burgers" src="http://watirmelon.files.wordpress.com/2009/01/huts-burgers.jpg?w=300&#038;h=225" alt="Hut's Hamburgers, Austin" width="300" height="225" /></a><p class="wp-caption-text">Hut&#39;s Hamburgers, Austin</p></div>
<p>Rudy&#8217;s BBQ and picnic was superb. We got a full tour of the kitchen including the smoke pits by the manager.</p>
<div id="attachment_177" class="wp-caption aligncenter" style="width: 142px"><a href="http://watirmelon.files.wordpress.com/2009/01/rudys-bbq.jpg"><img class="size-medium wp-image-177" title="rudys-bbq" src="http://watirmelon.files.wordpress.com/2009/01/rudys-bbq.jpg?w=132&#038;h=300" alt="Rudy's BBQ, Austin" width="132" height="300" /></a><p class="wp-caption-text">Rudy&#39;s BBQ, Austin</p></div>
<p>I enjoyed going to the Broken Spoke on Friday night for some Honkey Tonk action, and then partaking in an entirely different scene downtown on Saturday night. What variety: wow.</p>
<div id="attachment_178" class="wp-caption aligncenter" style="width: 282px"><a href="http://watirmelon.files.wordpress.com/2009/01/the-broken-spoke-austin.jpg"><img class="size-medium wp-image-178" title="the-broken-spoke-austin" src="http://watirmelon.files.wordpress.com/2009/01/the-broken-spoke-austin.jpg?w=272&#038;h=300" alt="The Broken Spoke, Austin" width="272" height="300" /></a><p class="wp-caption-text">The Broken Spoke, Austin</p></div>
<div id="attachment_179" class="wp-caption aligncenter" style="width: 310px"><a href="http://watirmelon.files.wordpress.com/2009/01/downtown-austin-saturday-night.jpg"><img class="size-medium wp-image-179" title="downtown-austin-saturday-night" src="http://watirmelon.files.wordpress.com/2009/01/downtown-austin-saturday-night.jpg?w=300&#038;h=225" alt="Late night architecture in downtown Austin" width="300" height="225" /></a><p class="wp-caption-text">Late night architecture in downtown Austin</p></div>
<p>I felt special when MarekJ gave me this sticker from the 2008 US election:</p>
<div id="attachment_180" class="wp-caption aligncenter" style="width: 111px"><a href="http://watirmelon.files.wordpress.com/2009/01/my-vote-counted.jpg"><img class="size-thumbnail wp-image-180" title="my-vote-counted" src="http://watirmelon.files.wordpress.com/2009/01/my-vote-counted.jpg?w=101&#038;h=96" alt="US Election Sticker" width="101" height="96" /></a><p class="wp-caption-text">US Election Sticker</p></div>
<p>and also when Bret signed my Lessons Learned in Software Testing Book:</p>
<p style="text-align:center;"><a href="http://watirmelon.files.wordpress.com/2009/01/signed-lessons-learned-book.jpg"><img class="size-medium wp-image-181 aligncenter" title="signed-lessons-learned-book" src="http://watirmelon.files.wordpress.com/2009/01/signed-lessons-learned-book.jpg?w=225&#038;h=300" alt="signed-lessons-learned-book" width="225" height="300" /></a></p>
<p>One the flight home I drafted the AWTA attendee survey on the back of two Air Pacific sick bags. It was then straighforward to put these questions into Google Docs and sent out a link. Man I love pen and paper!</p>
<div id="attachment_182" class="wp-caption aligncenter" style="width: 310px"><a href="http://watirmelon.files.wordpress.com/2009/01/sick-bag-survey.jpg"><img class="size-medium wp-image-182" title="sick-bag-survey" src="http://watirmelon.files.wordpress.com/2009/01/sick-bag-survey.jpg?w=300&#038;h=225" alt="AWTA Sick Bag Survey" width="300" height="225" /></a><p class="wp-caption-text">AWTA Sick Bag Survey</p></div>
<div id="attachment_183" class="wp-caption aligncenter" style="width: 310px"><a href="http://watirmelon.files.wordpress.com/2009/01/sick-bag-survey-2.jpg"><img class="size-medium wp-image-183" title="sick-bag-survey-2" src="http://watirmelon.files.wordpress.com/2009/01/sick-bag-survey-2.jpg?w=300&#038;h=225" alt="AWTA Sick Bag Survey" width="300" height="225" /></a><p class="wp-caption-text">AWTA Sick Bag Survey</p></div>
<p>I happened to notice a singer on the Austin music channel on TV that I really liked. She is from Austin and her name is Suzanna Choffel. Here&#8217;s a song live from Austin.</p>
<p><span style="text-align:center; display: block;"><a href="http://watirmelon.com/2009/01/24/awta-2009-redux/"><img src="http://img.youtube.com/vi/tO6qPVDN_fs/2.jpg" alt="" /></a></span></p>
<p>I sure hope I can go again next year!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/watirmelon.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/watirmelon.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/watirmelon.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/watirmelon.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/watirmelon.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/watirmelon.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/watirmelon.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/watirmelon.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/watirmelon.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/watirmelon.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=174&subd=watirmelon&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://watirmelon.com/2009/01/24/awta-2009-redux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/344eed26ff913de38b45620d18eed695?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">eclectic</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/los-angeles-santa-monica.jpg?w=248" medium="image">
			<media:title type="html">los-angeles-santa-monica</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/huts-burgers.jpg?w=300" medium="image">
			<media:title type="html">huts-burgers</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/rudys-bbq.jpg?w=132" medium="image">
			<media:title type="html">rudys-bbq</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/the-broken-spoke-austin.jpg?w=272" medium="image">
			<media:title type="html">the-broken-spoke-austin</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/downtown-austin-saturday-night.jpg?w=300" medium="image">
			<media:title type="html">downtown-austin-saturday-night</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/my-vote-counted.jpg?w=101" medium="image">
			<media:title type="html">my-vote-counted</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/signed-lessons-learned-book.jpg?w=225" medium="image">
			<media:title type="html">signed-lessons-learned-book</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/sick-bag-survey.jpg?w=300" medium="image">
			<media:title type="html">sick-bag-survey</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/sick-bag-survey-2.jpg?w=300" medium="image">
			<media:title type="html">sick-bag-survey-2</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/tO6qPVDN_fs/2.jpg" medium="image" />
	</item>
		<item>
		<title>Easily define Watir tests in excel, OO, wikis and Google docs using Roo</title>
		<link>http://watirmelon.com/2009/01/05/watir-and-roo/</link>
		<comments>http://watirmelon.com/2009/01/05/watir-and-roo/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 13:33:07 +0000</pubDate>
		<dc:creator>Alister Scott</dc:creator>
				<category><![CDATA[Automated Testing]]></category>
		<category><![CDATA[Business Driven]]></category>
		<category><![CDATA[Roo]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[Wiki]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[atlassian]]></category>
		<category><![CDATA[confluence]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[OpenOffice]]></category>

		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=158</guid>
		<description><![CDATA[I spent this evening playing with Roo, the ruby library for reading data from spreadsheets and I am very impressed. In a very small amount of time I was able to define tests in four different forms/places and could execute my tests from each of these:

An Excel file (.xls): stored locally
An OpenOffice (.ods): stored locally
An [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=158&subd=watirmelon&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I spent this evening playing with <a href="http://roo.rubyforge.org/">Roo</a>, the ruby library for reading data from spreadsheets and I am very impressed. In a very small amount of time I was able to define tests in four different forms/places and could execute my tests from each of these:</p>
<ul>
<li>An Excel file (.xls): stored locally</li>
<li>An OpenOffice (.ods): stored locally</li>
<li>An Excel file (.xls) stored in a <a href="http://www.atlassian.com/software/confluence/">Confluence</a> wiki page with Confluence Office Connector; and</li>
<li>A Google Docs <a href="http://spreadsheets.google.com/ccc?key=pEcLrW3b2djraE8JF_2fJWA">spreadsheet</a>.</li>
</ul>
<p>The great thing about Roo is that you don&#8217;t actually need Excel; Roo simply reads the file, unlike the ruby Excel COM WIN32 API I have used previously.</p>
<p>The spreadsheet (embedded in Confluence) looks like this:</p>
<p><a href="http://watirmelon.files.wordpress.com/2009/01/excel-in-confluence.jpg"><img class="alignnone size-full wp-image-161" title="excel-in-confluence" src="http://watirmelon.files.wordpress.com/2009/01/excel-in-confluence.jpg?w=450&#038;h=216" alt="excel-in-confluence" width="450" height="216" /></a></p>
<p>The cool thing about embedding it in Confluence is that you can click the title of the spreadsheet to edit it (in OpenOffice in my case).</p>
<p>I made some minor changes to my existing code that<a href="http://watirmelon.wordpress.com/2008/04/13/watir-tests-from-wiki-page/"> executed my depot tests from a wiki page</a>, and it was as easy as that. A data driven Watir solution with four possible ways to define test cases. Cool.</p>
<p>You can find all the code needed below.</p>
<pre name="code" class="ruby">

require &#039;watir&#039;
require &#039;rubygems&#039;
require &#039;roo&#039;
require &#039;./Customer.rb&#039;
require &#039;./Common.rb&#039;

case ARGV[0]
when &quot;excel&quot;
	ss = Excel.new(&quot;watirmelon.xls&quot;)
when &quot;wiki&quot;
	ss = Excel.new(&quot;http://localhost:8080/download/attachments/2097153/watirmelon.xls&quot;)
when &quot;gdocs&quot;
	ss = Google.new(&quot;http://spreadsheets.google.com/ccc?key=pEcLrW3b2djraE8JF_2fJWA&quot;)
else
	ss = Openoffice.new(&quot;watirmelon.ods&quot;)
end

ss.default_sheet = ss.sheets.first
ss.first_row.upto(ss.last_row) do |line|
	if ss.cell(line,1).strip != &quot;Function&quot; then #We have an executable test
		begin
			module_name = ss.cell(line,1).strip
			method_name = ss.cell(line,2).downcase.strip.sub(&#039; &#039;,&#039;_&#039;) # automatically determine function name based upon method name.
			comments = ss.cell(line,3).strip
			expected_outcome = ss.cell(line,4).strip
			expected_error = ss.cell(line,5).strip
			required_module = Kernel.const_get(module_name)
			required_method = required_module.method(method_name)
			arity = required_method.arity() # this is how many arguments the method requires, it is negative if a &#039;catch all&#039; is supplied.
			arity = ((arity * -1) - 1) if arity &lt; 0
			parameters = []
			1.upto(arity) do |p|
				parameters.push(ss.cell(line,p+5))
			end
			actual_outcome, actual_output = required_method.call(*parameters)
			# determine the result.
			if (expected_outcome = &#039;Success&#039;) and actual_outcome then
			    result = &quot;PASS&quot;
			elsif (expected_outcome = &#039;Error&#039;) and (not actual_outcome) and (expected_error = actual_output) then
			    result = &quot;PASS&quot;
			else
			    result = &quot;FAIL&quot;
			end
			puts &quot;\nRunning Test: #{method_name} for #{module_name}.&quot;
			puts &quot;Expected Outcome: #{expected_outcome}.&quot;
			puts &quot;Expected Error: #{expected_error}.&quot;
			puts &quot;Actual Outcome: #{actual_outcome}.&quot;
			puts &quot;Actual Output: #{actual_output}.&quot;
			puts &quot;RESULT: #{result}&quot;
		rescue
			puts &quot;An error occurred: #{$!}&quot;
		end
	end
end
</pre>
<p>See the full test code below the break.</p>
<p><span id="more-158"></span></p>
<p><strong>Common.rb</strong></p>
<pre name="code" class="ruby">

module Common
    def Common.find_or_start_browser(title, url)
        begin
            browser = Watir::IE.attach(:title, title)
            browser.goto(url)
        rescue Watir::Exception::NoMatchingWindowFoundException
            browser = Common.start_new_browser(url)
        end
        return browser
    end

    def Common.start_new_browser(url)
        browser = Watir::IE.start(url)
        browser.speed = :fast
        return browser
    end

    def Common.close_browsers(titles)
        for title in titles
            Common.close_browser(title)
        end
        return true
    end

    def Common.close_browser(title)
        begin
            browser = Watir::IE.attach(:title, title)
            browser.close
        rescue Watir::Exception::NoMatchingWindowFoundException
        end
        return true
    end

end
 
</pre>
<p><strong>Customer.rb</strong></p>
<pre name="code" class="ruby">

module Customer

    URL = &#039;http://localhost:3000/store/&#039;

    # Description::        Adds a book named &#039;bookTitle&#039; to cart
    def Customer.add_book(bookTitle)
        browser = Common.find_or_start_browser(&#039;Pragprog Books Online Store&#039;, URL)
        # Check if title is already in cart
        browser.link(:text,&#039;Show my cart&#039;).click

        prevCountInCart = 0
        prevCartTotal = 0.00
        if not browser.div(:text,&#039;Your cart is currently empty&#039;).exist? then
            # We have a non-empty cart
            for row in browser.table(:index,1)
                if row[2].text == bookTitle then
                    prevCountInCart = row[1].text.to_i
                    break
                end
            end
            prevCartTotal = browser.cell(:id, &#039;totalcell&#039;).text[1..-1].to_f #remove $ sign
            browser.link(:text, &#039;Continue shopping&#039;).click
        end

        found = false
        1.upto(browser.divs.length) do |index|
            if (browser.div(:index,index).attribute_value(&#039;className&#039;) == &#039;catalogentry&#039;) and (browser.div(:index,index).h3(:text,bookTitle).exists?) then
                browser.div(:index,index).link(:class,&#039;addtocart&#039;).click
                found = true
                break
            end
        end
        if not found then
            return false,&#039;Could not locate title in store&#039;
        end

        newCountInCart = 0       
        newCartTotal = 0.00
        for row in browser.table(:index,1)
            if row[2].text == bookTitle then
                newCountInCart = row[1].text.to_i
                break
            end
        end
        newCartTotal = browser.cell(:id, &#039;totalcell&#039;).text[1..-1].to_f # remove $ sign
        # TODO: Assertions around totals

        browser.link(:text, &#039;Continue shopping&#039;).click
        return true,&#039;&#039;
    end

    def Customer.check_out(customerName, customerEmail, customerAddress, customerPaymentMethod)
        browser = Common.find_or_start_browser(&#039;Pragprog Books Online Store&#039;, URL)
        browser.link(:text,&#039;Show my cart&#039;).click
        if browser.div(:text,&#039;Your cart is currently empty&#039;).exist? then
            return false,&#039;Your cart is currently empty&#039;
        end
        browser.link(:text,&quot;Checkout&quot;).click
        # Assert total value
        #b.cell(:id, &#039;totalcell&#039;).text.should == &#039;$59.90&#039;
        browser.text_field(:id, &#039;order_name&#039;).set(customerName)
        browser.text_field(:id, &#039;order_email&#039;).set(customerEmail)
        browser.text_field(:id, &#039;order_address&#039;).set(customerAddress)
        begin
            browser.select_list(:id, &#039;order_pay_type&#039;).select(customerPaymentMethod)
        rescue Watir::Exception::NoValueFoundException
            puts &#039;WARNING: could not locate customer payment method in drop down list: &#039;+customerPaymentMethod
        end
        browser.button(:name, &#039;commit&#039;).click
        if browser.div(:id,&#039;errorExplanation&#039;).exist? then
            error = browser.div(:id,&#039;errorExplanation&#039;).li(:index,1).text
            browser.link(:text,&#039;Continue shopping&#039;).click
            return false, error
        end
        return true,&#039;&#039;
    end

    def Customer.empty_cart()
        browser = Common.find_or_start_browser(&#039;Pragprog Books Online Store&#039;, URL)
        puts &#039;INFO: Found Browser OK&#039;
        browser.link(:text,&quot;Show my cart&quot;).click
        if not browser.div(:text,&quot;Your cart is currently empty&quot;).exist? then
            browser.link(:text,&#039;Empty cart&#039;).click
            puts &#039;OK: Cart is now empty.&#039;
            #TODO Assert message - cart is now empty
        end
        puts &#039;OK: Cart was never empty.&#039;   
        return true,&#039;&#039;
    end
end
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/watirmelon.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/watirmelon.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/watirmelon.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/watirmelon.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/watirmelon.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/watirmelon.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/watirmelon.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/watirmelon.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/watirmelon.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/watirmelon.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=158&subd=watirmelon&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://watirmelon.com/2009/01/05/watir-and-roo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/344eed26ff913de38b45620d18eed695?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">eclectic</media:title>
		</media:content>

		<media:content url="http://watirmelon.files.wordpress.com/2009/01/excel-in-confluence.jpg" medium="image">
			<media:title type="html">excel-in-confluence</media:title>
		</media:content>
	</item>
		<item>
		<title>Austin Workshop on Test Automation (AWTA) 2009</title>
		<link>http://watirmelon.com/2008/11/29/austin-workshop-on-test-automation-awta-2009/</link>
		<comments>http://watirmelon.com/2008/11/29/austin-workshop-on-test-automation-awta-2009/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 11:28:48 +0000</pubDate>
		<dc:creator>Alister Scott</dc:creator>
				<category><![CDATA[Automated Testing]]></category>
		<category><![CDATA[Career]]></category>
		<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[Austin]]></category>
		<category><![CDATA[AWTA]]></category>
		<category><![CDATA[Texas]]></category>
		<category><![CDATA[WatirCraft]]></category>

		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=138</guid>
		<description><![CDATA[Watircraft are organising the Austin Workshop on Test Automation to be held on 16-18 January 2009 in Austin, Texas.
I have been approved to attend. It means three long flights from Australia (about 25 hours each way) but I am really looking forward to attending and meeting different people who are involved in Watir.
I haven&#8217;t been [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=138&subd=watirmelon&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Watircraft are organising the <a href="http://awta.wikispaces.com/AWTA+2009">Austin Workshop on Test Automation</a> to be held on 16-18 January 2009 in Austin, Texas.</p>
<p>I have been <a href="http://awta.wikispaces.com/Attendees+2009">approved to attend</a>. It means three long flights from Australia (about 25 hours each way) but I am really looking forward to attending and meeting different people who are involved in Watir.</p>
<p>I haven&#8217;t been to America before either, so it should be really good.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/watirmelon.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/watirmelon.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/watirmelon.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/watirmelon.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/watirmelon.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/watirmelon.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/watirmelon.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/watirmelon.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/watirmelon.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/watirmelon.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=138&subd=watirmelon&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://watirmelon.com/2008/11/29/austin-workshop-on-test-automation-awta-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/344eed26ff913de38b45620d18eed695?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">eclectic</media:title>
		</media:content>
	</item>
		<item>
		<title>Watir podcast eight</title>
		<link>http://watirmelon.com/2008/11/03/watir-podcast-eight/</link>
		<comments>http://watirmelon.com/2008/11/03/watir-podcast-eight/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 11:10:37 +0000</pubDate>
		<dc:creator>Alister Scott</dc:creator>
				<category><![CDATA[Automated Testing]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[Alister Scott]]></category>
		<category><![CDATA[Podcast]]></category>
		<category><![CDATA[Podcasting]]></category>
		<category><![CDATA[Watir Podcast]]></category>
		<category><![CDATA[Željko Filipin]]></category>

		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=133</guid>
		<description><![CDATA[Episode eight of the Watir Podcast was released today in which Željko Filipin interviews me about my experience in using Watir, and also about my newly announced role as the Watir Wiki Master.
Check it out if you&#8217;re interested: http://watirpodcast.com/alister-scott/
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=133&subd=watirmelon&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Episode eight of the Watir Podcast was released today in which <a href="http://zeljkofilipin.com/">Željko Filipin</a> interviews me about my experience in using Watir, and also about my newly announced role as the Watir Wiki Master.</p>
<p>Check it out if you&#8217;re interested: <a href="http://watirpodcast.com/alister-scott/" target="_blank">http://watirpodcast.com/alister-scott/</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/watirmelon.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/watirmelon.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/watirmelon.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/watirmelon.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/watirmelon.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/watirmelon.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/watirmelon.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/watirmelon.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/watirmelon.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/watirmelon.wordpress.com/133/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=133&subd=watirmelon&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://watirmelon.com/2008/11/03/watir-podcast-eight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/344eed26ff913de38b45620d18eed695?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">eclectic</media:title>
		</media:content>
	</item>
		<item>
		<title>Automated testing quick wins, low hanging fruit, breathing space &amp; oxygen</title>
		<link>http://watirmelon.com/2008/10/05/automated-testing-quick-wins-low-hanging-fruit-breathing-space-and-oxygen/</link>
		<comments>http://watirmelon.com/2008/10/05/automated-testing-quick-wins-low-hanging-fruit-breathing-space-and-oxygen/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 06:44:09 +0000</pubDate>
		<dc:creator>Alister Scott</dc:creator>
				<category><![CDATA[Automated Testing]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[Test Automation]]></category>
		<category><![CDATA[Watir]]></category>
		<category><![CDATA[Availability Monitoring]]></category>
		<category><![CDATA[Oxygen]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Web App]]></category>
		<category><![CDATA[Web Application Monitoring]]></category>

		<guid isPermaLink="false">http://watirmelon.wordpress.com/?p=126</guid>
		<description><![CDATA[I&#8217;ve seen a lot of automated testing efforts fail, and have also had to personally deal with the repercussions and expectations that have been set by these failed efforts.
For example, I clearly remember the first day on my new job that I moved 1500km to Brisbane for. I was being introduced to the Project Director [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=126&subd=watirmelon&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve seen a lot of automated testing efforts fail, and have also had to personally deal with the repercussions and expectations that have been set by these failed efforts.</p>
<p>For example, I clearly remember the first day on my new job that I moved 1500km to Brisbane for. I was being introduced to the Project Director whose first words to me were:</p>
<blockquote><p>&#8220;<em>I have never seen automated testing succeed so I will be watching you very closely</em>!&#8221;.</p></blockquote>
<p>Not the best thing to hear on your first day in a job!</p>
<p>I&#8217;ve been thinking a fair amount about why automated testing fails to meet expectations. Sure, there is a lot of sales hype generated by test tool vendors and consultants, not a good thing, and there&#8217;s also  practitioners out there without the skills or discipline to deliver successful automated testing solutions, but there must be something else.</p>
<p>The problem is, I believe, that the time and effort to deliver a successful automated testing solution is <strong>huge</strong>. An automated testing framework might be deemed unsuccessful before it has even been given a chance to be successful! This is why I am a strong believer in first identifying some automated testing quick wins, some <em>low hanging fruit</em>, pardon the idiom.</p>
<p>A quick win is that something that requires a small amount of effort, input, for a huge amount of gain, output. These are sometimes hard to find, but almost always deliver a good outcome: some <em>breathing space</em>.</p>
<p>An example I can use is a simple application monitoring script. A place I worked had a problem with the availability of a public facing web app. Server monitoring wasn&#8217;t effective, the web/app server could be running fine but no one could log on via the web! There wasn&#8217;t a way to know when it was unavailable to users without first getting complaints via email and phone calls from unhappy people.</p>
<p>It only took me a few hours to quickly develop and test a ruby/watir automated testing <a href="http://watirmelon.wordpress.com/2008/05/15/simple-web-application-monitoring-with-watir/">script</a> that I set to continuously run to monitor the web app availability. If the web app was unavailable, it would send off an email/sms to the people responsible for getting it running again.</p>
<p>The script was hugely successful. The downtime was reduced drastically, and since people saw patterns about when it was going down, it was easier to determine the cause of the availability problem. Since the script used only free/open source software (ruby and watir), there wasn&#8217;t any costs or time taken to acquire the software needed. People were like &#8216;wow: we didn&#8217;t know we could do this so easily&#8217;.</p>
<p>I recently attended the Test Automation Workshop on the Gold Coast in Australia and one presentation stuck in my mind. It was by a guy called <a href="http://www.linkedin.com/pub/9/bb2/900">Don Taylor</a> who used to work in my team in Canberra and his presentation was called &#8220;<em>Oxygen for Functional Automated Testing</em>&#8220;. He told us that quite a few people emailed him when the program for the workshop went out asking: &#8220;What&#8217;s this tool called Oxygen?&#8221; But it wasn&#8217;t a tool at all, but rather about oxygen, the breathing space you need for successful automated testing.</p>
<p>And that&#8217;s what I consider to be the biggest output from these quick wins. It&#8217;s what automated testing needs to be successful. The breathing space generated from short term automated testing quick wins has enabled me to spend time and effort into creating robust automated testing frameworks that have been designed to be maintainable and successful in the long term. A whole heap of <em>oxygen</em>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/watirmelon.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/watirmelon.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/watirmelon.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/watirmelon.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/watirmelon.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/watirmelon.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/watirmelon.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/watirmelon.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/watirmelon.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/watirmelon.wordpress.com/126/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=watirmelon.com&blog=2177915&post=126&subd=watirmelon&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://watirmelon.com/2008/10/05/automated-testing-quick-wins-low-hanging-fruit-breathing-space-and-oxygen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/344eed26ff913de38b45620d18eed695?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">eclectic</media:title>
		</media:content>
	</item>
	</channel>
</rss>