<?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>rob aldred &#187; cucumber</title>
	<atom:link href="http://robaldred.co.uk/tag/cucumber/feed/" rel="self" type="application/rss+xml" />
	<link>http://robaldred.co.uk</link>
	<description>cars, f1, bikes, tech tips &#38; what ever i&#039;m interested in this week</description>
	<lastBuildDate>Thu, 15 Apr 2010 13:54:51 +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>Adding additional configuration args to selenium rc using cucumber and webrat</title>
		<link>http://robaldred.co.uk/2010/02/adding-additional-configuration-args-to-selenium-rc-using-cucumber-and-webrat/</link>
		<comments>http://robaldred.co.uk/2010/02/adding-additional-configuration-args-to-selenium-rc-using-cucumber-and-webrat/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 14:30:50 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[webrat]]></category>

		<guid isPermaLink="false">http://robaldred.co.uk/?p=183</guid>
		<description><![CDATA[I use cucumber, webrat and selenium RC a lot day to day, all are great pieces of kit, which make my life so much easier, but I&#8217;m always trying to find ways to make these ever easier. Selenium RC has alot of options which are settable when booting the selenium-server java application. Many of these [...]]]></description>
			<content:encoded><![CDATA[<p>I use cucumber, webrat and selenium RC a lot day to day, all are great pieces of kit, which make my life so much easier, but I&#8217;m always trying to find ways to make these ever easier.<br />
Selenium RC has alot of options which are settable when booting the selenium-server java application.<br />
Many of these options are not available when using selenium with cucumber and webrat.</p>
<p>I have <a href="https://webrat.lighthouseapp.com/projects/10503/tickets/307-ability-to-pass-additional-args-to-the-selenium-rc-server">raised an issue for webrat</a> and produced a patch that enables you to pass additional arguments during the setup of your webrat instance, these are then passed on to the Selenium RC startup command. </p>
<p>Until this is prioritised and added to the webrat core, I have an on-the-fly solution that enables the additional args, the following code should be added to your `env.rb`</p>
<div class="codecolorer-container ruby twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#9966CC; font-weight:bold;">module</span> Webrat<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">class</span> Configuration<br />
&nbsp; &nbsp; attr_accessor <span style="color:#ff3333; font-weight:bold;">:selenium_additional_args</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#9966CC; font-weight:bold;">end</span><br />
<br />
<span style="color:#9966CC; font-weight:bold;">module</span> AdditionalArgs &nbsp;<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">def</span> <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">included</span><span style="color:#006600; font-weight:bold;">&#40;</span>base<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; base.<span style="color:#9900CC;">alias_method_chain</span> <span style="color:#ff3333; font-weight:bold;">:start</span>, <span style="color:#ff3333; font-weight:bold;">:additional_args</span><br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
&nbsp; &nbsp;<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">def</span> start_with_additional_args<br />
&nbsp; &nbsp; remote_control.<span style="color:#9900CC;">additional_args</span> = Webrat.<span style="color:#9900CC;">configuration</span>.<span style="color:#9900CC;">selenium_additional_args</span><br />
&nbsp; &nbsp; start_without_additional_args<br />
&nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#9966CC; font-weight:bold;">end</span><br />
<br />
Webrat.<span style="color:#9900CC;">configure</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>config<span style="color:#006600; font-weight:bold;">|</span> &nbsp;<br />
&nbsp; ... &nbsp;<br />
&nbsp; <span style="color:#9900CC;">config</span>.<span style="color:#9900CC;">selenium_additional_args</span> = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">&quot;-firefoxProfileTemplate '../../Library/Application Support/Firefox/Profiles/selenium'&quot;</span>, <span style="color:#996600;">&quot;-singleWindow&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span><br />
&nbsp; ...<br />
<span style="color:#9966CC; font-weight:bold;">end</span><br />
<br />
<span style="color:#6666ff; font-weight:bold;">Webrat::Selenium::SeleniumRCServer</span>.<span style="color:#9900CC;">send</span><span style="color:#006600; font-weight:bold;">&#40;</span>:<span style="color:#9966CC; font-weight:bold;">include</span>, AdditionalArgs<span style="color:#006600; font-weight:bold;">&#41;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://robaldred.co.uk/2010/02/adding-additional-configuration-args-to-selenium-rc-using-cucumber-and-webrat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cucumber pretty html formatter for textmate</title>
		<link>http://robaldred.co.uk/2009/08/cucumber-pretty-html-formatter-for-textmate/</link>
		<comments>http://robaldred.co.uk/2009/08/cucumber-pretty-html-formatter-for-textmate/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 11:23:48 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Mac Tips]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://robaldred.co.uk/?p=105</guid>
		<description><![CDATA[I&#8217;ve been using cucumber a lot recently along with the textmate bundle for it. The HTML output cucumber creates is fine, but not all that pretty. I&#8217;ve created a new formatter for cucumber to generate HTML enhanced with some javascript. My inspiration came from the textmate bundle for rspec. You can grap it off my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://cukes.info" target="_blank">cucumber</a> a lot recently along with the textmate bundle for it.<br />
The HTML output cucumber creates is fine, but not all that pretty.</p>
<p>I&#8217;ve created a new formatter for cucumber to generate HTML enhanced with some javascript.<br />
My inspiration came from the textmate bundle for <a href="http://rspec.info" target="_blank">rspec</a>.</p>
<p>You can grap it off my <a href="http://github.com/raldred/cucumber_textmate/tree/master" target="_blank">github</a>.<br />
Here&#8217;s some screenshots:</p>

<a href='http://robaldred.co.uk/2009/08/cucumber-pretty-html-formatter-for-textmate/cucumber_failure-2/' title='cucumber_failure'><img width="150" height="150" src="http://robaldred.co.uk/wp-content/uploads/2009/08/cucumber_failure-150x150.jpg" class="attachment-thumbnail" alt="cucumber_failure" title="cucumber_failure" /></a>
<a href='http://robaldred.co.uk/2009/08/cucumber-pretty-html-formatter-for-textmate/cucumber_full-2/' title='cucumber_full'><img width="150" height="150" src="http://robaldred.co.uk/wp-content/uploads/2009/08/cucumber_full-150x150.jpg" class="attachment-thumbnail" alt="cucumber_full" title="cucumber_full" /></a>

<p><strong>UPDATE:</strong> I replaced the original html formatter in cucumber; as of 19th November my fork has been merged into Aslak&#8217;s cucumber/master upgrade to the cucumber 0.4.5 release.<br />
<a href="http://bit.ly/6beSgO">View the commit history</a></p>
]]></content:encoded>
			<wfw:commentRss>http://robaldred.co.uk/2009/08/cucumber-pretty-html-formatter-for-textmate/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
