<?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>FewBar.com - Make it good &#187; selenium</title>
	<atom:link href="http://fewbar.com/tag/selenium/feed/" rel="self" type="application/rss+xml" />
	<link>http://fewbar.com</link>
	<description>Technology, life, and mischief, not in that order</description>
	<lastBuildDate>Wed, 18 Apr 2012 00:55:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Nick Bartlett » Blog Archive » Selenium IDE and TinyMCE</title>
		<link>http://fewbar.com/2009/11/nick-bartlett-%c2%bb-blog-archive-%c2%bb-selenium-ide-and-tinymce/</link>
		<comments>http://fewbar.com/2009/11/nick-bartlett-%c2%bb-blog-archive-%c2%bb-selenium-ide-and-tinymce/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 00:49:51 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[tinymce]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=133</guid>
		<description><![CDATA[<a href="http://fewbar.com/2009/11/nick-bartlett-%c2%bb-blog-archive-%c2%bb-selenium-ide-and-tinymce/" title="Nick Bartlett » Blog Archive » Selenium IDE and TinyMCE"></a>Nick Bartlett » Blog Archive » Selenium IDE and TinyMCE. This was very handy, and while googling for &#8216;tinymce&#8217; and &#8216;selenium&#8217; rendered this as the first link, I&#8217;d like to add links to make sure this quick and simple solution &#8230;<p class="read-more"><a href="http://fewbar.com/2009/11/nick-bartlett-%c2%bb-blog-archive-%c2%bb-selenium-ide-and-tinymce/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://fewbar.com/2009/11/nick-bartlett-%c2%bb-blog-archive-%c2%bb-selenium-ide-and-tinymce/" title="Nick Bartlett » Blog Archive » Selenium IDE and TinyMCE"></a><p><a href="http://www.nickbartlett.com/wordpress/selenium-ide-and-tinymce/">Nick Bartlett » Blog Archive » Selenium IDE and TinyMCE</a>.</p>
<p>This was very handy, and while googling for &#8216;tinymce&#8217; and &#8216;selenium&#8217; rendered this as the first link, I&#8217;d like to add links to make sure this quick and simple solution stays at the top.</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2009/11/nick-bartlett-%c2%bb-blog-archive-%c2%bb-selenium-ide-and-tinymce/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bromine and Selenium &#8211; second and third most useful elements behind Oxygen</title>
		<link>http://fewbar.com/2009/11/bromine-and-selenium-tests-for-the-rests-of-u/</link>
		<comments>http://fewbar.com/2009/11/bromine-and-selenium-tests-for-the-rests-of-u/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 01:48:10 +0000</pubDate>
		<dc:creator>clint</dc:creator>
				<category><![CDATA[Engineers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://fewbar.com/?p=125</guid>
		<description><![CDATA[<a href="http://fewbar.com/2009/11/bromine-and-selenium-tests-for-the-rests-of-u/" title="Bromine and Selenium - second and third most useful elements behind Oxygen"></a>If you&#8217;re an engineer, you hate testing. Seriously, who likes doing what those mere mortal &#8220;users&#8221; do? We&#8217;re POWER users and we don&#8217;t need to use all those silly features on all those sites. Just look at Craigslist, clearly an &#8230;<p class="read-more"><a href="http://fewbar.com/2009/11/bromine-and-selenium-tests-for-the-rests-of-u/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://fewbar.com/2009/11/bromine-and-selenium-tests-for-the-rests-of-u/" title="Bromine and Selenium - second and third most useful elements behind Oxygen"></a><p>If you&#8217;re an engineer, you hate testing. Seriously, who likes doing what those mere mortal &#8220;users&#8221; do? We&#8217;re POWER users and we don&#8217;t need to use all those silly features on all those sites. Just look at Craigslist, clearly an engineer&#8217;s dream tool.</p>
<p>For web apps, testing actually isn&#8217;t *that* hard. The client program (the browser) is readily available on every platform known to man, and they generally don&#8217;t do much more than store and retrieve data in clever ways. So, its not like we have to fire up a Large Hadron Collider to observe the effects of our web app.<span id="more-125"></span><a href="http://fewbar.com/wp-content/uploads/2009/11/periodictable.jpg"><img class="size-full wp-image-127 alignleft" title="periodictable" src="http://fewbar.com/wp-content/uploads/2009/11/periodictable.jpg" alt="periodictable" width="234" height="142" /></a></p>
<p>Therein lies the problem though, as clicking around on web forms and entering the same email address, password, address, phone number, etc. etc., 100 times, is BORING.</p>
<p>Enter <a href="http://seleniumhq.org/">Selenium</a>. This amazing little tool has been on the scene for a little while now, but its just now getting some momentum. Click through to the website and watch &#8220;the magic&#8221; as they put it, but basically here&#8217;s how it goes:</p>
<ul>
<li> open their firefox plugin and click &#8216;record</li>
<li>do something</li>
<li>click &#8216;record&#8217; again.</li>
</ul>
<p>Then just save this little test case to a file, and the next time you change anything that might relate to the series of clicks and data entries you just made, run this test again. There are all kinds of assertions you can make while you&#8217;re doing something. Like &#8216;Make sure the title is X&#8217; or &#8216;make sure a link to Y exists&#8217;.</p>
<p>But wait, I could have done that with something like Test::More,  PHPUnit, or lime. Where&#8217;s the real benefit?</p>
<p>Well because Selenium remotely controls your browser, all those gotchya&#8217;s regarding javascript CSS incompatibilities can come into play here. Because Selenium can control Internet Explorer, Firefox, *and* Safari. In fact it can also control Opera, and according to their website, any browser that properly supports javascript fully.</p>
<p>This is really a nice evolutionary step for web shops, as tools like this generally are OS specific and cost a lot of money. Once again open source software appears where a need becomes somewhat ubiquitous.</p>
<p>You can even take it a step further. The next thing that generally happens in a web dev shop when they get bigger than 20 or 30 people is they hire people who actually <strong>like</strong> testing. Well not really, but they dislike it *less* than software engineers. These are QA engineers. And they <strong>DO</strong> like things to be orderly and efficient.</p>
<p><a href="http://seleniumhq.org/projects/bromine/">Bromine</a> is the answer for that. Its still pretty rough around the edges, but it gets the job done.</p>
<p>Again check out their website and watch the screencast, but basically it goes like this:</p>
<ul>
<li>Write selenium tests as specified above</li>
<li>Upload tests to Bromine server</li>
<li>Attach tests to requirements</li>
<li>Run selenium remote control on all required OS/browser version combinations (can you say virtualbox?)</li>
<li>Run tests</li>
</ul>
<p>Another nice thing about using bromine is now you are running your tests in a server side language, not just the Selenium IDE, which is limited to the IDE&#8217;s generated &#8220;Selenese&#8221; XML commands for tests. The IDE exports your basic test into PHP or Java, and then on the bromine server you can do interesting things, like check an IMAP box for an email, run a backend process, or send an SMS.</p>
<p>At first it may not seem like much, but eventually you end up with a multitude of useful tests for your web app that can be run all the time against development branches before release, and catch many problems. Quality means happier users, which hopefully means loyal users that keep coming back.</p>
]]></content:encoded>
			<wfw:commentRss>http://fewbar.com/2009/11/bromine-and-selenium-tests-for-the-rests-of-u/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.145 seconds -->

