<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Weiqi Gao&#039;s Observations - apps tag</title>
  <link>http://www.weiqigao.com/blog/tags/apps/</link>
  <description>Sharing My Experience...</description>
  <language>en</language>
  <copyright>Weiqi Gao</copyright>
  <lastBuildDate>Fri, 11 May 2012 12:48:36 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  <image>
    <url>http://pebble.sourceforge.net/common/images/powered-by-pebble.gif</url>
    <title>Weiqi Gao&#039;s Observations</title>
    <link>http://www.weiqigao.com/blog/</link>
  </image>
  
  
  <item>
    <title>Selenium: Automatable In-browser Functional Testing For Web Apps</title>
    <link>http://www.weiqigao.com/blog/2006/04/20/selenium_automatable_in_browser_functional_testing_for_web_apps.html</link>
    
      
        <description>
          &lt;p&gt;&lt;a href=&#034;http://www.weiqigao.com/blog/images/selenium-ide.png&#034;&gt;
&lt;img src=&#034;http://www.weiqigao.com/blog/images/selenium-ide.png&#034; title=&#034;Selenium IDE&#034; border=&#034;0&#034; hspace=&#034;12&#034; valign=&#034;top&#034; align=&#034;right&#034;/&gt;
&lt;/a&gt;At today&#039;s OCI Java lunch, our resident automated building and testing zealot &lt;a href= &#034;http://www.ociweb.com/education/instructors/mario_aquino.html&#034; &gt;Mario Aquino&lt;/a&gt; talked about an interesting tool called &lt;a href= &#034;http://www.openqa.org/selenium/&#034; &gt;Selenium&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I forgot to blog it while he&#039;s talking.  So I&#039;m doing a little bit of catching up tonight.  And all of this is from my impression from one hour of presentation/demonstration.&lt;/p&gt;

&lt;p&gt;Selenium&lt;p&gt;
&lt;ul&gt;
&lt;li&gt;tests web applications&lt;/li&gt;
&lt;li&gt;while running them inside the browser&lt;/li&gt;
&lt;li&gt;with FIT style table driven test scripts&lt;/li&gt;
&lt;li&gt;that exercises the HTML page&#039;s links, buttons, text fields, etc.&lt;/li&gt;
&lt;li&gt;and asserts and verifies various on-screen values&lt;/li&gt;
&lt;li&gt;for fields selected by IDs, names, or XPath expressions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Selenium scripts&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;have alternative representations as&lt;/li&gt;
&lt;li&gt;Java code that can be put into JUnit tests and become part of the hourly build&lt;/li&gt;
&lt;li&gt;Ruby code that can be invoked through rake&lt;/li&gt;
&lt;li&gt;or Selenium &#034;wiki&#034; code that&#039;s just a tad easier to write than HTML tables&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is a &lt;a href= &#034;http://www.openqa.org/selenium-ide/&#034; &gt;Selenium IDE&lt;/a&gt; that can be installed as a Firefox extension.  It allows one to write Selenium scripts by recording a browsing session. (In the screenshot you can see me clicking on the Save button to save a draft of this post, and then clicking on the link to the artile on the Drafts screen to resume editing.)&lt;/p&gt;

&lt;p&gt;Mario did mention a few quirks.  One is that if ran as JUnit tests, Selenium tends to not close the browser when it&#039;s done, leaving thousands of open browsers behind on the testing machine.  Another is that &#034;clickAndWait&#034; doesn&#039;t work with AJAXy buttons or links.&lt;/p&gt;

&lt;p&gt;Selenium was developed by &lt;a href= &#034;http://www.thoughtworks.com&#034; &gt;&lt;b&gt;Thought&lt;/b&gt;Works&lt;/a&gt; for one of their projects and is now Open Source (Apache 2.0 License).&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2006/04/20/selenium_automatable_in_browser_functional_testing_for_web_apps.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2006/04/20/selenium_automatable_in_browser_functional_testing_for_web_apps.html</guid>
    <pubDate>Fri, 21 Apr 2006 02:54:31 GMT</pubDate>
  </item>
  
  </channel>
</rss>

