<?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"
	>
<channel>
	<title>Comments on: When Not to Automate</title>
	<atom:link href="http://blog.james-carr.org/2007/09/13/when-not-to-automate/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.james-carr.org/2007/09/13/when-not-to-automate/</link>
	<description>Rants and Musings of an Agile Developer</description>
	<pubDate>Sat, 22 Nov 2008 05:55:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: James Carr</title>
		<link>http://blog.james-carr.org/2007/09/13/when-not-to-automate/#comment-31716</link>
		<dc:creator>James Carr</dc:creator>
		<pubDate>Fri, 14 Sep 2007 12:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.james-carr.org/2007/09/13/when-not-to-automate/#comment-31716</guid>
		<description>Peter,

I agree... my point is I have come across UI tests that ONLY test that form fields are present. However, I have written tests that do fill out form fields, submit them, and check the output (dao, email, whatever) of the process and maybe the page the user ends up on. As I said:

&lt;blockquote&gt;
On the other hand, a test that fills out those form fields with different combinations of data, submits them, and verifies the expected outputs is a VERY worthwhile test.
&lt;/blockquote&gt;

I just take an issue with automated tests testing such things like images being present, static text, etc. Of course, this is at discretion... I say it's dumb to test images, but what if it's part of something like a map renderer? Like always, context matters. ;)

Thanks,
James</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>I agree&#8230; my point is I have come across UI tests that ONLY test that form fields are present. However, I have written tests that do fill out form fields, submit them, and check the output (dao, email, whatever) of the process and maybe the page the user ends up on. As I said:</p>
<blockquote><p>
On the other hand, a test that fills out those form fields with different combinations of data, submits them, and verifies the expected outputs is a VERY worthwhile test.
</p></blockquote>
<p>I just take an issue with automated tests testing such things like images being present, static text, etc. Of course, this is at discretion&#8230; I say it&#8217;s dumb to test images, but what if it&#8217;s part of something like a map renderer? Like always, context matters. <img src='http://blog.james-carr.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thanks,<br />
James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Zsoldos</title>
		<link>http://blog.james-carr.org/2007/09/13/when-not-to-automate/#comment-31715</link>
		<dc:creator>Peter Zsoldos</dc:creator>
		<pubDate>Fri, 14 Sep 2007 12:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.james-carr.org/2007/09/13/when-not-to-automate/#comment-31715</guid>
		<description>James,

Your statement that "IMHO a test to make sure form fields are present is a waste of time" is without context. 

If you are using a form builder class/module, then there is definitely a point to making sure that the expected fields are present in the form.

If it is a static, manually edited form, you might be right. However, I don't see that it would be too much work to automate it. I would even argue that writing the test for it and running the test is much faster than manually verifying it. In addition to that, having such test in place could point you to the source of error pretty fast should that field be accidentally deleted, saving you some time hunting for bugs in the wrong places.</description>
		<content:encoded><![CDATA[<p>James,</p>
<p>Your statement that &#8220;IMHO a test to make sure form fields are present is a waste of time&#8221; is without context. </p>
<p>If you are using a form builder class/module, then there is definitely a point to making sure that the expected fields are present in the form.</p>
<p>If it is a static, manually edited form, you might be right. However, I don&#8217;t see that it would be too much work to automate it. I would even argue that writing the test for it and running the test is much faster than manually verifying it. In addition to that, having such test in place could point you to the source of error pretty fast should that field be accidentally deleted, saving you some time hunting for bugs in the wrong places.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume</title>
		<link>http://blog.james-carr.org/2007/09/13/when-not-to-automate/#comment-31714</link>
		<dc:creator>Guillaume</dc:creator>
		<pubDate>Fri, 14 Sep 2007 12:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.james-carr.org/2007/09/13/when-not-to-automate/#comment-31714</guid>
		<description>I kinda agree with the general point, but I feel that you're missing one key benefit of automated tests: backup for refactoring. Even when a test seems dumb or unneeded, you never know when it can suddenly become the indicator that something went wrong in a refactoring session.

Simply put, the more tests I have in my project (even silly ones sometimes), the more confident I am when hacking and slashing in my code refactoring everything. I just run my full build, and if everything still passes, then I can commit to the source control and sleep well at night.

Granted, the above does not apply to "static text" testing, obviously. Such tests are really silly.</description>
		<content:encoded><![CDATA[<p>I kinda agree with the general point, but I feel that you&#8217;re missing one key benefit of automated tests: backup for refactoring. Even when a test seems dumb or unneeded, you never know when it can suddenly become the indicator that something went wrong in a refactoring session.</p>
<p>Simply put, the more tests I have in my project (even silly ones sometimes), the more confident I am when hacking and slashing in my code refactoring everything. I just run my full build, and if everything still passes, then I can commit to the source control and sleep well at night.</p>
<p>Granted, the above does not apply to &#8220;static text&#8221; testing, obviously. Such tests are really silly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sammy Larbi</title>
		<link>http://blog.james-carr.org/2007/09/13/when-not-to-automate/#comment-31709</link>
		<dc:creator>Sammy Larbi</dc:creator>
		<pubDate>Fri, 14 Sep 2007 11:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.james-carr.org/2007/09/13/when-not-to-automate/#comment-31709</guid>
		<description>James,
I think it can be worthwhile to verify that a dynamically built form is build according to expectations, but I can see why you think it would be silly to verify that a statically-typed-in-by-the-programmer form would meet expectations.  All you are doing is requiring them to type it twice - once for the test and once for the site/application, which would just turn into copy and paste.  

It might be nice to automate testing that it is valid markup though.  Even an existence test can be worthwhile for the times someone messes with it and removes a field that should be there (such as when you build a form, client has access to change it, and then removes a field that should always be there).

Regards,
Sam</description>
		<content:encoded><![CDATA[<p>James,<br />
I think it can be worthwhile to verify that a dynamically built form is build according to expectations, but I can see why you think it would be silly to verify that a statically-typed-in-by-the-programmer form would meet expectations.  All you are doing is requiring them to type it twice - once for the test and once for the site/application, which would just turn into copy and paste.  </p>
<p>It might be nice to automate testing that it is valid markup though.  Even an existence test can be worthwhile for the times someone messes with it and removes a field that should be there (such as when you build a form, client has access to change it, and then removes a field that should always be there).</p>
<p>Regards,<br />
Sam</p>
]]></content:encoded>
	</item>
</channel>
</rss>
