<?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/"
	>

<channel>
	<title>Thought Nursery &#187; watir</title>
	<atom:link href="http://blog.jeffreyfredrick.com/tag/watir/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jeffreyfredrick.com</link>
	<description>Big ideas start small.</description>
	<lastBuildDate>Sat, 20 Feb 2010 23:33:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>OSTATLI: Safari &amp; Firefox with Watir</title>
		<link>http://blog.jeffreyfredrick.com/2009/02/17/ostatli-safari-firefox-with-watir/</link>
		<comments>http://blog.jeffreyfredrick.com/2009/02/17/ostatli-safari-firefox-with-watir/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 09:08:47 +0000</pubDate>
		<dc:creator>Jtf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[watir]]></category>

		<guid isPermaLink="false">http://blog.jeffreyfredrick.com/?p=84</guid>
		<description><![CDATA[I went to Elisabeth&#8216;s Open Source Testing Automation Tools Love In with a very clear mission: &#8220;Get SafariWatir testing my local WordPress instance the right way&#8220;, where the right way meant using a single script that would also run against IE and Firefox without modifications. I&#8217;m not sure I was a good OSTATLI participant because I [...]]]></description>
			<content:encoded><![CDATA[<p>I went to <a href="http://www.qualitytree.com">Elisabeth</a>&#8216;s <a href="http://testobsessed.com/2009/02/16/ostatli-update/">Open Source Testing Automation Tools Love In</a> with a very clear mission: &#8220;Get SafariWatir testing my local WordPress instance <em>the right way</em>&#8220;, where <em>the right way</em> meant using a single script that would also run against IE and Firefox without modifications. I&#8217;m not sure I was a good OSTATLI participant because I spent most of my time in the corner trying to get my goal met while other people were talking about cool stuff (which is why Watir/FireWatir/SafariWatir didn&#8217;t make the list of tools; I didn&#8217;t know we were making a list). But I had a blast anyway and was able to meet my modest goal.</p>
<p>My starting point wasn&#8217;t quite ground zero but it was close. I used Ruby on a project for a couple of months a couple of years ago but I haven&#8217;t used it since. And I&#8217;ve never used Watir. The last time I wrote tests to drive a browser it was 2002 and I was using WinRunner.</p>
<p>My motivation for this project came as a side-effect of my recent change from full-time to consulting/contract work. I&#8217;ve been working out of <a href="http://nextspace.us/">NextSpace</a>, a coworking operation in Santa Cruz, and that has given me a different set of colleagues than I&#8217;ve had in the past. I&#8217;m now daily rubbing shoulders with a range of interesting people, but a bunch of them churn out websites for a range of clients. The technologies vary — WordPress, Drupal, Flash, Ruby/Rails, etc — but one common factor is there seems to little in the way of automated testing, even for sites that involve a lot of custom coding. I&#8217;ve wanted to know if some of the tools from enterprise IT and product development could be applied in their context.</p>
<p>I was interested in using Watir for a few different reasons. One seeming motivation is that I&#8217;ve done some consulting for <a href="http://www.watircraft.com/">WatirCraft</a>, but that&#8217;s getting things out of order: I was <a href="http://blog.jeffreyfredrick.com/2008/06/23/watircraft-announced/">interested in what they&#8217;re doing</a> before I started working with them. What really attracts me to Watir is the philosophy that they want to take maximum advantage of Ruby as a language, as opposed to having a language neutral API like Selenium. I enjoyed Ruby when I worked with it and I&#8217;d like to do more of it. I also really like the idea of Ruby as a language for testers. Testers have long done more coding than they get credit for; switching that coding to Ruby should offer more opportunities for collaboration with developers and more credit and status from the coding they were doing already.</p>
<p>I was also interested in doing this experiment with Ruby because <a href="http://www.pettichord.com/">Bret</a>/WatirCraft have been working on a new <a href="http://www.io.com/~wazmo/blog/archives/2009_02.html#000291">WatirCraft framework</a>, with <a href="http://github.com/bret/watircraft/tree/master">the source available in GitHub</a>, and one of the enabling changes in Watir was to allow browser independent scripts by using <a href="http://wiki.openqa.org/display/WTR/Browser.new">Watir::Browser.new</a>. All the references I&#8217;ve seen to this reference IE and Firefox, but since I&#8217;m on OS X (and because I&#8217;m a bit of an Mac fanboi) anything that doesn&#8217;t work with Safari is a non-starter. I went so far as to ask for Safari support on the WatirCraft <a href="http://watir.uservoice.com/pages/general/suggestions/74932-combine-safariwatir-into-watir">UserVoice page</a> only to be told it was already there. Oh. Okay then&#8230;</p>
<p>So here&#8217;s what I actually did. I installed the very awesome <a href="http://www.mamp.info">MAMP</a>, an all-in-one installer for Macs to run an Apache, MySQL and PHP stack. Next was WordPress 2.7. Ruby 1.8.7 came via the also awesome <a href="http://www.macports.org/">MacPorts</a>. Then began the fun that started &#8220;sudo gem install &#8230;&#8221;:</p>
<ul>
<li>safariwatir</li>
<li>firewatir</li>
<li>rspec</li>
<li>cucumber</li>
</ul>
<p>I didn&#8217;t actually use <a href="http://cukes.info/">Cucumber</a>, but there was talk of it in the air and the <a href="http://github.com/bret/framework-examples/tree/master">examples</a> look interesting so I gave into the peer pressure. (Maybe in a future OSTATLI&#8230;)</p>
<p>Honestly I struggled a bit getting started from that point, trying to run the Watir tests against <a href="http://safariwatir.rubyforge.org/">SafariWatir</a>&#8230; or even the SafariWatir tests on itself! But here <a href="http://twitter.com/Jtf/status/1184274982">the power of Twitter</a> came in handy, with Dave Hoover stepping up from behind the <a href="http://twitter.com/SafariWatir">SafariWatir twitter account</a> and updating the directions for running the Watir tests in GitHub in real time. Dave likewise <a href="http://twitter.com/SafariWatir/status/1185053020">saved me from the rathole</a> of the old SafariWatir tests. In the midst of my struggles I did come to appreciate GitHub. It was trivially easy for me to fork SafariWatir and send a couple of minor tweaks back to Dave. After years of taking submission to CruiseControl via patch files and working with CVS and SVN, I&#8217;m jealous!</p>
<p>Eventually I was able to sort our some basic RSpec syntax and some basic Watir syntax and put together <a href="http://pastie.org/391522">this script</a> which met my goal. If you have the default WordPress 2.7 site running on port 8080 (and you have the same admin password that I left hardcoded in the script) then this script will open Safari, log into WordPress, post a message and logout. Change Watir::Browser.default = &#8216;safari&#8217; to Watir::Browser.default = &#8216;firefox&#8217; (and <a href="http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-3%29InstalltheJSSHFirefoxExtension">install JSSH</a>) and the script will run against Firefox instead. This setting is in script for connivence; if I were testing in anger I would be setting it with an environment variable from Rake as I ran the tests.</p>
<p>My plan for the future it to take this a step farther and try running the same tests from <a href="http://celerity.rubyforge.org/">Celerity</a>. My vision is a system where we run tests in Celerity for fast feedback and then run across browsers to surface compatibility issues.</p>
<p>I would love to do more work doing cross-browser testing with Watir (and fix some of the incompatibilities in the process). If you know of anyone with a contract for that kind of work they can <a href="http://ci-guys.com/">contact me via The CI Guys website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jeffreyfredrick.com/2009/02/17/ostatli-safari-firefox-with-watir/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WatirCraft announced</title>
		<link>http://blog.jeffreyfredrick.com/2008/06/23/watircraft-announced/</link>
		<comments>http://blog.jeffreyfredrick.com/2008/06/23/watircraft-announced/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 00:27:18 +0000</pubDate>
		<dc:creator>Jtf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[watir]]></category>

		<guid isPermaLink="false">http://blog.jeffreyfredrick.com/?p=4</guid>
		<description><![CDATA[Bret Pettichord announced his next big thing yesterday: WatirCraft, a company around the popular testing library Watir. In his announcement Bret explained that WatirCraft is making a few bets: &#8220;We are betting that we can build a business around making testers successful with automated testing.&#8221; &#8220;Pete and I are making a bet &#8230;[on] the vision [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pettichord.com/">Bret Pettichord</a> announced his next big thing yesterday: <a href="http://www.watircraft.com/">WatirCraft</a>, a company around the popular testing library <a href="http://wtr.rubyforge.org/">Watir</a>. In <a href="http://www.io.com/~wazmo/blog/archives/2008_06.html#000280">his announcement</a> Bret explained that WatirCraft is making a few bets:</p>
<ul>
<li>&#8220;We are betting that we can build a business around making testers successful with automated testing.&#8221;</li>
<li>&#8220;Pete and I are making a bet &#8230;[on] the vision &#8230; <b>automation is about code</b> and success requires understanding code, and making code understandable.&#8221;</li>
<li>&#8220;We are also betting that people want and will be willing to pay for <b>a framework that is easier to use.</b>&#8220;</li>
<li>&#8220;We are also betting on Ruby.&#8221;</li>
<li>&#8220;We are also betting that the growing use of Agile Development practices will continue.&#8221;</li>
<li>&#8220;We think <b>testers do have a significant role in the future of automated testing.</b>&#8220;</li>
</ul>
<p>Based on my experiences over the years I think that Pete and Bret have made a lot of reasonable bets.</p>
<p>At <a href="http://www.sdtimes.com/content/article.aspx?ArticleID=32186">Agitar</a> we had literally hundreds of companies as customers, which is pretty significant when you realize that our prices started at around $35,000 and went up to seven figures. That&#8217;s a good indication that there&#8217;s a market for helping people succeed at testing their software.</p>
<p>From my time in QA doing test automation with the Mercury tools I agree that successful testing required actual coding. I think this has been a barrier to success with traditional automation attempts, at least in Silicon Valley. To be a successful required coding skills but if you had coding skills there was a higher paying higher prestige job waiting for you in development. It has gotten to the point that it is actually more difficult to find a good tester than it is to find a good developer because development is such a compelling brain drain.</p>
<p>But Bret&#8217;s right that agile development is the future and &#8220;<b>testers on agile teams are being hammered by shorter iterations</b>&#8220;. Because automated testing is so key to successful agile development I think this means market forces should swell the ranks of <a href="http://testobsessed.com/2007/01/17/tester-developers-developer-testers/">tester-developers and developer-testers</a>. (Of course since I used to blog at DeveloperTesting.com it isn&#8217;t surprising that I feel this way&#8230;)</p>
<p>Finally I think WatirCraft is right to focus on the tester side of this equation. I was exposed to dozens of teams all over the world while at Agitar and what I saw was very consistent. There was widespread interest in developers testing their code but often only because you were supposed to as part of &#8220;going agile&#8221;. I saw only a few teams where the testing done by developers was considered to reduce traditional testing to any great extent. Companies want their developers developing, not testing, so I&#8217;d agree that the bulk of future test automation will belong to testers.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jeffreyfredrick.com/2008/06/23/watircraft-announced/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
