<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Musings of a Trained Monkey: Tag selenium</title>
    <link>http://www.stevelongdo.com/articles/tag/selenium</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Ruby, Rails, Selenium and testing...</title>
      <description>People that have worked with me in the past know how much I think unit tests are worth.  In fact I won't say any more about them.  White box testing has a place, it just isn't on my &lt;a href="http://www.stevelongdo.com/"&gt;blog&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;
&lt;a href="http://www.openqa.org/selenium/"&gt;Selenium&lt;/a&gt; is an open source testing framework that will be making products like &lt;a href="http://www.mercury.com/us/products/quality-center/functional-testing/winrunner/"&gt;Mercury Interactive's WinRunner&lt;/a&gt; quake in their boots.  Being able to do acceptance/functional/regression/Black Box testing of web applications across browser and OS platform boundaries from a single script file is already possible with &lt;a href="http://www.openqa.org/selenium/"&gt;Selenium&lt;/a&gt;.  The major testing/QA vendors can't even boast  that level of functionality yet.  Even better &lt;a href="http://adaptivepath.com/publications/essays/archives/000385.php"&gt;AJAX&lt;/a&gt; applications are supported by &lt;a href="http://www.openqa.org/selenium/"&gt;Selenium&lt;/a&gt;.    There is a &lt;a href="http://www.openqa.org/selenium-ide/"&gt;Selenium IDE&lt;/a&gt; that works as an extension to &lt;a href="http://www.getfirefox.com"&gt;Firefox&lt;/a&gt;.  You can simply record your actions "macro-like" as you navigate through the web application you want to test.
&lt;br /&gt;&lt;br /&gt;
What makes this all the more exciting is the recent &lt;a href="http://andthennothing.net/archives/2006/02/19/new-version-of-selenium-on-rails"&gt;selenium_on_rails&lt;/a&gt; plugin.  It allows you to embed and run your   &lt;a href="http://www.openqa.org/selenium/"&gt;Selenium&lt;/a&gt; tests as &lt;code class="typocode_ruby"&gt;&lt;span class="keyword"&gt;rake&lt;/span&gt;&lt;/code&gt; tasks.  Automated quality assurance has never been this compelling to include as part of the development process.&lt;br /&gt;&lt;br /&gt;  So far the only short coming I've observed is the lack of i18n support, however the new .rsel format probably could be used to overcome this. Rsel lets you define your &lt;a href="http://www.openqa.org/selenium/"&gt;Selenium&lt;/a&gt; tests in terms of &lt;a href="http://ruby-lang.org/"&gt;Ruby code&lt;/a&gt;. To see all of this in action take a look at the excellent &lt;a href="http://andthennothing.net/archives/2006/02/20/show-dont-tell"&gt;screencast over at and then nothing.net&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; Someone made a good point that I maybe didn't make clear here, &lt;a href="http://www.openqa.org/selenium/"&gt;Selenium&lt;/a&gt; can be used to test &lt;u&gt;ANY&lt;/u&gt; web application, not just &lt;a href="http://rubyonrails.org"&gt;Rails&lt;/a&gt; powered, but even legacy &lt;a href="http://java.sun.com"&gt;Java&lt;/a&gt;, &lt;a href="http://www.microsoft.com/net/default.mspx"&gt;.NET&lt;/a&gt;, &lt;a href="http://www.php.net/"&gt;PHP&lt;/a&gt;, or any &lt;a href="http://www.infogoal.com/cbd/cbdhome.htm"&gt;other caveman languages&lt;/a&gt; &lt;a href="http://www.perl.com/"&gt;from the last century&lt;/a&gt;.  :-)</description>
      <pubDate>Thu, 23 Feb 2006 03:44:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:1fac5e60-0661-42e5-a94d-d53290e519a6</guid>
      <author>Steve Longdo</author>
      <link>http://www.stevelongdo.com/articles/2006/02/23/ruby-rails-selenium-and-testing</link>
      <category>ruby</category>
      <category>rails</category>
      <category>ajax</category>
      <category>selenium</category>
      <category>testing</category>
      <category>plugin</category>
      <trackback:ping>http://www.stevelongdo.com/articles/trackback/80</trackback:ping>
    </item>
  </channel>
</rss>
