<?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/"
		>
<channel>
	<title>Comments on: Did I say don&#8217;t unit-test GUIs?</title>
	<atom:link href="http://www.hans-eric.com/2008/01/03/did-i-say-dont-unit-test-guis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hans-eric.com/2008/01/03/did-i-say-dont-unit-test-guis/</link>
	<description>Hans-Eric Grönlund on software development</description>
	<lastBuildDate>Thu, 29 Jul 2010 15:10:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: yperi</title>
		<link>http://www.hans-eric.com/2008/01/03/did-i-say-dont-unit-test-guis/comment-page-1/#comment-23638</link>
		<dc:creator>yperi</dc:creator>
		<pubDate>Fri, 26 Dec 2008 20:36:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.hans-eric.com/2008/01/03/did-i-say-dont-unit-test-guis/#comment-23638</guid>
		<description>I read with interest the previous thread, and now this follow-up.
I work in GUI many years, and gained some experience.
It was nice to see you bending towards I guess the next one will be: &quot;... Oh yeah, and unless you are using a complex data-cache logic. But thats it! Other than that, do not waste your time on GUI testing.&quot; 
And 3 weeks later, you might add: &quot;Well, hmmm, there is a tiny chance that you will need to develop a real complex component like  a visual schematic editor. But this is really the only case you need to test the GUI...&quot;

So, you already see my point: GUIs can get very complex.
Look at Visio, look at Photo Shop, even at iTunes. 
More over, even GUIs that looks simple might implement complex mechanisms to optimize performance, to support selection dependencies, implement lazy-fetch mechanism etc.

I suspect that you, as well as most of the other people that responded to the previous thread had only experience with a basic GUI components and logic. This also explains the link to the Humble Dialog Box paper.

If your GUI world narrows down to designing a Dialog Boxes, than, then your arguments are valid.

But in the last 10 years when I was planning, architecturing, designing, implementing and automatically-testing GUIs, I must say that the least challenge was designing of dialog boxes.

So, I would rephrase your say with: &quot;Always unit-test GUI unless your GUI is (or can be be) really really simple.” 


Saying that I must admit that unit-testing of GUI is not trivial. Especially if you want to use the same automation solution that runs your regression testing.

I am exploring that area now, and probably soon will start draw some directions for how to do it...


Thanks,

   Yaron.</description>
		<content:encoded><![CDATA[<p>I read with interest the previous thread, and now this follow-up.<br />
I work in GUI many years, and gained some experience.<br />
It was nice to see you bending towards I guess the next one will be: &#8220;&#8230; Oh yeah, and unless you are using a complex data-cache logic. But thats it! Other than that, do not waste your time on GUI testing.&#8221;<br />
And 3 weeks later, you might add: &#8220;Well, hmmm, there is a tiny chance that you will need to develop a real complex component like  a visual schematic editor. But this is really the only case you need to test the GUI&#8230;&#8221;</p>
<p>So, you already see my point: GUIs can get very complex.<br />
Look at Visio, look at Photo Shop, even at iTunes.<br />
More over, even GUIs that looks simple might implement complex mechanisms to optimize performance, to support selection dependencies, implement lazy-fetch mechanism etc.</p>
<p>I suspect that you, as well as most of the other people that responded to the previous thread had only experience with a basic GUI components and logic. This also explains the link to the Humble Dialog Box paper.</p>
<p>If your GUI world narrows down to designing a Dialog Boxes, than, then your arguments are valid.</p>
<p>But in the last 10 years when I was planning, architecturing, designing, implementing and automatically-testing GUIs, I must say that the least challenge was designing of dialog boxes.</p>
<p>So, I would rephrase your say with: &#8220;Always unit-test GUI unless your GUI is (or can be be) really really simple.” </p>
<p>Saying that I must admit that unit-testing of GUI is not trivial. Especially if you want to use the same automation solution that runs your regression testing.</p>
<p>I am exploring that area now, and probably soon will start draw some directions for how to do it&#8230;</p>
<p>Thanks,</p>
<p>   Yaron.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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