<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Happy Path Testing With Selenium RC Fu</title>
	<atom:link href="http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/feed/" rel="self" type="application/rss+xml" />
	<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/</link>
	<description>Experiences of a Software Engineer (cough)</description>
	<lastBuildDate>Wed, 24 Aug 2011 05:58:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Tessa</title>
		<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/#comment-109</link>
		<dc:creator><![CDATA[Tessa]]></dc:creator>
		<pubDate>Wed, 24 Aug 2011 05:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://punctuatedproductivity.wordpress.com/?p=23#comment-109</guid>
		<description><![CDATA[Dag nabbit good stuff you whpipresnpaeprs!]]></description>
		<content:encoded><![CDATA[<p>Dag nabbit good stuff you whpipresnpaeprs!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spent</title>
		<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/#comment-47</link>
		<dc:creator><![CDATA[spent]]></dc:creator>
		<pubDate>Sat, 10 Jan 2009 01:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://punctuatedproductivity.wordpress.com/?p=23#comment-47</guid>
		<description><![CDATA[Please be more specific. The instructions are already pretty detailed.]]></description>
		<content:encoded><![CDATA[<p>Please be more specific. The instructions are already pretty detailed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Test123test</title>
		<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/#comment-43</link>
		<dc:creator><![CDATA[Test123test]]></dc:creator>
		<pubDate>Fri, 05 Dec 2008 16:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://punctuatedproductivity.wordpress.com/?p=23#comment-43</guid>
		<description><![CDATA[Hi 

I am currently working on QTP for some GE projects and as per the req we are moving from qtp to Selenium RC
As i am a new baby in selenium kindly tell me each and every step staring from download selenium files from path till the complete script running part using RUBY client(As we decided to use ruby client)

Kindly give me the examples like where to keep the selenium server files ruby files and our script file and when and how to run the server and when and how to run the ruby scripts

We are trying this from last 10 days and found no success
Your reply will be appreciated

Regards
Test]]></description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>I am currently working on QTP for some GE projects and as per the req we are moving from qtp to Selenium RC<br />
As i am a new baby in selenium kindly tell me each and every step staring from download selenium files from path till the complete script running part using RUBY client(As we decided to use ruby client)</p>
<p>Kindly give me the examples like where to keep the selenium server files ruby files and our script file and when and how to run the server and when and how to run the ruby scripts</p>
<p>We are trying this from last 10 days and found no success<br />
Your reply will be appreciated</p>
<p>Regards<br />
Test</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praitheesh</title>
		<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/#comment-38</link>
		<dc:creator><![CDATA[Praitheesh]]></dc:creator>
		<pubDate>Tue, 02 Sep 2008 09:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://punctuatedproductivity.wordpress.com/?p=23#comment-38</guid>
		<description><![CDATA[hi,
we have the plane to develop the tool to automating the qa.Here we r going to integrate with selenium rc and lundbuild(http://fisheye1.atlassian.com/browse/~raw,r=1.30/luntbuild/luntbuild/docs/guide/manual.html)
Here can u anyone tell how can we use selenium rc here?]]></description>
		<content:encoded><![CDATA[<p>hi,<br />
we have the plane to develop the tool to automating the qa.Here we r going to integrate with selenium rc and lundbuild(<a href="http://fisheye1.atlassian.com/browse/~raw,r=1.30/luntbuild/luntbuild/docs/guide/manual.html" rel="nofollow">http://fisheye1.atlassian.com/browse/~raw,r=1.30/luntbuild/luntbuild/docs/guide/manual.html</a>)<br />
Here can u anyone tell how can we use selenium rc here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/#comment-37</link>
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Sat, 16 Aug 2008 20:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://punctuatedproductivity.wordpress.com/?p=23#comment-37</guid>
		<description><![CDATA[I tried following your instructions, and the rake task complained like this:

** Invoke selenium:test_with_server_started (first_time)
** Execute selenium:test_with_server_started
rake aborted!
Since Selenium spawns an internal app server, we need ActiveRecord to be multi-threaded. Please set &#039;ActiveRecord::Base.allow_concurrency = true&#039; in your environment file (e.g. test.rb).

Sure enough, I got past the error by adding the suggested line to config/environments/test.rb

The next problem that I ran into was that the selenium server was looking for a binary called &quot;firefox-bin&quot; in my path.  I&#039;m running firefox 3 on linux, and it&#039;s binary is just called &quot;firefox&quot;.  I fixed the problem by making a symbolic link: /usr/local/bin/firefox-bin -&gt; /usr/lib/firefox-3.0.1/firefox

After that my test ran fine.

Has anybody found a good way to configure selenium-rc_fu to use specified firefox profiles?  I would like to have some tests that check how my app behaves in a browser with javascript enabled, and other tests that verify that the app gracefully degrades without javascript support (e.g. use a firefox profile with javascript disabled.)]]></description>
		<content:encoded><![CDATA[<p>I tried following your instructions, and the rake task complained like this:</p>
<p>** Invoke selenium:test_with_server_started (first_time)<br />
** Execute selenium:test_with_server_started<br />
rake aborted!<br />
Since Selenium spawns an internal app server, we need ActiveRecord to be multi-threaded. Please set &#8216;ActiveRecord::Base.allow_concurrency = true&#8217; in your environment file (e.g. test.rb).</p>
<p>Sure enough, I got past the error by adding the suggested line to config/environments/test.rb</p>
<p>The next problem that I ran into was that the selenium server was looking for a binary called &#8220;firefox-bin&#8221; in my path.  I&#8217;m running firefox 3 on linux, and it&#8217;s binary is just called &#8220;firefox&#8221;.  I fixed the problem by making a symbolic link: /usr/local/bin/firefox-bin -&gt; /usr/lib/firefox-3.0.1/firefox</p>
<p>After that my test ran fine.</p>
<p>Has anybody found a good way to configure selenium-rc_fu to use specified firefox profiles?  I would like to have some tests that check how my app behaves in a browser with javascript enabled, and other tests that verify that the app gracefully degrades without javascript support (e.g. use a firefox profile with javascript disabled.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/#comment-34</link>
		<dc:creator><![CDATA[Henry]]></dc:creator>
		<pubDate>Tue, 18 Mar 2008 16:39:09 +0000</pubDate>
		<guid isPermaLink="false">http://punctuatedproductivity.wordpress.com/?p=23#comment-34</guid>
		<description><![CDATA[Thanks, that clears everything up. There&#039;s no doubt that we&#039;re going to include selenium tests, I was just hoping that I was being dense and there was be an easy way to speed up these tests through transactions - definitely too good to be true.]]></description>
		<content:encoded><![CDATA[<p>Thanks, that clears everything up. There&#8217;s no doubt that we&#8217;re going to include selenium tests, I was just hoping that I was being dense and there was be an easy way to speed up these tests through transactions &#8211; definitely too good to be true.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spent</title>
		<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/#comment-33</link>
		<dc:creator><![CDATA[spent]]></dc:creator>
		<pubDate>Tue, 18 Mar 2008 14:55:40 +0000</pubDate>
		<guid isPermaLink="false">http://punctuatedproductivity.wordpress.com/?p=23#comment-33</guid>
		<description><![CDATA[Henry,

&gt;...I was wondering if there was any way around having to delete 
&gt;and reload the fixtures between each test...

I don&#039;t know of a way. The test scripts have full access to the rails data and simultaneously drive selenium to perform operations on a browser which is in turn talking to a web server. If things were transactional the test scripts would not be able to see the state of the data. The &quot;Full-stack webapp testing with Selenium and Rails&quot; talk mentioned at the beginning of the article probably covers this better.

&gt; ...you say that transactional fixtures did not cause a problem for you.

You are correct that transactional fixtures would break seleniumrc_fu&#039;s operations. Transactional fixtures are turned off in the seleniumrc_fu test base class. My test suite now has a mix of tests, most of which use transactional fixtures, but the selenium tests do not. 

These tests are slow but really useful. At Pivotal Labs we use continuous integration, which partially takes the sting out of long running tests. You can make a change and run the tests that verify the change and check in. The CI box will run the full test suite, including the selenium tests on multiple browsers (firefox, IE).]]></description>
		<content:encoded><![CDATA[<p>Henry,</p>
<p>&gt;&#8230;I was wondering if there was any way around having to delete<br />
&gt;and reload the fixtures between each test&#8230;</p>
<p>I don&#8217;t know of a way. The test scripts have full access to the rails data and simultaneously drive selenium to perform operations on a browser which is in turn talking to a web server. If things were transactional the test scripts would not be able to see the state of the data. The &#8220;Full-stack webapp testing with Selenium and Rails&#8221; talk mentioned at the beginning of the article probably covers this better.</p>
<p>&gt; &#8230;you say that transactional fixtures did not cause a problem for you.</p>
<p>You are correct that transactional fixtures would break seleniumrc_fu&#8217;s operations. Transactional fixtures are turned off in the seleniumrc_fu test base class. My test suite now has a mix of tests, most of which use transactional fixtures, but the selenium tests do not. </p>
<p>These tests are slow but really useful. At Pivotal Labs we use continuous integration, which partially takes the sting out of long running tests. You can make a change and run the tests that verify the change and check in. The CI box will run the full test suite, including the selenium tests on multiple browsers (firefox, IE).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/#comment-32</link>
		<dc:creator><![CDATA[Henry]]></dc:creator>
		<pubDate>Tue, 18 Mar 2008 13:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://punctuatedproductivity.wordpress.com/?p=23#comment-32</guid>
		<description><![CDATA[spent,

Sorry for taking so long to reply, I got side-tracked by other issues.

That&#039;s cleared up one confusion, which is why you were loading your fixtures into your development environment. That makes good sense to be able to see what your tests will see when creating the tests.

Looking back my main question is about the running of the tests after they&#039;ve been written. Basically, I was wondering if there was any way around having to delete and reload the fixtures between each test. Clearly one possibility is using transactional fixtures as with the unit tests, though I was under the (possibly mistaken impression) that transactional fixtures as implemented unobtrusively by Rails wouldn&#039;t work with Selenium RC-style tests. It&#039;s a different process running the tests (rake selenium:test) to the one altering the database through the Rails app (the mongrel server), so any changes made by the mongrel process won&#039;t be visible to the test task and the rollback by the test task won&#039;t rollback any changes by the mongrel process.

However, you say that transactional fixtures did not cause a problem for you. So does that mean, they just worked with Selenium tests without any need for additional configuration or setup?]]></description>
		<content:encoded><![CDATA[<p>spent,</p>
<p>Sorry for taking so long to reply, I got side-tracked by other issues.</p>
<p>That&#8217;s cleared up one confusion, which is why you were loading your fixtures into your development environment. That makes good sense to be able to see what your tests will see when creating the tests.</p>
<p>Looking back my main question is about the running of the tests after they&#8217;ve been written. Basically, I was wondering if there was any way around having to delete and reload the fixtures between each test. Clearly one possibility is using transactional fixtures as with the unit tests, though I was under the (possibly mistaken impression) that transactional fixtures as implemented unobtrusively by Rails wouldn&#8217;t work with Selenium RC-style tests. It&#8217;s a different process running the tests (rake selenium:test) to the one altering the database through the Rails app (the mongrel server), so any changes made by the mongrel process won&#8217;t be visible to the test task and the rollback by the test task won&#8217;t rollback any changes by the mongrel process.</p>
<p>However, you say that transactional fixtures did not cause a problem for you. So does that mean, they just worked with Selenium tests without any need for additional configuration or setup?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spent</title>
		<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/#comment-31</link>
		<dc:creator><![CDATA[spent]]></dc:creator>
		<pubDate>Tue, 11 Mar 2008 14:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://punctuatedproductivity.wordpress.com/?p=23#comment-31</guid>
		<description><![CDATA[Henry,

After rereading your comment and rereading the article, I think you may have been referring to the section where I suggest loading your fixture data into your dev environment. You asked about transactional fixtures and as I said in my last comment this did not cause a problem for me but it might for you.

I&#039;m not sure the article made the point clear enough so I&#039;m going to try again. Your selenium tests will probably need data, and in the process of creating your selenium tests initially it is helpful to drive the application manually so that you can see exactly what the selenium test will see. The best way to do this is 1) use fixture data for your tests and 2) load that fixture data into your dev environment while creating your tests so that you can run your app and see it just as your selenium tests will see it.]]></description>
		<content:encoded><![CDATA[<p>Henry,</p>
<p>After rereading your comment and rereading the article, I think you may have been referring to the section where I suggest loading your fixture data into your dev environment. You asked about transactional fixtures and as I said in my last comment this did not cause a problem for me but it might for you.</p>
<p>I&#8217;m not sure the article made the point clear enough so I&#8217;m going to try again. Your selenium tests will probably need data, and in the process of creating your selenium tests initially it is helpful to drive the application manually so that you can see exactly what the selenium test will see. The best way to do this is 1) use fixture data for your tests and 2) load that fixture data into your dev environment while creating your tests so that you can run your app and see it just as your selenium tests will see it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spent</title>
		<link>http://punctuatedproductivity.com/2008/02/05/happy-path-testing-with-selenium-rc-fu/#comment-30</link>
		<dc:creator><![CDATA[spent]]></dc:creator>
		<pubDate>Mon, 10 Mar 2008 21:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://punctuatedproductivity.wordpress.com/?p=23#comment-30</guid>
		<description><![CDATA[Henry,

I believe that the normal, non-transactional fixture flow is 1) the fixture table is cleared and 2) the fixture data loaded, and this is done for each fixture specified for your tests. Transactional fixtures are an optimization to this process, since the fixture loading and the test are all done in a transaction, which is simply rolled back at the end of the test.

I hope this helps.]]></description>
		<content:encoded><![CDATA[<p>Henry,</p>
<p>I believe that the normal, non-transactional fixture flow is 1) the fixture table is cleared and 2) the fixture data loaded, and this is done for each fixture specified for your tests. Transactional fixtures are an optimization to this process, since the fixture loading and the test are all done in a transaction, which is simply rolled back at the end of the test.</p>
<p>I hope this helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

