<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CkEHSX4_eyp7ImA9WxNUFkQ.&quot;"><id>tag:blogger.com,1999:blog-15045980</id><updated>2009-11-08T06:30:38.043-08:00</updated><title type="text">Google Testing Blog</title><subtitle type="html">If it ain't broke, you're not trying hard enough.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://googletesting.blogspot.com/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Champika</name><uri>http://www.blogger.com/profile/03252710337455692272</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>171</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><link rel="self" href="http://feeds.feedburner.com/blogspot/RLXA" type="application/atom+xml" /><feedburner:emailServiceId>blogspot/RLXA</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry gd:etag="W/&quot;CUcGSH04cCp7ImA9WxNUEko.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-1000184391974582058</id><published>2009-10-20T15:48:00.000-07:00</published><updated>2009-11-03T10:30:29.338-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-03T10:30:29.338-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Whittaker" /><title>The FedEx Tour</title><content type="html">&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;By Rajat Dewan&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  ;font-family:'Times New Roman';font-size:medium;"&gt;&lt;div style="margin-top: 6px; margin-right: 6px; margin-bottom: 6px; margin-left: 6px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Verdana; font-size: 10pt; background-color: rgb(255, 255, 255); min-height: 1100px; counter-reset: __goog_page__ 0; line-height: normal; "&gt;I appreciate James' offer to talk about how I have used the FedEx tour in Mobile Ads. Good timing too as I just found two more priority 0 bugs with the automation that the FedEx tour inspired! It was fun presenting this at STAR and I am pleased so many people attended.&lt;br /&gt;&lt;div style="margin-top: 0px; margin-bottom: 0px; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-top: 0px; margin-bottom: 0px; "&gt;Mobile has been a hard problem space for testing: a humongous  browser, phone, capability combination which is changing fast as the underlying technology evolves. Add to this poor tool support for the mobile platform and the rapid evolution of the device and you'll understand why I am so interested in advice on how to do better test design. We've literally tried everything, from checking screenshots of Google's properties on mobile phones to treating the phone like a collection of client apps and automating them in the UI button-clicking traditional way.&lt;br /&gt;&lt;br /&gt;Soon after James joined Google in May 2009, he started introducing the concept of tours, essentially making a point of "structured" exploratory testing. Tours presented a way for me to look at the testing problem in a radical new way. &lt;i&gt;Traditionally, the strategy is simple, focus on the end user interaction, and verify the expected outputs from the system under test. &lt;/i&gt;Tours (at least for me) change this formula. They force the tester to focus on what the software does, isolating the different moving parts of software in execution, and isolating the different parts of the software at the component (and composition) level. Tours tell me to focus on testing the parts that drive the car, rather than on whether or not the car drives. This is somewhat counter intuitive I admit, that's why it is so important. The real value add of the tours comes from the fact that they guide me in testing those different parts and help me analyze how different capabilities inter-operate. Cars will always drive you off the lot, which part will break first is the real question.&lt;br /&gt;&lt;br /&gt;I think testing a car is a good analogy. As a system it's devilishly complicated, hard to automate and hard to find the right combination of factors to make it fail. However, testing the dashboard can be automated; so can testing the flow of gasoline from the fuel tank to the engine and from there to the exhaust, so can lots of other capabilities. These automated point solutions can also be combined to test a bigger piece of the whole system. It's exactly what a mechanic does when trying to diagnose a problem: he employs different strategies for testing/checking each mechanical subsystem.&lt;br /&gt;&lt;br /&gt;At STAR West, I spoke about evolving a good test strategy with the help of tours, specifically the FedEx tour. Briefly, the FedEx tour talks about tracking the movement of data and how it gets consumed and transformed by the system. It focuses on a very specific moving part, and as it turns out a crucial one for mobile. &lt;/div&gt;&lt;div style="margin-top: 0px; margin-bottom: 0px; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-top: 0px; margin-bottom: 0px; "&gt;James' FedEx tour tells me to identify and track data through my system. Identifying it is the easy part: the data comes from the Ads Database and is basically the information a user sees when the ad is rendered. When I followed it through the system, I noted three (and only three) places where the data is used (either manipulated or rendered for display). I found this to be true for all 10 local versions of the Mobile Ads application. The eureka moment for me was realizing that if I validated the data at those three points, I had little else to do in order to verify any specific localized version of an ad. Add all the languages you want, I'll be ready!&lt;/div&gt;&lt;div style="margin-top: 0px; margin-bottom: 0px; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-top: 0px; margin-bottom: 0px; "&gt;I was able to hook verification modules at each one of these three data inflection points. This basically meant validating data for the new Click-to-Call Ad parameters and locale specific phone number format. I was tracking how code is affecting the data at each stage, which also helps in localizing a bug better than other conventional means...I knew exactly where the failure was! For overcoming the location dependency, I mocked the GPS location parameters of the phone. As soon as I finished with the automation, I ran each ad in our database through each of the language versions verifying the integrity of the data. The only thing that was left was to visually verify rendering of the ads on the three platforms, reducing the manual tests to three (one each for Android, iPhone and Palm Pre).&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-top: 0px; margin-bottom: 0px; "&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-top: 0px; margin-bottom: 0px; "&gt;The FedEx tour guided me to build a succinct piece of automation and turned what could have been a huge and error prone manual test into a reusable piece of automation that will find and localize bugs quickly. We're now looking at applying the FedEx tour across ads and in other client and cloud areas in the company. Hopefully there will be more experience reports from others who have found it useful.&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-top: 0px; margin-bottom: 0px; "&gt;Exploratory Testing ... it's not just for manual testers anymore!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-1000184391974582058?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=HVsST5yydrU:4T9DV_ZKpoI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=HVsST5yydrU:4T9DV_ZKpoI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=HVsST5yydrU:4T9DV_ZKpoI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/HVsST5yydrU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/1000184391974582058/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=1000184391974582058" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/1000184391974582058?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/1000184391974582058?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/HVsST5yydrU/fedex-tour.html" title="The FedEx Tour" /><author><name>James Whittaker</name><uri>http://www.blogger.com/profile/16554467015823464445</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04466347442459152025" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/10/fedex-tour.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkIDRXc6fSp7ImA9WxNWFEg.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-4014879767705642300</id><published>2009-10-12T13:08:00.000-07:00</published><updated>2009-10-13T11:29:34.915-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-13T11:29:34.915-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Whittaker" /><title>STAR West Trip Report</title><content type="html">By James A. Whittaker&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I am happy to report that attendance is way up at STAR. My back of the envelope calculations put it at several hundred more than STAR East a mere five months ago. A sure sign of economic recovery; I am surprised the stat hasn't made it to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Obama's&lt;/span&gt; resume yet.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The Expo was my main disappointment. The vendor exhibits are still in atrophy. I realize the days of Mercury and Rational are over and &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Empirix's&lt;/span&gt; $ix figure rotating-parts booth is packed away in &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;someone's&lt;/span&gt; garage, but there were only two short rows of sedate booths. (The magician was a nice touch though ... wish I could remember what he was selling.) Where have all the big players gone? &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I gave a tutorial with the arrogant title (Lee Copeland's idea, not mine) "James Whittaker: On Testing." It was listed as sold out (STAR capped the audience at 100) but a couple dozen truants clearly snuck in. Apparently there is a bug in their 'sold out' exception handler and I am a poor door warden. The tutorial is a discussion of problems and trends in testing. I gave it at STAR East and it was different again this time. It's half a discussion of what we do wrong in testing and half about how to correct those behaviors. As my understanding of these issues evolves, so does this tutorial. If you attended (only a small handful of the 100+ would admit to reading this blog), feel free to post a comment, I promise not to delete any negative ones.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I had an amicable hallway conversation with James Bach. His blogger angst at my use of the title 'Exploratory Testing' didn't spill over to a face-to-face discussion. Frankly, I am not surprised. I've never claimed the term as my own, I simply took it and made it work in the hands of real testers on real software under real ship pressure. Consultants can coin all the terms they want, but when us practitioners add meat to their pie, why cry foul? Is it not a better reaction to feel happy that there are people actually doing something with the idea? &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Yet I still made some jabs at the broader consultant community in my keynote. STAR remains full of vendors and people trying to sell ideas instead of results and good engineering practice. I am committing Google and the projects that I lead here to an openness regarding how we do testing and hope to be joined by others. I'd like to see the real practitioners, those who work at financial companies, data centers, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;ISVs&lt;/span&gt;, online retailers, and so forth to come out in larger numbers ... not just as the learners and attendees but also as speakers, panelists and active participants. I'm not saying the consultant community has nothing to say, those guys simply need no encouragement to open their mouths. It's the practitioners who I want to encourage. It's one thing to &lt;i&gt;think&lt;/i&gt; really hard about testing, it's another thing to actually put those thoughts into practice. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The jabs aside, my keynote was aimed at describing the practice of exploratory testing I helped create at Microsoft and am now employing at Google and which is embodied in my new book. But it was my Google cohort &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;Rajat&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;Dewan&lt;/span&gt; who stole the show. After I detailed the Landmark Tour and how we applied it to Chrome, I ran out of time to talk about the FedEx tour. The folks at STAR were kind enough to set up an impromptu breakfast presentation for &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;Rajat&lt;/span&gt; and he delivered a 20 minute talk to a standing room only crowd (I stopped counting at 150) on how he applied the FedEx tour to Mobile Ads. He showed three bugs the tour helped find and described how he automated the tour itself. (Has anyone coined the term 'automated exploratory testing' yet?)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Perhaps he can steal the show again by blogging about his presentation. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;Rajat&lt;/span&gt;?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Other highlights: apparently the twitter-verse was alight over my comment about god-the-developer. I don't tweet and I avoid twits at all costs so I am not sure if people were offended or found it insightful. Comments from &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_9"&gt;tweeters&lt;/span&gt;? Also, I've been invited back for the tutorial at STAR East and also plan on submitting a track talk on &lt;i&gt;How we test Google Chrome&lt;/i&gt;. Let the detailed discussion about real testing, warts and all, begin!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-4014879767705642300?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=qIwHwPCoSWM:kUB0AC3wLe0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=qIwHwPCoSWM:kUB0AC3wLe0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=qIwHwPCoSWM:kUB0AC3wLe0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/qIwHwPCoSWM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/4014879767705642300/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=4014879767705642300" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4014879767705642300?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4014879767705642300?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/qIwHwPCoSWM/star-west-trip-report.html" title="STAR West Trip Report" /><author><name>James Whittaker</name><uri>http://www.blogger.com/profile/16554467015823464445</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04466347442459152025" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/10/star-west-trip-report.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIGSHczfSp7ImA9WxNXF04.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-1204733198786401529</id><published>2009-10-05T01:45:00.000-07:00</published><updated>2009-10-05T02:05:29.985-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-05T02:05:29.985-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="TotT" /><title>TotT: Making a Perfect Matcher</title><content type="html">&lt;span style="font-size:78%;"&gt;by Zhanyong G. Mock Wan in Google Kirkland&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;In the previous episode, we showed how &lt;strong&gt;&lt;span style="color:#990000;"&gt;Google C++ Mocking Framework matchers can make both your test code and your test output readable&lt;/span&gt;&lt;/strong&gt;. What if you cannot find the right matcher for the task?&lt;br /&gt;&lt;br /&gt;Don't settle for anything less than perfect. &lt;span style="color:#990000;"&gt;&lt;strong&gt;It's easy to create a matcher that does exactly what you want, either by composing from existing matchers or by writing one from scratch&lt;/strong&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The simplest &lt;em&gt;composite matcher&lt;/em&gt; is &lt;strong&gt;Not(m)&lt;/strong&gt;, which negates matcher &lt;em&gt;m&lt;/em&gt; as you may have guessed. We also have &lt;strong&gt;AnyOf(m1, ..., mn)&lt;/strong&gt; for &lt;strong&gt;OR&lt;/strong&gt;-ing and &lt;strong&gt;AllOf(m1, ..., mn)&lt;/strong&gt; for &lt;strong&gt;AND&lt;/strong&gt;-ing. Combining them wisely and you can get a lot done. For example,&lt;br /&gt;&lt;br /&gt;&lt;p style="BORDER-BOTTOM: rgb(128,128,128) 1px solid; BORDER-LEFT: rgb(128,128,128) 1px solid; BACKGROUND: rgb(230,245,255); MARGIN-LEFT: 0.39in; BORDER-TOP: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-RIGHT: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="font-family:courier new;"&gt;EXPECT_THAT(new_code, &lt;b&gt;AnyOf&lt;/b&gt;(StartsWith(“// Tests”)),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Not&lt;/b&gt;(ContainsRegex(“TODO.*intern”))));&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;could generate a message like:&lt;br /&gt;&lt;br /&gt;&lt;p style="BORDER-BOTTOM: rgb(128,128,128) 1px solid; BORDER-LEFT: rgb(128,128,128) 1px solid; BACKGROUND: rgb(230,245,255); MARGIN-LEFT: 0.39in; BORDER-TOP: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-RIGHT: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="font-family:courier new;"&gt;&lt;b&gt;Expected:&lt;/b&gt; (starts with “// Tests”) or&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(doesn't contain regular expression “TODO.*intern”)&lt;br /&gt;&lt;b&gt;Actual:&lt;/b&gt; “/* TODO: hire an intern. */ int main() {}”&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;If the matcher expression gets too complex, or your matcher logic cannot be expressed in terms of existing matchers, you can use plain C++. &lt;span style="color:#990000;"&gt;&lt;strong&gt;The MATCHER macro lets you define a named matcher&lt;/strong&gt;&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;p style="BORDER-BOTTOM: rgb(128,128,128) 1px solid; BORDER-LEFT: rgb(128,128,128) 1px solid; BACKGROUND: rgb(230,245,255); MARGIN-LEFT: 0.39in; BORDER-TOP: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-RIGHT: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="font-family:courier new;"&gt;&lt;b&gt;MATCHER&lt;/b&gt;(&lt;b&gt;IsEven&lt;/b&gt;, “”) { return (&lt;b&gt;arg&lt;/b&gt; % 2) == 0; }&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;allows you to write &lt;strong&gt;EXPECT_THAT(paren_num, IsEven())&lt;/strong&gt; to verify that paren_num is divisible by two. The special variable arg refers to the value being validated (paren_num in this case) – it is &lt;em&gt;not&lt;/em&gt; a global variable.&lt;br /&gt;&lt;br /&gt;You can put &lt;em&gt;any code&lt;/em&gt; between {} to validate arg, as long as it returns a bool value.&lt;br /&gt;&lt;br /&gt;The empty string “” tells Google C++ Mocking Framework to &lt;em&gt;automatically generate&lt;/em&gt; the matcher's description from its name (therefore you'll see “&lt;span style="font-family:courier new;"&gt;Expected: is even&lt;/span&gt;” when the match fails). As long as you pick a descriptive name, you get a good description for free.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;&lt;strong&gt;You can also give multiple parameters to a matcher, or customize its description&lt;/strong&gt;&lt;/span&gt;. The code:&lt;br /&gt;&lt;p style="BORDER-BOTTOM: rgb(128,128,128) 1px solid; BORDER-LEFT: rgb(128,128,128) 1px solid; BACKGROUND: rgb(230,245,255); MARGIN-LEFT: 0.39in; BORDER-TOP: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-RIGHT: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="font-family:courier new;"&gt;// P2 means the matcher has 2 parameters. Their names are low and high.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;MATCHER_P2&lt;/b&gt;(&lt;b&gt;InClosedRange&lt;/b&gt;, &lt;b&gt;low&lt;/b&gt;, &lt;b&gt;high&lt;/b&gt;, “is in range [&lt;b&gt;%(low)s&lt;/b&gt;, &lt;b&gt;%(high)s&lt;/b&gt;]”) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;return low &lt;= arg &amp;amp;&amp;amp; arg &lt;= high;&lt;br /&gt;}&lt;br /&gt;...&lt;br /&gt;EXPECT_THAT(my_age, &lt;b&gt;InClosedRange&lt;/b&gt;(adult_min, penalty_to_withdraw_401k)); &lt;/span&gt;&lt;/p&gt;may print:&lt;br /&gt;&lt;br /&gt;&lt;p style="BORDER-BOTTOM: rgb(128,128,128) 1px solid; BORDER-LEFT: rgb(128,128,128) 1px solid; BACKGROUND: rgb(230,245,255); MARGIN-LEFT: 0.39in; BORDER-TOP: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-RIGHT: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="font-family:courier new;"&gt;&lt;b&gt;Expected:&lt;/b&gt; is in range [18, 60]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Actual:&lt;/b&gt; 2&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;(No, that's not my real age.) Note how you can use Python-style interpolation in the description string to print the matcher parameters.&lt;br /&gt;You may wonder why we haven't seen any types in the examples. Rest assured that all the code we showed you is type-safe. &lt;strong&gt;&lt;span style="color:#990000;"&gt;Google C++ Mocking Framework uses compiler type inference to “write” the matcher parameter types for you&lt;/span&gt;&lt;/strong&gt;, so that you can spend the time on actually writing tests – or finding your perfect match.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://code.google.com/intl/de-CH/testing/TotT-2009-10-05.pdf"&gt;Toilet-Friendly Version&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-1204733198786401529?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=Z_O9WTGZvgE:brqHbucp37U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=Z_O9WTGZvgE:brqHbucp37U:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=Z_O9WTGZvgE:brqHbucp37U:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/Z_O9WTGZvgE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/1204733198786401529/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=1204733198786401529" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/1204733198786401529?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/1204733198786401529?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/Z_O9WTGZvgE/tott-making-perfect-matcher.html" title="TotT: Making a Perfect Matcher" /><author><name>Christopher Semturs</name><uri>http://www.blogger.com/profile/15730360562579196562</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="10593405167066642394" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/10/tott-making-perfect-matcher.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04FQX8_fip7ImA9WxNXFEQ.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-1974718471053623145</id><published>2009-10-02T09:07:00.001-07:00</published><updated>2009-10-02T09:11:50.146-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-02T09:11:50.146-07:00</app:edited><title>Cost of Testing</title><content type="html">By &lt;a href="http://misko.hevery.com/"&gt;Miško Hevery&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A lot of people have been asking me lately, what is the cost of testing, so I decided, that I will try to measure it, to dispel  the myth that testing takes twice as long.&lt;br /&gt;&lt;br /&gt;For the last two weeks I have been keeping track of the amount of time I spent writing tests versus the time writing production code. The number surprised even me, but after I thought about it, it makes a lot of sense. The magic number is about 10% of time spent on writing tests. Now before, you think I am nuts, let me back it up with some real numbers from a personal project I have been working on.&lt;br /&gt;&lt;br /&gt;&lt;table border="0"&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;Total&lt;/th&gt;&lt;th&gt;Production&lt;/th&gt;&lt;th&gt;Test&lt;/th&gt;&lt;th&gt;Ratio&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Commits&lt;/th&gt;&lt;td&gt;1,347&lt;/td&gt;&lt;td&gt;1,347&lt;/td&gt;&lt;td&gt;1,347&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;LOC&lt;/th&gt;&lt;td&gt;14,709&lt;/td&gt;&lt;td&gt;8,711&lt;/td&gt;&lt;td&gt;5,988&lt;/td&gt;&lt;td&gt;40.78%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;JavaScript LOC&lt;/th&gt;&lt;td&gt;10,077&lt;/td&gt;&lt;td&gt;6,819&lt;/td&gt;&lt;td&gt;3,258&lt;/td&gt;&lt;td&gt;32.33%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Ruby LOC&lt;/th&gt;&lt;td&gt;4,632&lt;/td&gt;&lt;td&gt;1,892&lt;/td&gt;&lt;td&gt;2,740&lt;/td&gt;&lt;td&gt;59.15%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Lines/Commit&lt;/th&gt;&lt;td&gt;10.92&lt;/td&gt;&lt;td&gt;6.47&lt;/td&gt;&lt;td&gt;4.45&lt;/td&gt;&lt;td&gt;40.78%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Hours(estimate)&lt;/th&gt;&lt;td&gt;1,200&lt;/td&gt;&lt;td&gt;1,080&lt;/td&gt;&lt;td&gt;120&lt;/td&gt;&lt;td&gt;10.00%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Hours/Commit&lt;/th&gt;&lt;td&gt;0.89&lt;/td&gt;&lt;td&gt;0.80&lt;/td&gt;&lt;td&gt;0.09&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Mins/Commit&lt;/th&gt;&lt;td&gt;53&lt;/td&gt;&lt;td&gt;48&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Commits refers to the number of commits I have made to the repository. LOC is lines of code which is broken down by language. The ratio shows the typical breakdown between the production and test code when you test drive and it is about half, give or take a language. It is interesting to note that on average I commit about 11 lines out of which 6.5 are production and 4.5 are test. Now, keep in mind this is average, a lot of commits are large where you add a lot of code, but then there are a lot of commits where you are tweaking stuff, so the average is quite low.&lt;br /&gt;&lt;br /&gt;The number of hours spent on the project is my best estimate, as I have not kept track of these numbers. Also, the 10% breakdown comes from keeping track of my coding habits for the last two weeks of coding. But, these are my best guesses.&lt;br /&gt;&lt;br /&gt;Now when I test drive, I start with writing a test which usually takes me few minutes (about 5 minutes) to write. The test represents my scenario. I then start implementing the code to make the scenario pass, and the implementation usually takes me a lot longer (about 50 minutes). The ratio is highly asymmetrical! Why does it take me so much less time to write the scenario than it does to write the implementation given that they are about the same length? Well look at a typical test and implementation:&lt;br /&gt;&lt;br /&gt;Here is a typical test for a feature:&lt;br /&gt;&lt;pre&gt;ArrayTest.prototype.testFilter = function() {&lt;br /&gt; var items = ["MIsKO", {name:"john"}, ["mary"], 1234];&lt;br /&gt; assertEquals(4, items.filter("").length);&lt;br /&gt; assertEquals(4, items.filter(undefined).length);&lt;br /&gt;&lt;br /&gt; assertEquals(1, items.filter('iSk').length);&lt;br /&gt; assertEquals("MIsKO", items.filter('isk')[0]);&lt;br /&gt;&lt;br /&gt; assertEquals(1, items.filter('ohn').length);&lt;br /&gt; assertEquals(items[1], items.filter('ohn')[0]);&lt;br /&gt;&lt;br /&gt; assertEquals(1, items.filter('ar').length);&lt;br /&gt; assertEquals(items[2], items.filter('ar')[0]);&lt;br /&gt;&lt;br /&gt; assertEquals(1, items.filter('34').length);&lt;br /&gt; assertEquals(1234, items.filter('34')[0]);&lt;br /&gt;&lt;br /&gt; assertEquals(0, items.filter("I don't exist").length);&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;ArrayTest.prototype.testShouldNotFilterOnSystemData = function() {&lt;br /&gt; assertEquals("", "".charAt(0)); // assumption&lt;br /&gt; var items = [{$name:"misko"}];&lt;br /&gt; assertEquals(0, items.filter("misko").length);&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;ArrayTest.prototype.testFilterOnSpecificProperty = function() {&lt;br /&gt; var items = [{ignore:"a", name:"a"}, {ignore:"a", name:"abc"}];&lt;br /&gt; assertEquals(2, items.filter({}).length);&lt;br /&gt;&lt;br /&gt; assertEquals(2, items.filter({name:'a'}).length);&lt;br /&gt;&lt;br /&gt; assertEquals(1, items.filter({name:'b'}).length);&lt;br /&gt; assertEquals("abc", items.filter({name:'b'})[0].name);&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;ArrayTest.prototype.testFilterOnFunction = function() {&lt;br /&gt; var items = [{name:"a"}, {name:"abc", done:true}];&lt;br /&gt; assertEquals(1, items.filter(function(i){return i.done;}).length);&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;ArrayTest.prototype.testFilterIsAndFunction = function() {&lt;br /&gt; var items = [{first:"misko", last:"hevery"},&lt;br /&gt;              {first:"mike", last:"smith"}];&lt;br /&gt;&lt;br /&gt; assertEquals(2, items.filter({first:'', last:''}).length);&lt;br /&gt; assertEquals(1, items.filter({first:'', last:'hevery'}).length);&lt;br /&gt; assertEquals(0, items.filter({first:'mike', last:'hevery'}).length);&lt;br /&gt; assertEquals(1, items.filter({first:'misko', last:'hevery'}).length);&lt;br /&gt; assertEquals(items[0], items.filter({first:'misko', last:'hevery'})[0]);&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;ArrayTest.prototype.testFilterNot = function() {&lt;br /&gt; var items = ["misko", "mike"];&lt;br /&gt;&lt;br /&gt; assertEquals(1, items.filter('!isk').length);&lt;br /&gt; assertEquals(items[1], items.filter('!isk')[0]);&lt;br /&gt;};&lt;/pre&gt;&lt;br /&gt;Now here is code which implements this scenario tests above:&lt;br /&gt;&lt;pre&gt;Array.prototype.filter = function(expression) {&lt;br /&gt; var predicates = [];&lt;br /&gt; predicates.check = function(value) {&lt;br /&gt;   for (var j = 0; j &amp;lt; predicates.length; j++) {&lt;br /&gt;      if(!predicates[j](value)) {&lt;br /&gt;        return false;&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;    return true;&lt;br /&gt;  };&lt;br /&gt;  var getter = Scope.getter;&lt;br /&gt;  var search = function(obj, text){&lt;br /&gt;    if (text.charAt(0) === '!') {&lt;br /&gt;      return !search(obj, text.substr(1));&lt;br /&gt;    }&lt;br /&gt;    switch (typeof obj) {&lt;br /&gt;    case "bolean":&lt;br /&gt;    case "number":&lt;br /&gt;    case "string":&lt;br /&gt;      return ('' + obj).toLowerCase().indexOf(text) &amp;gt; -1;&lt;br /&gt;   case "object":&lt;br /&gt;     for ( var objKey in obj) {&lt;br /&gt;       if (objKey.charAt(0) !== '$' &amp;amp;&amp;amp; search(obj[objKey], text)) {&lt;br /&gt;         return true;&lt;br /&gt;       }&lt;br /&gt;     }&lt;br /&gt;     return false;&lt;br /&gt;   case "array":&lt;br /&gt;     for ( var i = 0; i &amp;lt; obj.length; i++) {&lt;br /&gt;       if (search(obj[i], text)) {&lt;br /&gt;         return true;&lt;br /&gt;       }&lt;br /&gt;     }&lt;br /&gt;     return false;&lt;br /&gt;   default:&lt;br /&gt;     return false;&lt;br /&gt;   }&lt;br /&gt; };&lt;br /&gt; switch (typeof expression) {&lt;br /&gt;   case "bolean":&lt;br /&gt;   case "number":&lt;br /&gt;   case "string":&lt;br /&gt;     expression = {$:expression};&lt;br /&gt;   case "object":&lt;br /&gt;     for (var key in expression) {&lt;br /&gt;       if (key == '$') {&lt;br /&gt;         (function(){&lt;br /&gt;           var text = (''+expression[key]).toLowerCase();&lt;br /&gt;           if (!text) return;&lt;br /&gt;           predicates.push(function(value) {&lt;br /&gt;             return search(value, text);&lt;br /&gt;           });&lt;br /&gt;         })();&lt;br /&gt;       } else {&lt;br /&gt;         (function(){&lt;br /&gt;           var path = key;&lt;br /&gt;           var text = (''+expression[key]).toLowerCase();&lt;br /&gt;           if (!text) return;&lt;br /&gt;           predicates.push(function(value) {&lt;br /&gt;             return search(getter(value, path), text);&lt;br /&gt;           });&lt;br /&gt;         })();&lt;br /&gt;       }&lt;br /&gt;     }&lt;br /&gt;     break;&lt;br /&gt;   case "function":&lt;br /&gt;     predicates.push(expression);&lt;br /&gt;     break;&lt;br /&gt;   default:&lt;br /&gt;     return this;&lt;br /&gt; }&lt;br /&gt; var filtered = [];&lt;br /&gt; for ( var j = 0; j &amp;lt; this.length; j++) {&lt;br /&gt;   var value = this[j];&lt;br /&gt;   if (predicates.check(value)) {&lt;br /&gt;     filtered.push(value);&lt;br /&gt;   }&lt;br /&gt; }&lt;br /&gt; return filtered;&lt;br /&gt;};&lt;/pre&gt;&lt;br /&gt;Now, I think that if you look at these two chunks of code, it is easy to see that even though they are about the same length, one is much harder to write. The reason, why tests take so little time to write is that they are linear in nature. No loops, ifs or interdependencies with other tests. Production code is a different story, I have to create complex ifs, loops and have to make sure that the implementation works not just for one test, but all test. This is why it takes you so much longer to write production than test code. In this particular case, I remember rewriting this function three times, before I got it to work as expected. :-)&lt;br /&gt;&lt;br /&gt;So a naive answer is that writing test carries a 10% tax. But, we pay taxes in order to get something in return. Here is what I get for 10% which pays me back:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;When I implement a feature I don't have to start up the whole application and click several pages until I get to page to verify that a feature works. In this case it means that I don't have to refreshing the browser, waiting for it to load a dataset and then typing some test data and manually asserting that I got what I expected. This is immediate payback in time saved!&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Regression is almost nil.  Whenever you are adding new feature you are running the risk of breaking something other then what you are working on immediately (since you are not working on it you are not actively testing it). At least once a day I have a what the @#$% moment when a change suddenly breaks a test at the opposite end of the codebase which I did not expect, and I count my lucky stars. This is worth a lot of time spent when you discover that a feature you thought was working no longer is, and by this time you have forgotten how the feature is implemented.&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Cognitive load is greatly reduced since I don't have to keep all of the assumptions about the software in my head, this makes it really easy to switch tasks or to come back to a task after a meeting, good night sleep or a weekend.&lt;/li&gt;&lt;br /&gt; &lt;li&gt;I can refactor the code at will, keeping it from becoming stagnant, and hard to understand. This is a huge problem on large projects, where the code works, but it is really ugly and everyone is afraid to touch it. This is worth money tomorrow to keep you going.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;These benefits translate to real value today as well as tomorrow. I write tests, because the additional benefits I get more than offset the additional cost of 10%.  Even if I don't include the long term benefits, the value I get from test today are well worth it. I am faster in developing code with test. How much, well that depends on the complexity of the code. The more complex the thing you are trying to build is (more ifs/loops/dependencies) the greater the benefit of tests are.&lt;br /&gt;&lt;br /&gt;So now you understand my puzzled look when people ask me how much slower/costlier the development with tests is.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-1974718471053623145?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=MEsMrMwVaTY:YWTvxTXgjCA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=MEsMrMwVaTY:YWTvxTXgjCA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=MEsMrMwVaTY:YWTvxTXgjCA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/MEsMrMwVaTY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/1974718471053623145/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=1974718471053623145" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/1974718471053623145?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/1974718471053623145?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/MEsMrMwVaTY/cost-of-testing.html" title="Cost of Testing" /><author><name>Misko</name><uri>http://www.blogger.com/profile/00208649366420512257</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="01109711695719643823" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/10/cost-of-testing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkIMR3w6eCp7ImA9WxNXE0U.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-8559119593676951275</id><published>2009-09-29T10:57:00.000-07:00</published><updated>2009-10-01T00:03:06.210-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-01T00:03:06.210-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="TotT" /><title>TotT: Literate Testing With Matchers</title><content type="html">&lt;em&gt;&lt;span style="font-size:85%;"&gt;By Zhanyong G. Mock Wan in Google Kirkland&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Alright, it sounds like a good idea to verify that matchmakers can read and write. How does this concern us programmers, though?&lt;br /&gt;Actually, we are talking about a way of writing tests here – a way that makes both the test code and its output read like English (hence “literate”). The key to this technique is &lt;strong&gt;&lt;span style="color:#cc0000;"&gt;matchers&lt;/span&gt;&lt;/strong&gt;, which &lt;strong&gt;&lt;span style="color:#cc0000;"&gt;are predicates that know how to describe themselves&lt;/span&gt;&lt;/strong&gt;. For example, in Google C++ Mocking Framework, &lt;strong&gt;ContainsRegex&lt;/strong&gt;(&lt;span style="font-family:courier new;"&gt;"Ahcho+!"&lt;/span&gt;) is a matcher that matches any string that has the regular expression &lt;span style="font-family:courier new;"&gt;"Ahcho+!"&lt;/span&gt; in it. Therefore, it matches &lt;span style="font-family:courier new;"&gt;"Ahchoo!"&lt;/span&gt; and &lt;span style="font-family:courier new;"&gt;"Ahchoooo! Sorry."&lt;/span&gt;, but not &lt;span style="font-family:courier new;"&gt;"Aha!"&lt;/span&gt;.&lt;br /&gt;What's this to do with test readability, anyway? It turns out that &lt;strong&gt;&lt;span style="color:#cc0000;"&gt;matchers&lt;/span&gt;&lt;/strong&gt;, whose names are usually verb phrases, &lt;strong&gt;&lt;span style="color:#cc0000;"&gt;lend themselves easily to an assertion style that resembles natural languages&lt;/span&gt;&lt;/strong&gt;. Namely, the assertion&lt;br /&gt;&lt;br /&gt;&lt;p style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; BACKGROUND: rgb(230,245,255); MARGIN-LEFT: 0.39in; BORDER-LEFT: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-BOTTOM: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="font-family:courier new;color:#000000;"&gt;&lt;strong&gt;EXPECT_THAT&lt;/strong&gt;(value, matcher);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;succeeds if &lt;i&gt;value&lt;/i&gt; matches &lt;i&gt;matcher&lt;/i&gt;. For example,&lt;br /&gt;&lt;p style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; BACKGROUND: rgb(230,245,255); MARGIN-LEFT: 0.39in; BORDER-LEFT: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-BOTTOM: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="color:#000000;"&gt;#include &amp;lt;gmock/gmock.h&amp;gt;&lt;br /&gt;using ::testing::Contains;&lt;br /&gt;...&lt;br /&gt;EXPECT_THAT(GetUserList(), Contains(admin_id));&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;verifies that the result of &lt;span style="font-family:courier new;"&gt;GetUserList()&lt;/span&gt; contains the administrator.&lt;br /&gt;&lt;br /&gt;Now, pretend the punctuations aren't there in the last C++ statement and read it. See what I mean?&lt;br /&gt;&lt;br /&gt;Better yet, &lt;strong&gt;&lt;span style="color:#cc0000;"&gt;when an EXPECT_THAT assertion fails, it will print an informative message that includes the expression being validated, its value, and the property we expect it to have&lt;/span&gt;&lt;/strong&gt; – thanks to a matcher's ability to describe itself in human-friendly language. Therefore, not only is the test code readable, the test output it generates is readable too. For instance, the above example might produce:&lt;br /&gt;&lt;p style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; BACKGROUND: rgb(255,255,50); MARGIN-LEFT: 0.39in; BORDER-LEFT: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-BOTTOM: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="font-family:courier new;color:#660000;"&gt;&lt;strong&gt;Value of:&lt;/strong&gt; GetUserList()&lt;br /&gt;&lt;strong&gt;Expected:&lt;/strong&gt; contains "yoko"&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;Actual:&lt;/strong&gt; { "john", "paul", "george", "ringo" }&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;This message contains relevant information for diagnosing the problem, often without having to use a debugger.&lt;br /&gt;To get the same effect without using a matcher, you'd have to write something like:&lt;br /&gt;&lt;p style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; BACKGROUND: rgb(230,245,255); MARGIN-LEFT: 0.39in; BORDER-LEFT: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-BOTTOM: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="color:#000000;"&gt;std::vector&amp;lt;std::string&amp;gt; users = GetUserList();&lt;br /&gt;EXPECT_TRUE(VectorContains(users, admin_id))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&amp;lt; " GetUserList() returns " &amp;lt;&amp;lt; users&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&amp;lt; " and admin_id is " &amp;lt;&amp;lt; admin_id;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;which is harder to write and less clear than the one-liner we saw earlier.&lt;br /&gt;&lt;br /&gt;Google C++ Mocking Framework (&lt;a href="http://code.google.com/p/googlemock/"&gt;http://code.google.com/p/googlemock/&lt;/a&gt;) provides dozens of matchers for validating many kinds of values: numbers, strings, STL containers, structs, etc. They all produce friendly and informative messages. See &lt;a href="http://code.google.com/p/googlemock/wiki/CheatSheet"&gt;http://code.google.com/p/googlemock/wiki/CheatSheet&lt;/a&gt; to learn more. If you cannot&lt;br /&gt;find one that matches (pun intended) your need, you can either combine existing matchers, or define your own from scratch. Both are quite easy to do. We'll show you how in another episode. Stay tuned!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://code.google.com/intl/de-CH/testing/TotT-2009-09-28.pdf"&gt;Toilet-friendly version&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-8559119593676951275?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=pPTd5XGx1no:lkTjioQVNLU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=pPTd5XGx1no:lkTjioQVNLU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=pPTd5XGx1no:lkTjioQVNLU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/pPTd5XGx1no" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/8559119593676951275/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=8559119593676951275" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/8559119593676951275?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/8559119593676951275?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/pPTd5XGx1no/tott-literate-testing-with-matchers.html" title="TotT: Literate Testing With Matchers" /><author><name>Christopher Semturs</name><uri>http://www.blogger.com/profile/15730360562579196562</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="10593405167066642394" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/09/tott-literate-testing-with-matchers.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk4GQHY9fip7ImA9WxNXEUg.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-3078076813854376104</id><published>2009-09-28T09:13:00.000-07:00</published><updated>2009-09-28T09:22:01.866-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-28T09:22:01.866-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Whittaker" /><title>Exploratory Testing ... in print and at STAR</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_9ywu5aylLpo/SsDiKKelkGI/AAAAAAAAABQ/h8sqM2n_ne8/s1600-h/exploratory+software+testing+(cover).bmp"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 246px; height: 320px;" src="http://4.bp.blogspot.com/_9ywu5aylLpo/SsDiKKelkGI/AAAAAAAAABQ/h8sqM2n_ne8/s320/exploratory+software+testing+(cover).bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5386553818574327906" /&gt;&lt;/a&gt;&lt;br /&gt;By James A. Whittaker&lt;br /&gt;&lt;br /&gt;Well my book survived a recession haunted publishing house and my own change of employer and is now available in print. The subtitle even changed as the techniques, which guided manual testing at Microsoft, were reapplied by Google engineers as a way to design test automation. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'll be at STAR next week in Anaheim to talk about exploratory testing, the subject of the book. Accompanying me will be Rajat Dewan of Google who used the 'FedEx Tour' to reduce a test set from hundreds of manual test cases to exactly 9 automated ones. I hope you'll join us.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-3078076813854376104?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=LC1ybpYbypQ:KJnP5fnLO7U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=LC1ybpYbypQ:KJnP5fnLO7U:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=LC1ybpYbypQ:KJnP5fnLO7U:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/LC1ybpYbypQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/3078076813854376104/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=3078076813854376104" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/3078076813854376104?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/3078076813854376104?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/LC1ybpYbypQ/exploratory-testing-in-print-and-at.html" title="Exploratory Testing ... in print and at STAR" /><author><name>James Whittaker</name><uri>http://www.blogger.com/profile/16554467015823464445</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04466347442459152025" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_9ywu5aylLpo/SsDiKKelkGI/AAAAAAAAABQ/h8sqM2n_ne8/s72-c/exploratory+software+testing+(cover).bmp" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/09/exploratory-testing-in-print-and-at.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8FRnc-fip7ImA9WxNQEU8.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-4509944480391294720</id><published>2009-09-16T11:01:00.000-07:00</published><updated>2009-09-16T11:13:37.956-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-16T11:13:37.956-07:00</app:edited><title>Checked exceptions I love you, but you have to go</title><content type="html">&lt;div&gt;By &lt;a href="http://misko.hevery.com"&gt;Miško Hevery&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Once upon a time Java created an experiment called checked-exceptions, you know, you have to declare exceptions or catch them. Since that time, no other language (I know of) has decided to copy this idea, but somehow the Java developers are in love with checked exceptions. Here, I am going to "try" to convince you that checked-exceptions, even though look like a good idea at first glance, are actually not a good idea at all:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Empirical Evidence&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Let's start with an observation of your code base. Look through your code and tell me what percentage of catch blocks do rethrow or print error? My guess is that it is in high 90s. I would go as far as 98% of catch blocks are meaningless, since they just print an error or rethrow the exception which will later be printed as an error. The reason for this is very simple. Most exceptions such as FileNotFoundException, IOException, and so on are sign that we as developers have missed a corner case. The exceptions are used as away of informing us that we, as developers, have messed up. So if we did not have checked exceptions, the exception would be throw and the main method would print it and we would be done with it (optionally we would catch all exceptions in the main log them if we are a server).&lt;br /&gt;&lt;br /&gt;Checked exceptions force me to write catch blocks which are meaningless: more code, harder to read, and higher chance that I will mess up the rethrow logic and eat the exception.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Lost in Noise&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Now lets look at the 2-5% of the catch blocks which are not rethrow and real interesting logic happens there. Those interesting bits of useful and important information is lost in the noise, since my eye has been trained to skim over the catch blocks. I would much rather have code where a catch would indicate: "pay, attention! here, something interesting is happening!", rather than, "it is just a rethrow." Now, if we did not have checked exceptions, you would write your code without catch blocks, test your code (you do test right?) and realize that under some circumstances an exception is throw and deal with it by writing the catch block. In such a case forgetting to write a catch block is no different than forgetting to write an else block of the if statement. We don't have checked ifs and yet no one misses them, so why do we need to tell developers that FileNotFound can happen. What if the developer knows for a fact that it can not happen since he has just placed the file there, and so such an exception would mean that your filesystem has just disappeared! (and your application is not place to handle that.)&lt;br /&gt;&lt;br /&gt;Checked exception make me skim the catch blocks as most are just rethrows, making it likely that you will miss something important.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Unreachable Code&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I love to write tests first and implement as a consequence of tests. In such a situation you should always have 100% coverage since you are only writing what the tests are asking for. But you don't! It is less than 100% because checked exceptions force you to write catch blocks which are impossible to execute. Check this code out:&lt;br /&gt;&lt;pre&gt;bytesToString(byte[] bytes) {&lt;br /&gt; ByteArrayOutputStream out = new ByteArrayOutputStream();&lt;br /&gt; try {&lt;br /&gt;   out.write(bytes);&lt;br /&gt;   out.close()&lt;br /&gt;   return out.toSring();&lt;br /&gt; } catch (IOException e) {&lt;br /&gt;   // This can never happen!&lt;br /&gt;   // Should I rethrow? Eat it? Print Error?&lt;br /&gt; }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;ByteArrayOutputStream will never throw IOException! You can look through its implementation and see that it is true! So why are you making me catch a phantom exception which can never happen and which I can not write a test for? As a result I cannot claim 100% coverage because of things outside my control.&lt;br /&gt;&lt;br /&gt;Checked exceptions create dead code which will never  execute.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Closures Don't Like You&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Java does not have closures but it has visitor pattern. Let me explain with concrete example. I was creating a custom class loader and need to override load() method on MyClassLoader which throws ClassNotFoundException under some circumstances. I use ASM library which allows me to inspect Java bytecodes. The way ASM works is that it is a visitor pattern, I write visitors and as ASM parses the bytecodes it calls specific methods on my visitor implementation. One of my visitors, as it is examining bytecodes, decides that things are not right and needs to throw a ClassNotFondException which the class loader contract says it should throw. But now we have a problem. What we have on a stack is MyClassLoader -&amp;gt; ASMLibrary -&amp;gt; MyVisitor. MyVisitor wants to throw an exception which MyClassLoader expects but it can not since ClassNotFoundException is checked and ASMLibrary does not declare it (nor should it). So I have to throw RuntimeClassNotFoundException from MyVisitor which can pass through ASMLibrary which MyClassLoader can then catch and rethrow as ClassNotFoundException.&lt;br /&gt;&lt;br /&gt;Checked exception get in the way of functional programing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Lost Fidelity&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Suppose java.sql package would be implemented with useful exception such as SqlDuplicateKeyExceptions and SqlForeignKeyViolationException and so on (we can wish) and suppose these exceptions are checked (which they are). We say that the SQL package has high fidelity of exception since each exception is to a very specific problem. Now lets say we have the same set up as before where there is some other layer between us and the SQL package, that layer can either redeclare all of the exceptions, or more likely throw its own. Let's look at an example, Hibernate is object-relational-database-mapper, which means it converts your SQL rows into java objects. So on the stack you have MyApplication -&amp;gt; Hibernate -&amp;gt; SQL. Here Hibernate is trying hard to hide the fact that you are talking to SQL so it throws HibernateExceptions instead of SQLExceptions. And here lies the problem. Your code knows that there is SQL under Hibernate and so it could have handled SqlDuplicateKeyException in some useful way, such as showing an error to the user, but Hibernate was forced to catch the exception and rethrow it as generic HibernateException. We have gone from high fidelitySqlDuplicateKeyException to low fidelity HibernateException. An so MyApplication can not do anything. Now Hibernate could have throw HibernateDuplicateKeyException but that means that Hibernate now has the same exception hierarchy as SQL and we are duplicating effort and repeating ourselves.&lt;br /&gt;&lt;br /&gt;Rethrowing checked exceptions causes you to lose fidelity and hence makes it less likely that you could do something useful with the exception later on.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;You can't do Anything Anyway&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In most cases when exception is throw there is no recovery. We show a generic error to the user and log an exception so that we con file a bug and make sure that that exception will not happen again. Since 90+% of the exception are bugs in our code and all we do is log, why are we forced to rethrow it over and over again.&lt;br /&gt;&lt;br /&gt;It is rare that anything useful can be done when checked exception happens, in most case we die with error! Therefor I want that to be the default behavior of my code with no additional typing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How I deal with the code&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Here is my strategy to deal with checked exceptions in java:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;Always catch all checked exceptions at source and rethrow them as LogRuntimeException.&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;LogRuntimeException is my runtime un-checked exception which says I don't care just log it.&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Here I have lost Exception fidelity.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt; &lt;li&gt;All of my methods do not declare any exceptions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;As I discover that I need to deal with a specific exception I go back to the source where LogRuntimeException was thrown and I change it to &amp;lt;Specific&amp;gt;RuntimeException (This is rarer than you think)&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;I am restoring the exception fidelity only where needed.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Net effect is that when you come across a try-catch clause you better pay attention as interesting things are happening there.&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;Very few try-catch calluses, code is much easier to read.&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Very close to 100% test coverage as there is no dead code in my catch blocks.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-4509944480391294720?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=LHF2IXYn26E:B1EqZh6an6Y:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=LHF2IXYn26E:B1EqZh6an6Y:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=LHF2IXYn26E:B1EqZh6an6Y:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/LHF2IXYn26E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/4509944480391294720/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=4509944480391294720" title="30 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4509944480391294720?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4509944480391294720?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/LHF2IXYn26E/checked-exceptions-i-love-you-but-you.html" title="Checked exceptions I love you, but you have to go" /><author><name>Misko</name><uri>http://www.blogger.com/profile/00208649366420512257</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="01109711695719643823" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">30</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/09/checked-exceptions-i-love-you-but-you.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkIFRX4_fyp7ImA9WxNRGUk.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-8689734607920519872</id><published>2009-09-14T09:37:00.000-07:00</published><updated>2009-09-14T10:15:14.047-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-14T10:15:14.047-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Whittaker" /><title>The Plague of Entropy</title><content type="html">By James Whittaker&lt;div&gt;&lt;br /&gt;Mathematically entropy is a measure of uncertainty. If there are, say, five events then maximum entropy occurs when those five events are equally likely and minimum entropy when one of those events is certain and the other four impossible. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The more uncertain events you have to consider, the higher measured entropy climbs. People often think of entropy as a measure of randomness: the more (uncertain) events one must consider, the more random the outcome becomes. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Testers introduce entropy into development by adding to the number of things a developer has to do. When developers are writing code, entropy is low. When we submit bugs, we increase entropy. Bugs divert their attention from coding. They must now progress in parallel on creating and fixing features. More bugs means more parallel tasks and raises entropy. This entropy is one reason that bugs foster more bugs ... the entropic principle ensures it. Entropy creates more entropy! Finally there is math to show what is intuitively &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;appealing&lt;/span&gt;: that prevention beats a cure. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;However, there is nothing we can do to completely prevent the plague of entropy other than create developers who never err. Since this is unlikely any time soon we must recognize how and when we are introducing entropy and do what we can to manage it. The more we can do &lt;i&gt;during&lt;/i&gt; development the better. Helping out in code reviews, educating our developers about test plans, user scenarios and execution environments so they can code against them will reduce the number of bugs we have to report. Smoking out bugs early, submitting them in batches and making sure we submit only high quality bugs by triaging them ourselves will keep their mind on development. Writing good bug reports and quickly regressing fixes will keep their attention where it needs to be. In effect, it maximizes the certainty of the 'development event' and minimizes the number and impact of bugs. Entropy thus tends toward it's minimum. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We can't banish this plague but if we can recognize the introduction of entropy into development and understand its inevitable effect on code quality, we can keep it at bay. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-8689734607920519872?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=ixidLhHD1ZU:QPOmdZfeWrU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=ixidLhHD1ZU:QPOmdZfeWrU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=ixidLhHD1ZU:QPOmdZfeWrU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/ixidLhHD1ZU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/8689734607920519872/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=8689734607920519872" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/8689734607920519872?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/8689734607920519872?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/ixidLhHD1ZU/plague-of-entropy.html" title="The Plague of Entropy" /><author><name>James Whittaker</name><uri>http://www.blogger.com/profile/16554467015823464445</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04466347442459152025" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/09/plague-of-entropy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8BQ3g6eCp7ImA9WxNSGU0.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-3776965704329854742</id><published>2009-09-02T08:52:00.000-07:00</published><updated>2009-09-02T08:54:12.610-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-02T08:54:12.610-07:00</app:edited><title>It is not about writing tests, its about writing stories</title><content type="html">&lt;div&gt;by &lt;a href="http://misko.hevery.com"&gt;Miško Hevery&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;I would like to make an analogy between building software and building a car. I know it is imperfect one, as one is about design and the other is about manufacturing, but indulge me, the lessons are very similar.&lt;br /&gt;&lt;br /&gt;A piece of software is like a car. Lets say you would like to test a car, which you are in the process of designing, would you test is by driving it around and making modifications to it, or would you prove your design by testing each component separately? I think that testing all of the corner cases by driving the car around is very difficult, yes if the car drives you know that a lot of things must work (engine, transmission, electronics, etc), but if it does not work you have no idea where to look. However, there are some things which you will have very hard time reproducing in this end-to-end test. For example, it will be very hard for you to see if the car will be able to start in the extreme cold of the north pole, or if the engine will not overheat going full throttle up a sand dune in Sahara. I propose we take the engine out and simulate the load on it in a laboratory.&lt;br /&gt;&lt;br /&gt;We call driving car around an end-to-end test and testing the engine in isolation a unit-test. With unit tests it is much easier to simulate failures and corner cases in a much more controlled environment. We need both tests, but I feel that most developers can only imagine the end-to-end tests.&lt;br /&gt;&lt;br /&gt;But lets see how we could use the tests to design a transmission. But first, little terminology change, lets not call them test, but instead call them stories. They are stories because that is what they tell you about your design. My first story is that:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;the transmission should allow the output shaft to be locked, move in same direction (D) as the input shaft, move in opposite (R) or move independently (N)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;Given such a story I could easily create a test which would prove that the above story is true for any design submitted to me. What I would most likely get is a transmission which would only have a single gear in each direction. So lets write another story&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;the transmission should allow the ratio between input and output shaft to be [-1, 0, 1, 2, 3, 4]&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;Again I can write a test for such a transmission but i have not specified how the forward gear should be chosen, so such a transmission would most likely be permanently stuck in 1st gear and limit my speed, it will also over-rev the engine.&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;the transmission should start in 1st and than switch to higher gear before the engine reaches maximum revolutions.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;This is better, but my transmission would most likely rev the engine to maximum before it would switch, and once it would switch to higher gear and I would slow down, it would not down-shift.&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;the transmission should down shift whenever the engine RPM fall bellow 1000 RPMs&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;OK, now it is starting to drive like a car, but still the limits for shifting really are 1000-6000 RPMs which is not very fuel efficient way to drive your car.&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;the transmission should up-shift whenever the estimated fuel consumption at a higher gear ration is better than the current one.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;So now our engine will not rev any more but it will be a lazy car since once the transmission is in the fuel efficient mode it will not want to down-shift&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;the transmission should down-shift whenever the gas pedal is depressed more than 50% and the RPM is lower than the engine's peak output RPM.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;I am not a transmission designer, but I think this is a decent start.&lt;br /&gt;&lt;br /&gt;Notice how I focused on the end result of the transmission rather than on testing specific internals of it. The transmission designer would have a lot of levy in choosing how it worked internally, Once we would have something and we would test it in the real world we could augment these list of stories with additional stories as we discovered additional properties which we would like the transmission to posses.&lt;br /&gt;&lt;br /&gt;If we would decide to change the internal design of the transmission for whatever reason we would have these stories as guides to make sure that we did not forget about anything. The stories represent assumptions which need to be true at all times. Over the lifetime of the component we can collect hundreds of stories which represent equal number of assumption which is built into the system.&lt;br /&gt;&lt;br /&gt;Now imagine that a new designer comes on board and makes a design change which he believes will improve the responsiveness of the transmission, he can do so because the existing stories are not restrictive in how, only it what the outcome should be. The stories save the designer from breaking an existing assumption which was already designed into the transmission.&lt;br /&gt;&lt;br /&gt;Now lets contrast this with how we would test the transmission if it would already be build.&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;test to make sure all of the gears work&lt;/li&gt;&lt;br /&gt; &lt;li&gt;test to make sure that the engine is not allowed to over-rev&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;It is hard now to think about what other tests to write, since we are not using the tests to drive the design. Now, lets say that someone now insist that we get 100% coverage, we open the transmission up and we see all kinds of logic, and rules and we don't know why since we were not part of the design so we write a test&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;at 3000 RPM input shaft, apply 100% throttle and assert that the transmission goes to 2nd gear.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;Tests like that are not very useful when you want to change the design, since you are likely to break the test, without fully understanding why the test was testing that specific conditions, it is hard to know if anything was broken if the tests is red.. That is because the tests does not tell a story any more, it only asserts the current design. It is likely that such a test will be in the way when you will try to do design changes. The point I am trying to make is that there is huge difference between writing tests before or after. When we write tests before we are:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;creating a story which is forcing a particular design decision.&lt;/li&gt;&lt;br /&gt; &lt;li&gt;tests are a collection of assumptions which needs to be true at all times.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;when we write tests after the fact we:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;miss a lot of reasons why things are done in particular way even if we have 100% coverage&lt;/li&gt;&lt;br /&gt; &lt;li&gt;test are often brittle because they are tied to particulars of the current implementation&lt;/li&gt;&lt;br /&gt; &lt;li&gt;tests are just snapshots and don't tell a story of why the component does something, only that it does.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;For this reason there are huge differences in quality when writing assumptions as stories before (which force design to emerge) or writing tests after which take a snapshot of a given design.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-3776965704329854742?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=2gOHcoLqq1I:JlAY_XBcqFk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=2gOHcoLqq1I:JlAY_XBcqFk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=2gOHcoLqq1I:JlAY_XBcqFk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/2gOHcoLqq1I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/3776965704329854742/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=3776965704329854742" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/3776965704329854742?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/3776965704329854742?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/2gOHcoLqq1I/it-is-not-about-writing-tests-its-about.html" title="It is not about writing tests, its about writing stories" /><author><name>Misko</name><uri>http://www.blogger.com/profile/00208649366420512257</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="01109711695719643823" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">8</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/09/it-is-not-about-writing-tests-its-about.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0AAQHY9fSp7ImA9WxNSGU0.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-2441538521820777322</id><published>2009-09-02T08:48:00.000-07:00</published><updated>2009-09-02T09:42:21.865-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-02T09:42:21.865-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Whittaker" /><title>The 7th Plague and Beyond</title><content type="html">By James Whittaker&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Sorry I haven't followed up on this, let the excuse parade begin: A) My new book just came out and I have spent a lot of time corresponding with readers. B) I have taken on leadership of some new projects including the testing of Chrome and Chrome OS (yes you will hear more about these projects right here in the future). C) I've gotten just short of 100 emails suggesting the 7&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;th&lt;/span&gt; plague and that takes time to sort through.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This is clearly one plague-ridden industry (and, no, I am not talking about my book!)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I've thrown out many of them that deal with a specific organization or person who just doesn't take testing seriously enough. Things like the Plague of Apathy (suggested exactly 17 times!) just doesn't fit. This isn't an industry plague, it's a personal/group plague. If you don't care about quality, please do us all a favor and get out of the software business. Go screw someone &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;else's&lt;/span&gt; industry up, we have enough organic problems we have to deal with. I also didn't put down the Plague of the Deluded Developer (suggested by various names 22 times) because it dealt with developers that as a Googler I no longer have to deal with ... those who think they never write bugs. Our developers know better and if I find out exactly where they purchased that clue I will forward the link. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here's some of the best. As many of them have multiple suggesters I have credited the persons who were either first or gave the most thoughtful analysis. Feel free, if you are one of these people, to give further details or clarifications in the comments of this post as I am sure these summaries do not do them justice. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The Plague of Metrics&lt;/b&gt; (Nicole Klein, Curtis &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Pettit&lt;/span&gt; plus 18 others): Metrics change behavior and once a tester knows how the measurement works, they test to make themselves look good or say what they want it to say ignoring other more important factors. The metric becomes the goal instead of measuring progress. The distaste for metrics in many of these emails was palpable!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The Plague of Semantics&lt;/b&gt; (Chris &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;LeMesurier&lt;/span&gt; plus 3 others): We misuse and overuse terms and people like to assign their own meaning to certain terms. It means that designs and specs are often misunderstood or misinterpreted. This was also called the plague of assumptions by other contributors. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The Plague of Infinity&lt;/b&gt; (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Jarod&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;Salamond&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;Radislav&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;Vasilev&lt;/span&gt; and 14 others): The testing problem is so huge it's overwhelming. We spend so much time trying to justify our coverage and explain what we are and are not testing that it takes away from our focus on testing. Every time we take a look at the testing problem we see new risks and new things that need our attention. It randomizes us and stalls our progress. This was also called the plague of endlessness and exhaustion. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The Plague of Miscommunication &lt;/b&gt;(Scott White and 2 others): The language of creation (development) and the language of destruction (testing) are different. Testers write a bug report and the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;devs&lt;/span&gt; don't understand it and cycles have to be spent explaining and reexplaining. A related plague is the lack of communication that causes testers to redo work and tread over the same paths as unit tests, integration tests and even the tests that other testers on the team are performing. This was also called the plague of language (meaning lack of a common one). &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The Plague of Rigidness&lt;/b&gt; (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;Roussi&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;Roussev&lt;/span&gt;, Steven Woody, Michele Smith and 5 others): Sticking to the plan/process/procedure no matter what. Test strategy cannot be bottled in such a manner yet process heavy teams often ignore creativity for the sake of process. We stick with the same stale testing ideas product after product, release after release. This was also called the plague of complacency. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;Roussi&lt;/span&gt; suggested a novel twist calling this the success plague where complacency is brought about through success of the product. How can we be wrong when our software was so successful in the market? &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And I have my own 7&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;th&lt;/span&gt; Plague that I'll save for the next post. Unless anyone would like to write it for me? It's called the Plague of Entropy. A free book to the person who nails it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-2441538521820777322?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=utZelOIrVHo:7XJcdB0IBvM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=utZelOIrVHo:7XJcdB0IBvM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=utZelOIrVHo:7XJcdB0IBvM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/utZelOIrVHo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/2441538521820777322/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=2441538521820777322" title="9 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/2441538521820777322?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/2441538521820777322?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/utZelOIrVHo/7th-plague-and-beyond.html" title="The 7th Plague and Beyond" /><author><name>James Whittaker</name><uri>http://www.blogger.com/profile/16554467015823464445</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04466347442459152025" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">9</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/09/7th-plague-and-beyond.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IFRHg4cSp7ImA9WxNTFUk.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-8508162176213086350</id><published>2009-08-17T13:35:00.000-07:00</published><updated>2009-08-17T13:38:35.639-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-17T13:38:35.639-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="GTAC" /><title>Update! Speakers &amp; Talks for GTAC</title><content type="html">We are thrilled to announce the speakers and talks for the &lt;a style="COLOR: rgb(42,93,176)" href="http://www.gtac.biz/" target="_blank"&gt;4th Google Test Automation Conference (GTAC)&lt;/a&gt;. Competition was fierce: we received over 100 submissions and have an acceptance rate of lower than 10%.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Testing Applications on Mobile Devices (Doron Reuveni, uTest)&lt;/li&gt;&lt;li&gt;JsTestDriver (Jeremie Lenfang-Engelmann, Misko Hevery, Google)&lt;/li&gt;&lt;li&gt;Fighting Layout Bugs (Michael Tamm, optivo GmbH)&lt;/li&gt;&lt;li&gt;Even better than the real thing - Lessons learned from testing GWT applications (Nicolas Wettstein, Google)&lt;/li&gt;&lt;li&gt;Selenium: to 2.0 and Beyond! (Simon Stewart, Google)&lt;/li&gt;&lt;li&gt;Automating Performance Test Data Collection and Reporting (David Burns, David Henderson, smartFOCUS DIGITAL)&lt;/li&gt;&lt;li&gt;Achieving Web Test Automation with a Mixed-Skills Team (Mark Micallef, BBC Future Media and Technology)&lt;/li&gt;&lt;li&gt;Score One for Quality! (Joshua Williams and Ross Smith, Microsoft)&lt;/li&gt;&lt;li&gt;Automatic workarounds for web applications (Antonio Carzaniga, Alessandra Gorla, Nicolò Perino, Mauro Pezzè, University of Lugano )&lt;/li&gt;&lt;li&gt;Precondition Satisfaction by Smart Object Selection in Random Testing (Yi Wei, Serge Gebhardt, ETH Zurich)&lt;/li&gt;&lt;/ul&gt;For further information on the conference please visit its wepage at &lt;a style="COLOR: rgb(42,93,176)" href="http://www.gtac.biz/" target="_blank"&gt;http://www.gtac.biz&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-8508162176213086350?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=l2PM3I0Bzjk:dMnJ7NqHPKw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=l2PM3I0Bzjk:dMnJ7NqHPKw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=l2PM3I0Bzjk:dMnJ7NqHPKw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/l2PM3I0Bzjk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/8508162176213086350/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=8508162176213086350" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/8508162176213086350?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/8508162176213086350?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/l2PM3I0Bzjk/update-speakers-talks-for-gtac.html" title="Update! Speakers &amp; Talks for GTAC" /><author><name>Patrick Copeland</name><uri>http://www.blogger.com/profile/02362734812961509270</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="16620009054973089377" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/08/update-speakers-talks-for-gtac.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UMR306fCp7ImA9WxNTEU0.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-4811369746547225829</id><published>2009-08-12T11:20:00.000-07:00</published><updated>2009-08-12T11:21:26.314-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-12T11:21:26.314-07:00</app:edited><title>Super Fast JS Testing</title><content type="html">&lt;div&gt;&lt;br /&gt;&lt;br /&gt;by &lt;a href="http://theshyam.com/"&gt;Shyam Seshadri&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Before I jump into how exactly you can perform super fast and easy JS testing, let me give you some background on the problem.&lt;br /&gt;&lt;br /&gt;Javascript is a finicky language (Some people even hesitate to call it a language). And it can easily grow and become a horrible and complicated beast, incapable of being tamed once let loose. And testing it is a nightmare. Once you have decided on a framework (of which there are a dime a dozen), you then have to set it up to run just right. You need to set it up to actually run your tests. Then you have to figure out how to run it in a continuous integration environment. Maybe even run it in headless mode. And everyone solves it in their own ways.&lt;br /&gt;&lt;br /&gt;But the biggest problem I have with most of these frameworks is that executing the tests usually requires a context switch. By that, I mean to run a JSUnit test, you end up usually having to open the browser, browse to a particular url or html page which then runs the test. Then you have to look at the results there, and then come back to your editor to either proceed further or fix your tests. Works, but really slows down development.&lt;br /&gt;&lt;br /&gt;In java, all it takes is to click the run button in your IDE to run your tests. You get instant feedback, a green / red bar and details on which tests passed and failed and at what line. No context switch, you can get it to run at every save, and proceed on your merry way. Till now, this was not possible with Javascript.&lt;br /&gt;&lt;br /&gt;But now, we have &lt;a onclick="javascript:pageTracker._trackPageview('/outbound/article/code.google.com');" href="http://code.google.com/p/js-test-driver/" target="_blank"&gt;JS Test Driver&lt;/a&gt;. My colleagues Jeremie and &lt;a onclick="javascript:pageTracker._trackPageview('/outbound/article/misko.hevery.com');" href="http://misko.hevery.com" target="_blank"&gt;Misko&lt;/a&gt; ended up running into some of the issues I outlined above, and decided that going along with the flow was simply unacceptable. So they created a JS Testing framework which solves these very things. You can capture any browser on any machine, and when you tell it to run tests, it will go ahead and execute them on all these browsers and return you the results in your client. And its blazing fast. I am talking milliseconds to run 100 odd tests. And you can tell it to rerun your tests at each save. All within the comforts of your IDE. And over the last three weeks, I have been working on the eclipse plugin for JS Test Driver, and its now at the point where its in a decent working condition.&lt;br /&gt;&lt;div id="attachment_165" style="width: 438px;"&gt;&lt;a href="http://theshyam.com/wp-content/uploads/2009/08/JS-Test-Driver-Plugin.png"&gt;&lt;img title="JS Test Driver Plugin" src="http://theshyam.com/wp-content/uploads/2009/08/JS-Test-Driver-Plugin.png" alt="The plugin in action" width="428" height="478" /&gt;&lt;/a&gt;The plugin in action&lt;/div&gt;&lt;br /&gt;The plugin allows you to, from within Eclipse, start the JS Test Driver server, capture some browsers, and then run your tests. You get pretty icons telling you what browsers were captured, the state of the server, the state of the tests. It allows you to filter and show only failures, rerun your last launch configuration, even setup the paths to your browsers so you can launch it all from the safety of eclipse. And as you can see, its super fast. &lt;strong&gt;&lt;em&gt;Some 100 odd tests in less than 10 ms&lt;/em&gt;&lt;/strong&gt;. If thats not fast, I don’t know what is.&lt;br /&gt;&lt;br /&gt;For more details on JS Test Driver, visit its &lt;a onclick="javascript:pageTracker._trackPageview('/outbound/article/code.google.com');" href="http://code.google.com/p/js-test-driver/" target="_blank"&gt;Google Code&lt;/a&gt; website and see how you can use it in your next project and even integrate it into a continuous integration. Misko talks a little bit more about the motivations behind writing it on his &lt;a onclick="javascript:pageTracker._trackPageview('/outbound/article/misko.hevery.com');" href="http://misko.hevery.com/2009/05/22/yet-another-javascript-testing-framework/" target="_blank"&gt;Yet Another JS Testing Framework&lt;/a&gt; post. To try out the plugin for yourselves, go add the following update site to eclipse:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;http://js-test-driver.googlecode.com/svn/update/&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;For all you IntelliJ fanatics, there is something similar in the works.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-4811369746547225829?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=YcRcxHuVXV8:CBstNYxnaME:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=YcRcxHuVXV8:CBstNYxnaME:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=YcRcxHuVXV8:CBstNYxnaME:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/YcRcxHuVXV8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/4811369746547225829/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=4811369746547225829" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4811369746547225829?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4811369746547225829?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/YcRcxHuVXV8/super-fast-js-testing.html" title="Super Fast JS Testing" /><author><name>Misko</name><uri>http://www.blogger.com/profile/00208649366420512257</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="01109711695719643823" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/08/super-fast-js-testing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUCQHg7fyp7ImA9WxJaGU8.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-4383938670771813043</id><published>2009-08-10T09:25:00.000-07:00</published><updated>2009-08-10T09:37:41.607-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-10T09:37:41.607-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Whittaker" /><title>The 7th Plague?</title><content type="html">&lt;span class="byline-author"&gt;By James A. Whittaker&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Yes, I only posted 6 plagues. Congratulations for catching this purposeful omission! You wouldn't trust a developer who argues "this doesn't need to be tested" or "that function works like so" and you shouldn't trust me when I say there are 7 plagues. In the world of testing &lt;i&gt;all assumptions&lt;/i&gt; must be scrutinized and it doesn't work until someone, namely a tester, verifies that it does!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Clearly this is an alert and education readership. But why assume even this statement is true? How about another test? Anyone feel like contributing the 7th plague?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I've actually received a few via email already and I have an idea of my own 7th. So email them to me at docjamesw@gmail.com and I'll post a few of the best, with attribution, on this blog. Maybe I can even scare up some Google SWAG or a copy of my latest book to the best one. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First come, first published. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-4383938670771813043?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=5ZIs1XhjQws:Wb2kMejpSA8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=5ZIs1XhjQws:Wb2kMejpSA8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=5ZIs1XhjQws:Wb2kMejpSA8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/5ZIs1XhjQws" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/4383938670771813043/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=4383938670771813043" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4383938670771813043?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4383938670771813043?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/5ZIs1XhjQws/7th-plague.html" title="The 7th Plague?" /><author><name>James Whittaker</name><uri>http://www.blogger.com/profile/16554467015823464445</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04466347442459152025" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/08/7th-plague.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04AQ3Y7fip7ImA9WxNTEEg.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-1479275730986763877</id><published>2009-08-08T00:53:00.001-07:00</published><updated>2009-08-11T23:52:22.806-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-11T23:52:22.806-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="TotT" /><title>TotT: Testing GWT without GwtTestCase</title><content type="html">&lt;div id="doc-contents"&gt;&lt;p class="western"  style="font-family:Times New Roman;"&gt;Because GWT (Google Web Toolkit) is new and exciting it's easy to forget the lessons on clean GUI code structure that have been accumulated over nearly thirty years.&lt;/p&gt;&lt;p class="western" style="TEXT-ALIGN: left" face="Times New Roman"&gt;GwtTestCase is good for testing UI-specific code in JavaScript. If you find yourself using GwtTestCase for testing non-ui client-side logic you may not have a clear View/Presenter separation. &lt;b&gt;Separating the View and the Presenter allows for more modular, more easily tested code with shorter test times&lt;/b&gt;. Model View Presenter was introduced in another &lt;span style="FONT-STYLE: normal"&gt;&lt;a id="llx6" title="episode back in February" href="http://googletesting.blogspot.com/2009/02/with-all-sport-drug-scandals-of-late.html"&gt;episode back in February&lt;/a&gt;. &lt;/span&gt;&lt;b&gt;Here's how to apply it to a GWT app.&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" style="TEXT-ALIGN: left" face="Times New Roman"&gt;&lt;b&gt;Defining terms:&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="MARGIN-LEFT: 40px;font-family:Times New Roman;" &gt;&lt;ul&gt;&lt;li&gt;&lt;b style="COLOR: rgb(153,0,0)"&gt;Server&lt;/b&gt;&lt;span style="COLOR: rgb(0,0,0)"&gt; – a completely standard backend with &lt;span style="FONT-STYLE: normal"&gt;&lt;b&gt;no dependency on GWT&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="MARGIN-LEFT: 40px; FONT-FAMILY: Times New Roman"&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style="COLOR: rgb(153,0,0)"&gt;Model&lt;/span&gt; &lt;/b&gt;&lt;span style="COLOR: rgb(0,0,0)"&gt;– the data model. May be shared between the client and server side, or if appropriate you might have a different model for the client side. It has &lt;b&gt;no dependency on GWT&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="MARGIN-LEFT: 40px" face="Times New Roman"&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style="COLOR: rgb(128,0,0)"&gt;&lt;span style="COLOR: rgb(153,0,0)"&gt;View&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-STYLE: normal"&gt;&lt;span style="COLOR: rgb(0,0,0)"&gt;– the display. &lt;b&gt;Classes in the view wrap GWT widgets&lt;/b&gt;, hiding them from the rest of your code. They contain &lt;b&gt;no logic&lt;/b&gt;, &lt;b&gt;no state&lt;/b&gt;, and are &lt;b&gt;easy to mock&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style="COLOR: rgb(128,0,0)"&gt;&lt;span style="COLOR: rgb(153,0,0)"&gt;Presenter&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-STYLE: normal"&gt;&lt;span style="COLOR: rgb(0,0,0)"&gt;– all the client side logic and state; it talks to the server and tells the view what to do. It &lt;b&gt;uses RPC mechanisms from GWT &lt;/b&gt;but&lt;b&gt; no widgets&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;p class="western" align="left" face="Times New Roman"&gt;&lt;b&gt;The Presenter, which contains all the interesting client-side code is fully testable in Java!&lt;/b&gt;&lt;/p&gt;&lt;p style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; BACKGROUND: rgb(230,245,255); MARGIN-LEFT: 0.39in; BORDER-LEFT: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-BOTTOM: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="font-family:Courier New, monospace;"&gt;public void testRefreshPersonListButtonWasClicked() {&lt;br /&gt;IMocksControl easyMockContext = EasyMock.createControl()&lt;br /&gt;mockServer = easyMockContext.createMock(Server.class);&lt;br /&gt;mockView = easyMockContext.createMock(View.class);&lt;span style="font-family:Courier New, monospace;"&gt;&lt;br /&gt;List&lt;person&gt; franz = Lists.newArrayList(new Person("Franz", "Mayer"));&lt;b&gt;&lt;br /&gt;mockServer.getPersonList(AsyncCallbackSuccessMatcher&amp;lt;list&amp;lt;person&gt;&gt;reportSuccess(franz)));&lt;br /&gt;mockView.clearPersonList());&lt;br /&gt;mockView.addPerson(“Franz”, “Mayer”);&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;easyMockContext.replay();&lt;br /&gt;presenter.refreshPersonListButtonClicked();&lt;br /&gt;easyMockContext.verify();&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p class="western" align="left" face="Times New Roman"&gt;&lt;b&gt;Testing failure cases is now as easy as changing expectations.&lt;/b&gt; By swapping in the following expectations, the above test goes from testing success to testing that after two server failures, we show an error message.&lt;/p&gt;&lt;p style="BORDER-RIGHT: rgb(128,128,128) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; BACKGROUND: rgb(230,255,230); MARGIN-LEFT: 0.39in; BORDER-LEFT: rgb(128,128,128) 1px solid; MARGIN-RIGHT: 0.39in; BORDER-BOTTOM: rgb(128,128,128) 1px solid; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous"&gt;&lt;span style="font-family:Courier New, monospace;"&gt;mockServer.getPersonList(AsyncCallbackFailureMatcher&amp;lt;list&amp;lt;person&gt;&gt;&lt;b&gt;reportFailure&lt;/b&gt;(failedExpn))&lt;br /&gt;expectLastCall().times(2); &lt;i&gt;// Ensure the presenter tries twice&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;mockView.showErrorMessage(“Sorry, please try again later”));&lt;/span&gt;&lt;/p&gt;&lt;p class="western" style="FONT-FAMILY: Times New Roman"&gt;&lt;span style="color:#000000;"&gt;You'll still need an end-to-end test. But &lt;b&gt;all your &lt;span style="FONT-STYLE: normal"&gt;logic&lt;/span&gt; &lt;span style="FONT-STYLE: normal"&gt;can be tested in small and fast tests.&lt;/span&gt;&lt;/b&gt; &lt;/span&gt;&lt;/p&gt;&lt;p class="western" style="FONT-STYLE: normal" face="Times New Roman"&gt;The Source Code for the Matchers is open-sourced and can be downloaded here: &lt;a id="po8i" title="AsynCallbackSuccessMatcher.java" href="http://code.google.com/p/gwt-callback-matchers-for-easymock/source/browse/trunk/src/AsyncCallbackSuccessMatcher.java"&gt;AsyncCallbackSuccessMatcher.java&lt;/a&gt; - &lt;a id="yaum" title="AsyncCallbackFailureMatcher.java" href="http://code.google.com/p/gwt-callback-matchers-for-easymock/source/browse/trunk/src/AsyncCallbackFailureMatcher.java"&gt;AsyncCallbackFailureMatcher.java&lt;/a&gt;.&lt;/p&gt;&lt;p class="western" style="FONT-STYLE: normal" face="Times New Roman"&gt;Consider using Test Driven Development (TDD) to develop the presenter. It tends to result in higher test coverage, faster and more relevant tests, as well as a better code structure.&lt;/p&gt;&lt;p class="western" face="Times New Roman"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" face="Times New Roman"&gt;&lt;i&gt;&lt;span style="font-family:Times New Roman;"&gt;This week's episode by David Morgan, Christopher Semturs and Nicolas Wettstein based in Zürich, Switzerland – having a real Mountain View&lt;/span&gt;&lt;/i&gt;&lt;a id="rmpv" title="Toilet-friendly version" href="http://code.google.com/intl/de-CH/testing/TotT-2009-08-07.pdf"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="western" face="Times New Roman"&gt;&lt;a id="ksh_" title="Toilet-friendly version" href="http://code.google.com/intl/de-CH/testing/TotT-2009-08-07.pdf"&gt;Toilet-friendly version&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="western" face="Times New Roman"&gt;&lt;a id="by8d" title="AsynCallbackSuccessMatcher.java" style="COLOR: rgb(85,26,139)" href="http://code.google.com/p/gwt-callback-matchers-for-easymock/source/browse/trunk/src/AsyncCallbackSuccessMatcher.java"&gt;AsyncCallbackSuccessMatcher.java&lt;/a&gt;&lt;/p&gt;&lt;p class="western" style="FONT-FAMILY: Times New Roman"&gt;&lt;a id="he0i" title="AsyncCallbackFailureMatcher.java" style="COLOR: rgb(85,26,139)" href="http://code.google.com/p/gwt-callback-matchers-for-easymock/source/browse/trunk/src/AsyncCallbackFailureMatcher.java"&gt;AsyncCallbackFailureMatcher.java&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-1479275730986763877?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=qaRSZDOAxTQ:Glxt7vAs-08:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=qaRSZDOAxTQ:Glxt7vAs-08:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=qaRSZDOAxTQ:Glxt7vAs-08:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/qaRSZDOAxTQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/1479275730986763877/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=1479275730986763877" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/1479275730986763877?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/1479275730986763877?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/qaRSZDOAxTQ/tott-testing-gwt-without-gwttest.html" title="TotT: Testing GWT without GwtTestCase" /><author><name>Christopher Semturs</name><uri>http://www.blogger.com/profile/15730360562579196562</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="10593405167066642394" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/08/tott-testing-gwt-without-gwttest.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcMQH0-fCp7ImA9WxJaGU8.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-4127025554572568925</id><published>2009-07-31T11:58:00.000-07:00</published><updated>2009-08-10T09:34:41.354-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-10T09:34:41.354-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Misko" /><title>How to think about OO</title><content type="html">by &lt;a href="http://misko.hevery.com/about/"&gt;Miško Hevery&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Everyone seems to think that they are writing OO after all they are using OO languages such as Java, Python or Ruby. But if you exam the code it is often procedural in nature.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Static Methods&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Static methods are procedural in nature and they have no place in OO world. I can already hear the screams, so let me explain why, but first we need to agree that &lt;a href="http://misko.hevery.com/code-reviewers-guide/flaw-brittle-global-state-singletons/"&gt;global variables and state is evil&lt;/a&gt;. If you agree with previous statement than for a static method to do something interesting it needs to have some arguments, otherwise it will always return a constant. Call to a staticMethod() must always return the same thing, if there is no global state. (Time and random, has global state, so that does not count and object instantiation may have different instance but the object graph will be wired the same way.)&lt;br /&gt;&lt;br /&gt;This means that for a static method to do something interesting it needs to have arguments. But in that case I will argue that the method simply belongs on one of its arguments. Example: Math.abs(-3) should really be -3.abs(). Now that does not imply that -3 needs to be object, only that the compiler needs to do the magic on my behalf, which BTW, Ruby got right. If you have multiple arguments you should choose the argument with which method interacts the most.&lt;br /&gt;&lt;br /&gt;But most justifications for static methods argue that they are "utility methods". Let's say that you want to have toCamelCase() method to convert string "my_workspace" to "myWorkspace". Most developers will solve this as StringUtil.toCamelCase("my_workspace"). But, again, I am going to argue that the method simply belongs to the String class and should be "my_workspace".toCamelCase(). But we can't extend the String class in Java, so we are stuck, but in many other OO languages you can add methods to existing classes.&lt;br /&gt;&lt;br /&gt;In the end I am sometimes (handful of times per year) forced to write static methods &lt;strong&gt;due to limitation of the language&lt;/strong&gt;. But that is a rare event since &lt;a href="http://misko.hevery.com/2008/12/15/static-methods-are-death-to-testability/"&gt;static methods are death to testability&lt;/a&gt;. What I do find, is that in most projects static methods are rampant.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Instance Methods&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;So you got rid of all of your static methods but your codes still is procedural. OO says that code and data live together. So when one looks at code one can judge how OO it is without understanding what the code does, simply by looking at the relationship of data and code.&lt;br /&gt;&lt;pre&gt;class Database {&lt;br /&gt; // some fields declared here&lt;br /&gt; boolean isDirty(Cache cache, Object obj) {&lt;br /&gt;   for (Object cachedObj : cache.getObjects) {&lt;br /&gt;     if (cachedObj.equals(obj))&lt;br /&gt;       return false;&lt;br /&gt;   }&lt;br /&gt;   return true;&lt;br /&gt; }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;The problem here is the method may as well be static! It is in the wrong place, and you can tell this because it does not interact with any of the data in the Database, instead it interacts with the data in cache which it fetches by calling the getObjects() method. My guess is that this method belongs to one of its arguments most likely Cache. If you move it to Cache you well notice that the Cache will no longer need the getObjects() method since the for loop can access the internal state of the Cache directly. Hey, we simplified the code (moved one method, deleted one method) and we have made &lt;a href="http://misko.hevery.com/2008/07/18/breaking-the-law-of-demeter-is-like-looking-for-a-needle-in-the-haystack/"&gt;Demeter happy&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The funny thing about the getter methods is that it usually means that the code where the data is processed is outside of the class which has the data. In other words the code and data are not together.&lt;br /&gt;&lt;pre&gt;class Authenticator {&lt;br /&gt; Ldap ldap;&lt;br /&gt; Cookie login(User user) {&lt;br /&gt;   if (user.isSuperUser()) {&lt;br /&gt;     if ( ldap.auth(user.getUser(),&lt;br /&gt;            user.getPassword()) )&lt;br /&gt;       return new Cookie(user.getActingAsUser());&lt;br /&gt;   } else (user.isAgent) {&lt;br /&gt;       return new Cookie(user.getActingAsUser());&lt;br /&gt;   } else {&lt;br /&gt;     if ( ldap.auth(user.getUser(),&lt;br /&gt;            user.getPassword()) )&lt;br /&gt;       return new Cookie(user.getUser());&lt;br /&gt;   }&lt;br /&gt;   return null;&lt;br /&gt; }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;Now I don't know if this code is well written or not, but I do know that the login() method has a very high affinity to user. It interacts with the user a lot more than it interacts with its own state. Except it does not interact with user, it uses it as a dumb storage for data. Again, code lives with data is being violated. I believe that the method should be on the object with which it interacts the most, in this case on User. So lets have a look:&lt;br /&gt;&lt;pre&gt;class User {&lt;br /&gt; String user;&lt;br /&gt; String password;&lt;br /&gt; boolean isAgent;&lt;br /&gt; boolean isSuperUser;&lt;br /&gt; String actingAsUser;&lt;br /&gt;&lt;br /&gt; Cookie login(Ldap ldap) {&lt;br /&gt;   if (isSuperUser) {&lt;br /&gt;     if ( ldap.auth(user, password) )&lt;br /&gt;       return new Cookie(actingAsUser);&lt;br /&gt;   } else (user.isAgent) {&lt;br /&gt;       return new Cookie(actingAsUser);&lt;br /&gt;   } else {&lt;br /&gt;     if ( ldap.auth(user, password) )&lt;br /&gt;       return new Cookie(user);&lt;br /&gt;   }&lt;br /&gt;   return null;&lt;br /&gt; }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;Ok we are making progress, notice how the need for all of the getters has disappeared, (and in this simplified example the need for the Authenticator class disappears) but there is still something wrong. The ifs branch on internal state of the object. My guess is that this code-base is riddled with if (user.isSuperUser()). The issue is that if you add a new flag you have to remember to change all of the ifs which are dispersed all over the code-base. Whenever I see If or switch on a flag I can almost always know that polymorphism is in order.&lt;br /&gt;&lt;pre&gt;class User {&lt;br /&gt; String user;&lt;br /&gt; String password;&lt;br /&gt;&lt;br /&gt; Cookie login(Ldap ldap) {&lt;br /&gt;   if ( ldap.auth(user, password) )&lt;br /&gt;     return new Cookie(user);&lt;br /&gt;   return null;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;class SuperUser extends User {&lt;br /&gt; String actingAsUser;&lt;br /&gt;&lt;br /&gt; Cookie login(Ldap ldap) {&lt;br /&gt;   if ( ldap.auth(user, password) )&lt;br /&gt;     return new Cookie(actingAsUser);&lt;br /&gt;   return null;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;class AgentUser extends User {&lt;br /&gt; String actingAsUser;&lt;br /&gt;&lt;br /&gt; Cookie login(Ldap ldap) {&lt;br /&gt;   return new Cookie(actingAsUser);&lt;br /&gt; }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;Now that we took advantage of polymorphism, each different kind of user knows how to log in and we can easily add new kind of user type to the system. Also notice how the user no longer has all of the flag fields which were controlling the ifs to give the user different behavior. The &lt;a href="http://misko.hevery.com/2008/08/14/procedural-language-eliminated-gotos-oo-eliminated-ifs/"&gt;ifs and flags have disappeared&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Now this begs the question: should the User know about the Ldap? There are actually two questions in there. 1) should User have a field reference to Ldap? and 2) should User have compile time dependency on Ldap?&lt;br /&gt;&lt;br /&gt;Should User have a field reference to Ldap? The answer is no, because you may want to serialize the user to database but you don't want to serialize the Ldap. See &lt;a href="http://misko.hevery.com/2008/09/30/to-new-or-not-to-new/"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Should User have compile time dependency on Ldap? This is more complicated, but in general the answer depends on weather or not you are planning on reusing the User on a different project, since compile time dependencies are transitive in strongly typed languages. My experience is that everyone always writes code that one day they will reuse it, but that day never comes, and when it does, usually the code is entangled in other ways anyway, so code reuse after the fact just does not happen. (developing a library is different since code reuse is an explicit goal.) My point is that a lot of people pay the price of "what if" but never get any benefit out of it. Therefore don't worry abut it and make the User depend on Ldap.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-4127025554572568925?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=36FxPENF-Ys:adP45XbjbmE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=36FxPENF-Ys:adP45XbjbmE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=36FxPENF-Ys:adP45XbjbmE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/36FxPENF-Ys" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/4127025554572568925/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=4127025554572568925" title="18 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4127025554572568925?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4127025554572568925?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/36FxPENF-Ys/how-to-think-about-oo.html" title="How to think about OO" /><author><name>Misko</name><uri>http://www.blogger.com/profile/00208649366420512257</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="01109711695719643823" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">18</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/how-to-think-about-oo.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE4GQnk_cCp7ImA9WxJbGUw.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-2008207006708361742</id><published>2009-07-29T17:11:00.000-07:00</published><updated>2009-07-29T17:15:23.748-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-29T17:15:23.748-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="GTAC" /><title>Call for Attendance: Google Test Automation Conference (GTAC) 2009</title><content type="html">&lt;p&gt;&lt;span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 16px 'Times New Roman'; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px"&gt;&lt;span class="Apple-style-span" style="BORDER-COLLAPSE: collapse;font-family:arial;" &gt;&lt;span style="font-size:85%;"&gt;by Juergen Allgayer, Conference Chair&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 16px 'Times New Roman'; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px"&gt;&lt;span class="Apple-style-span" style="BORDER-COLLAPSE: collapse;font-family:arial;" &gt;&lt;span style="font-size:85%;"&gt;Testing for the Web is the theme of the 4th Google Test Automation Conference (&lt;/span&gt;&lt;a style="COLOR: rgb(42,93,176)" href="http://www.gtac.biz/" target="_blank"&gt;&lt;span style="font-size:85%;"&gt;GTAC&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;), to be held in Zurich, October 21-22.&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We are happy to announce that we are now accepting applications for attendance. The success of the conference depends on active participation of the attendees. Because the available spaces for the conference are limited, we ask each person to apply for attendance. Since we aim for a balanced audience of seasoned practitioners, students and academics, we ask the applicants to provide a brief background statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How to apply&lt;/b&gt;&lt;br /&gt;Please visit&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a style="COLOR: rgb(42,93,176)" href="http://www.gtac.biz/call-for-attendance" target="_blank"&gt;&lt;span style="font-size:85%;"&gt;http://www.gtac.biz/call-for-&lt;wbr&gt;attendance&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;to apply for a attendance.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 16px 'Times New Roman'; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px"&gt;&lt;span class="Apple-style-span" style="BORDER-COLLAPSE: collapse;font-family:arial;" &gt;&lt;b&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Deadline&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Please submit your application until August 28, 2009 at the latest.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Registration Fees&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;There are no registration fees. We will send out detailed registration instructions to each invited applicant. We will provide breakfast and lunch. There will be a reception on the evening of October 21.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Cancellation&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;If you applied but can no longer attend the conference please notify us&lt;br /&gt;immediately by sending an email to&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a style="COLOR: rgb(42,93,176)" href="mailto:gtac-2009-cfa@google.com" target="_blank"&gt;&lt;span style="font-size:85%;"&gt;gtac-2009-cfa@google.com&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;so&lt;br /&gt;someone from the waiting list can get the opportunity instead.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Further information&lt;/b&gt;&lt;br /&gt;General website:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a style="COLOR: rgb(42,93,176)" href="http://www.gtac.biz/" target="_blank"&gt;&lt;span style="font-size:85%;"&gt;http://www.gtac.biz/&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Call for proposals:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a style="COLOR: rgb(42,93,176)" href="http://www.gtac.biz/call-for-proposals" target="_blank"&gt;&lt;span style="font-size:85%;"&gt;http://www.gtac.biz/call-for-&lt;wbr&gt;proposals&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Call for attendance:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a style="COLOR: rgb(42,93,176)" href="http://www.gtac.biz/call-for-attendance" target="_blank"&gt;&lt;span style="font-size:85%;"&gt;http://www.gtac.biz/call-for-&lt;wbr&gt;attendance&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Accommodations:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a style="COLOR: rgb(42,93,176)" href="http://www.gtac.biz/accomodations" target="_blank"&gt;&lt;span style="font-size:85%;"&gt;http://www.gtac.biz/&lt;wbr&gt;accomodations&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-2008207006708361742?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=cuiKSjA94Fs:DXLIkvQER4o:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=cuiKSjA94Fs:DXLIkvQER4o:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=cuiKSjA94Fs:DXLIkvQER4o:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/cuiKSjA94Fs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/2008207006708361742/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=2008207006708361742" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/2008207006708361742?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/2008207006708361742?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/cuiKSjA94Fs/call-for-attendance-google-test.html" title="Call for Attendance: Google Test Automation Conference (GTAC) 2009" /><author><name>Patrick Copeland</name><uri>http://www.blogger.com/profile/02362734812961509270</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="16620009054973089377" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/call-for-attendance-google-test.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EDRXs5eSp7ImA9WxJaGU8.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-8474638822530544537</id><published>2009-07-29T14:30:00.000-07:00</published><updated>2009-08-10T09:27:54.521-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-10T09:27:54.521-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Whittaker" /><title>The Plague of Blindness</title><content type="html">&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:13;"&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:130%;"&gt;&lt;span class="Apple-style-span"  style="font-size:16;"&gt;By James A. Whittaker&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:130%;"&gt;&lt;span class="Apple-style-span"  style="font-size:16;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;And now for the last plague in this series. I hope you enjoyed them (the posts ...not the plagues!)&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Imagine playing a video game blindfolded or even with the heads up display turned off. You cannot monitor your character's health, your targeting system is gone. There is no look ahead radar and no advance warning of any kind. In gaming, the inability to access information about the campaign world is debilitating and a good way to get your character killed. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;There are many aspects of testing software that fall into this invisible spectrum. Software itself is invisible. We see it only through the &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;UI&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; with much of what is happening doing so under the covers and out of our line of sight. It’s not like building a car in which you can clearly see missing pieces and many engineers can look at a car and get the exact same view of it. There is no arguing whether the car has a bumper installed, it is in plain sight for everyone involved to &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;see&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;. Not so with software which exists as magnetic fluctuations on storage media. It’s not a helpful visual.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Software testing is much like game playing while blindfolded. We can't see bugs; we can't see coverage; we can't see code changes. This information, so valuable to us as testers, is hidden in useless static reports. If someone outfitted us with an actual blindfold, we might not even notice. &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;This blindness concerning our product and its behavior creates some very real problems for the software tester. Which parts of the software have enjoyed the most unit testing? Which parts have changed from one build to the next? Which parts have existing bugs posted against them? What part of the software does a specific test case cover? Which parts have been tested thoroughly and which parts have received no attention whatsoever?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Our folk remedy for the blindness plague has always been to measure code coverage, &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;API&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;/method coverage or &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;UI&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; coverage. We pick the things we can see the best and measure them, but do they really tell us anything? We’&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;ve&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; been doing it this way for years not because it is insightful, but simply because it is all our blindness will allow us to do. We’re interacting with our application under test a great deal, but we must rely on other, less concrete senses for any feedback about our effort.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Software testers could learn a lot from the world of gaming. Turn on your heads up display and see the information you've been blind to. There's power in information. &lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-8474638822530544537?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=UBvlZlQTfu0:2vYYoqSIk5g:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=UBvlZlQTfu0:2vYYoqSIk5g:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=UBvlZlQTfu0:2vYYoqSIk5g:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/UBvlZlQTfu0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/8474638822530544537/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=8474638822530544537" title="13 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/8474638822530544537?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/8474638822530544537?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/UBvlZlQTfu0/plague-of-blindness.html" title="The Plague of Blindness" /><author><name>James Whittaker</name><uri>http://www.blogger.com/profile/16554467015823464445</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04466347442459152025" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">13</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/plague-of-blindness.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4FRnY4fCp7ImA9WxJbFEo.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-4488802826080153097</id><published>2009-07-24T16:22:00.000-07:00</published><updated>2009-07-24T16:25:17.834-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-24T16:25:17.834-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="GTAC" /><title>Update! GTAC Keynote Speakers: Niklaus Wirth and Alberto di Meglio</title><content type="html">&lt;span style="font-family:arial;"&gt;by &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Juergen&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Allgayer&lt;/span&gt;, Conference Chair&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;We are thrilled to announce that &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Niklaus&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;Wirth&lt;/span&gt; and Alberto &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;di&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;Meglio&lt;/span&gt; are this years keynote speakers at the 4&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;th&lt;/span&gt; Google Test Automation Conference (&lt;/span&gt;&lt;a style="COLOR: rgb(42,93,176)" href="http://www.gtac.biz/" target="_blank"&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;GTAC&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt;).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;Niklaus&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;Wirth&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Prof. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;Niklaus&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;Wirth&lt;/span&gt;, is the designer of several programing languages and operating systems, including Pascal and Oberon. He received many awards including the Turing award, is author of many books and articles such as "Program Development by Stepwise Refinement" and "Algorithms + Data Structures = Programs". Prof. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;Niklaus&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;Wirth&lt;/span&gt; served as professor at Stanford, University of Zurich, and &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;ETH&lt;/span&gt; Zurich.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;Alberto &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;di&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;Meglio&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;In 2003, Dr. Alberto &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;di&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;Meglio&lt;/span&gt; was appointed by &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;CERN&lt;/span&gt; as Software Integration Manager in the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;Middleware&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;Reengineering&lt;/span&gt; Activity of the first Enabling Grids for E-science (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;EGEE&lt;/span&gt;) project. At the end of the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;EGEE&lt;/span&gt; project, thanks to the very successful results obtained with the integration and testing tools and procedures developed for the grid &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_24"&gt;middleware&lt;/span&gt; developed by &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;EGEE&lt;/span&gt;, Alberto set up Infrastructure for Testing, Integration and Configuration of Software, an international infrastructure co-funded by EC &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_26"&gt;FP&lt;/span&gt;7 (European Commission: &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_27"&gt;CORDIS&lt;/span&gt; - Seventh Framework Programme) for building and testing software on the grid, of which he is currently Project Director.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;"&gt;Reminder: Call for proposals&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;If you would like to give a talk at &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_28"&gt;GTAC&lt;/span&gt; please remember to submit your proposal until August 1 at the latest. Please visit &lt;/span&gt;&lt;a style="COLOR: rgb(42,93,176)" href="http://www.gtac.biz/call-for-proposals" target="_blank"&gt;&lt;span style="font-family:arial;"&gt;http://www.gtac.biz/call-for-proposals&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; for details.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-4488802826080153097?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=jc8Bk3Uf7SE:ARV1V7DWGIs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=jc8Bk3Uf7SE:ARV1V7DWGIs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=jc8Bk3Uf7SE:ARV1V7DWGIs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/jc8Bk3Uf7SE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/4488802826080153097/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=4488802826080153097" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4488802826080153097?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4488802826080153097?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/jc8Bk3Uf7SE/update-gtac-keynote-speakers-niklaus.html" title="Update! GTAC Keynote Speakers: Niklaus Wirth and Alberto di Meglio" /><author><name>Patrick Copeland</name><uri>http://www.blogger.com/profile/02362734812961509270</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="16620009054973089377" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/update-gtac-keynote-speakers-niklaus.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUERn0_cSp7ImA9WxJbFEo.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-4967904485100644007</id><published>2009-07-23T10:38:00.000-07:00</published><updated>2009-07-24T16:30:07.349-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-24T16:30:07.349-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Whittaker" /><title>The Plague of Homelessness</title><content type="html">By James A. Whittaker &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:13;"&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;There are two communities who regularly find bugs, the testers who are paid to find them and the users who stumble upon them quite by accident. Clearly the users aren’t doing so on purpose, but through the normal course of using the software to get work (or entertainment, socializing and so forth) done failures do occur. Often it is the magic combination of an application interacting with real user data on a real user’s computing environment that causes software to fail. Isn’t it obvious then that testers should endeavor to create such data and environmental conditions in the test lab in order to find these bugs before the software ships?&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;Actually, the test community has been diligently making an attempt to do just that for decades. I call this &lt;/span&gt;&lt;i&gt;&lt;span style="font-size:100%;"&gt;bringing the user into the test lab&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:100%;"&gt;, either in body or in spirit&lt;/span&gt;&lt;i&gt;&lt;span style="font-size:100%;"&gt;. &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:100%;"&gt;My own PhD dissertation&lt;/span&gt;&lt;span style="font-size:100%;"&gt; was on the topic of statistical usage testing and I was nowhere near the first person to think of the idea as my multi-page bibliography will attest. But there is a natural limit to the success of such efforts. Testers simply cannot be users or simulate their actions in a realistic enough way to find all the important bugs. Unless you actually &lt;/span&gt;&lt;i&gt;&lt;span style="font-size:100%;"&gt;live in the software&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:100%;"&gt; you will miss important issues.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;It’s like homeownership. It doesn’t matter how well the house is built. It doesn’t matter how diligent the builder and the subcontractors are during the construction process. The house can be thoroughly inspected during every phase of construction by the contractor, the homeowner and the state building inspector. There are just some problems that will only be found once the house is occupied for some period of time. It needs to be used, dined in, slept in, showered in, cooked in, partied in, relaxed in and all the other things homeowners do in their houses. It’s not until the teenager takes an hour long shower while the sprinklers are running that the septic system is found deficient. It’s not until a car is parked in the garage overnight that we find out the rebar was left out of the concrete slab. The builder won't and often can't do these things.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:130%;"&gt;&lt;span class="Apple-style-span"  style="font-size:16;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;And time matters as well. It takes a few months of blowing light bulbs at the rate of one every other week to discover the glitch in the wiring and a year has to pass before the nail heads begin protruding from the drywall. These are issues for the homeowner, not the builder. These are the software equivalents of memory leaks and data corruption, &lt;i&gt;time&lt;/i&gt; is a necessary element in finding such problems.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;These are some number of bugs that simply cannot be found until the house is lived in and software is no different. It needs to be in the hands of real users doing real work with real data in real environments. Those bugs are as inaccessible to testers as nail pops and missing rebar are to home builders.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;Testers are homeless. We can do what we can do and nothing more. It’s good to understand our limitations and plan for the inevitable “punch lists” from our users. Pretending that once an application is released the project is over is simply wrong headed. There is a warranty period that we are overlooking and that period is still part of the testing phase.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-4967904485100644007?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=XCPIw24uRyM:oi2mvB9O8Yo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=XCPIw24uRyM:oi2mvB9O8Yo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=XCPIw24uRyM:oi2mvB9O8Yo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/XCPIw24uRyM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/4967904485100644007/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=4967904485100644007" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4967904485100644007?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/4967904485100644007?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/XCPIw24uRyM/plague-of-homelessness.html" title="The Plague of Homelessness" /><author><name>James Whittaker</name><uri>http://www.blogger.com/profile/16554467015823464445</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04466347442459152025" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">8</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/plague-of-homelessness.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUCQXw7fip7ImA9WxJbEkw.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-1937060308977825007</id><published>2009-07-21T13:42:00.000-07:00</published><updated>2009-07-21T14:37:40.206-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-21T14:37:40.206-07:00</app:edited><title>Blog Stats</title><content type="html">&lt;p&gt;&lt;span style="font-family:arial;"&gt;by Patrick Copeland&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;We get questions once in a while about our readership. Here's a brief summary of the &lt;strong&gt;last 30 days&lt;/strong&gt;...&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;P&lt;/span&gt;&lt;span style="font-family:arial;"&gt;age view count: 34,140&lt;br /&gt;Time on each page: 2:52&lt;br /&gt;Most &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;popular&lt;/span&gt; day to read: Tuesday's.&lt;br /&gt;Most traffic (top 5 in order): US, India, UK, Germany, Canada&lt;br /&gt;Number of &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;countries with readers&lt;/span&gt;: 131&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;Most popular posts...&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://googletesting.blogspot.com/2009/07/why-are-we-embarrassed-to-admit-that-we.html"&gt;&lt;span style="font-family:arial;"&gt;/2009/07/why-are-we-embarrassed-to-admit-that-we&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; (2,227)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://googletesting.blogspot.com/2009/06/7-plagues-of-software-testing.html"&gt;&lt;span style="font-family:arial;"&gt;/2009/06/7-plagues-of-software-testing&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; (2,151)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://googletesting.blogspot.com/2009/07/software-testing-categorization.html"&gt;&lt;span style="font-family:arial;"&gt;/2009/07/software-testing-categorization&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://googletesting.blogspot.com/2009/07/by-shyam-seshadri-nowadays-when-i-talk.html"&gt;&lt;span style="font-family:arial;"&gt;/2009/07/advantages-of-unit-testing&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://googletesting.blogspot.com/2009/06/by-james.html"&gt;&lt;span style="font-family:arial;"&gt;/2009/06/plague-of-repetitiveness&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://googletesting.blogspot.com/2009/07/old-habits-die-hard.html"&gt;&lt;span style="font-family:arial;"&gt;/2009/07/old-habits-die-hard&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://googletesting.blogspot.com/2009/07/separation-anxiety.html"&gt;&lt;span style="font-family:arial;"&gt;/2009/07/separation-anxiety &lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://googletesting.blogspot.com/2009/06/gtac-call-for-proposals.html"&gt;&lt;span style="font-family:arial;"&gt;/2009/06/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;gtac&lt;/span&gt;&lt;/span&gt;-call-for-proposals&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://googletesting.blogspot.com/2009/07/plague-of-amnesia.html"&gt;&lt;span style="font-family:arial;"&gt;/2009/07/plague-of-amnesia&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-1937060308977825007?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=OpmdALUMPCQ:5YQG4VZksmI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=OpmdALUMPCQ:5YQG4VZksmI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=OpmdALUMPCQ:5YQG4VZksmI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/OpmdALUMPCQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/1937060308977825007/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=1937060308977825007" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/1937060308977825007?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/1937060308977825007?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/OpmdALUMPCQ/blog-stats.html" title="Blog Stats" /><author><name>Patrick Copeland</name><uri>http://www.blogger.com/profile/02362734812961509270</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="16620009054973089377" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/blog-stats.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUARXc9eyp7ImA9WxJbFEo.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-6964753362051964218</id><published>2009-07-21T12:16:00.000-07:00</published><updated>2009-07-24T16:30:44.963-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-24T16:30:44.963-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Whittaker" /><title>The Plague of Boredom</title><content type="html">&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:13;"&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;By James A. Whittaker &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:130%;"&gt;&lt;span class="Apple-style-span"  style="font-size:16;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;"Testing is boring." Don’t pretend for a moment that you’ve never heard a developer, designer or other non tester express that sentiment and take a moment to search your own soul for the truth. Even the most bigoted tester would have to admit to contracting the boredom plague at some point. The day-in, day-out execution of tests and the filing of bug reports simply doesn't hold the interest of most technical people who are drawn to computing for its creative and challenging reputation. Even if you find yourself immune to the boredom, you have to admit there are many monotonous and uncreative aspects of testing.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;It doesn’t begin that way though. Early in a tester’s career, the thrill of the bug hunt can keep a tester going for many months. It can be as intoxicating as playing a video game and trying to find some elusive prize. And lots of progress in terms of skill is made in those early years with testers going from novice to pretty good in no time flat. Who can argue with a career that offers such learning, advancement and intellectually interesting problems? &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:130%;"&gt;&lt;span class="Apple-style-span"  style="font-size:16;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;But as the achievement curve levels out, the task of testing can get very repetitive and that quickly turns to monotony. I think, promotion concerns aside, this is why many testers switch to development after a few years. The challenge and creativity gets eclipsed by the monotony. &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:100%;"&gt;I think bored testers are missing something. I submit that it is only the &lt;i&gt;tactical &lt;/i&gt;aspects of software testing that become boring over time and many turn to automation to cure this. Automation as a potion against the tedium of executing test cases and filing bugs reports is one thing, but automation is no replacement for the &lt;i&gt;strategic &lt;/i&gt;aspects of the testing process and it is in this strategy that we find salvation from this plague. The act of test case design, deciding what should and shouldn’t be tested and in what proportion, is not something automation is good at and yet it is an interesting and intellectually challenging task. Neither is the strategic problem of monitoring tests and determining when to stop. These are hard and interesting strategic problems that will banish the plague of boredom. Testers can succumb to the plague of boredom or they can shift their focus from mostly tactical to a nice mix of tactical work and strategic thinking. &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:130%;"&gt;&lt;span style="font-size:100%;"&gt;Make sure that in your rush to perform the small tactical testing tasks you aren't dropping the strategic aspects of your work because therein are the interesting technical challenges and high level thinking that will hold your interest and keep this plague at bay. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-6964753362051964218?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=vfU8CMWPMsg:pe3Lh-0Zi3U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=vfU8CMWPMsg:pe3Lh-0Zi3U:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=vfU8CMWPMsg:pe3Lh-0Zi3U:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/vfU8CMWPMsg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/6964753362051964218/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=6964753362051964218" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/6964753362051964218?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/6964753362051964218?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/vfU8CMWPMsg/plague-of-boredom.html" title="The Plague of Boredom" /><author><name>James Whittaker</name><uri>http://www.blogger.com/profile/16554467015823464445</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04466347442459152025" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/plague-of-boredom.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EARH8-fip7ImA9WxJUGE0.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-781150873688745739</id><published>2009-07-16T20:08:00.000-07:00</published><updated>2009-07-16T20:34:05.156-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-16T20:34:05.156-07:00</app:edited><title>Blog Editor: Moderating Comments</title><content type="html">by Patrick Copeland&lt;br /&gt;&lt;br /&gt;You might not know this but when we started this blog back in January 2007 we were the first at Google to allow readers to comment openly on our posts. We take pride in our goal to participate in the testing community.&lt;br /&gt;&lt;br /&gt;This openness is sometimes abused. Lately the volume of  comment spam has been on the raise. We have to spend a lot of time playing "whack-a-mole" cleaning it up. It's annoying to our readers and clutters the legitimate discussion.&lt;br /&gt;&lt;br /&gt;We've taken the step to moderate comments starting today and will delete spam before you see it. Comments that are clearly spam or are purely promotional in nature will be filtered. The only down side is that comments will have a slight latency getting posted. We will continue to encourage debate and won't censor conflicting or alternative ideas.&lt;br /&gt;&lt;br /&gt;Thanks for understanding. And keep up the rich discussion.&lt;br /&gt;&lt;span class="byline-author"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-781150873688745739?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=CSYgX5L0kdE:89-Ibjd7arE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=CSYgX5L0kdE:89-Ibjd7arE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=CSYgX5L0kdE:89-Ibjd7arE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/CSYgX5L0kdE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/781150873688745739/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=781150873688745739" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/781150873688745739?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/781150873688745739?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/CSYgX5L0kdE/blog-editor-moderating-comments.html" title="Blog Editor: Moderating Comments" /><author><name>Patrick Copeland</name><uri>http://www.blogger.com/profile/02362734812961509270</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="16620009054973089377" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/blog-editor-moderating-comments.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYERno-eip7ImA9WxJaGU8.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-8596966213546342619</id><published>2009-07-15T20:33:00.000-07:00</published><updated>2009-08-10T09:35:07.452-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-10T09:35:07.452-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Misko" /><title>The Advantages of Unit Testing Early</title><content type="html">by &lt;a href="http://theshyam.com/"&gt;Shyam Seshadri&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Nowadays, when I talk with (read: rant at) anyone about why they should do test driven development or write unit tests, my spiel has gotten extremely similar and redundant to the point that I don't have to think about it anymore. But even when I do pairing with skeptics, even as I cajole and coax testable code or some specific refactorings out of them, I wonder, why is it that I have to convince you of the worth of testing ? Shouldn't it be obvious ?&lt;br /&gt;&lt;br /&gt;And sadly, it isn't. Not to many people. To many people, I come advocating the rise of the devil itself. To others, it is this redundant, totally useless thing that is covered by the manual testers anyway. The general opinion seems to be, "I'm a software engineer. It is my job to write software. Nowhere in the job description does it say that I have to write these unit tests." Well, to be fair, I haven't heard that too many times, but they might as well be thinking it, given their investment in writing unit tests. And last time I checked, an engineer's role is to deliver a working software. How do you even prove that your software works without having some unit tests to back you up ? Do you pull it up and go through it step by step, and start cursing when it breaks ? Because without unit tests, the odds are that it will.&lt;br /&gt;&lt;br /&gt;But writing unit tests as you develop isn't just to prove that your code works (though that is a great portion of it). There are so many more benefits to writing unit tests. Lets talk in depth about a few of these below.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Instantaneous Gratification&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The biggest and most obvious reason for writing unit tests (either as you go along, or before you even write code) is instantaneous gratification. When I write code (write, not spike. That is a whole different ball game that I won't get into now), I love to know that it works and does what it should do. If you are writing a smaller component of a bigger app (especially one that isn't complete yet), how are you even supposed to know if what you just painstakingly wrote even works or not ? Even the best engineers make mistakes.&lt;br /&gt;&lt;br /&gt;Whereas with unit tests, I can write my code. Then just hit my shortcut keys to run my tests, and voila, within a second or two, I have the results, telling me that everything passed (in the ideal case) or what failed and at which line, so I know exactly what I need to work on. It just gives you a safety net to fall back on, so you don't have to remember all the ways it is supposed to work in. Something tells you if it is or not.&lt;br /&gt;&lt;br /&gt;Also, doing Test Driven Development when developing is one of the best ways to keep track of what you are working on. I have times when I am churning out code and tests, one after the other, before I need to take a break. The concept of TDD is that I write a failing test, and then I write just enough code to pass that test. So when I take a break, I make it a point to leave at a failing test, so that when I come back, I can jump right back into writing the code to get it to pass. I don't have to spend 15 - 20 minutes reading through the code to figure out where I left off. My asserts usually tell me exactly what I need to do.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Imposing Modularity / Reusability&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The very first rule of reusable code is that you have to be able to instantiate an instance of the class before you can use it. And guess what ? With unit tests, you almost always have to instantiate an instance of the class under test. Therefore, writing a unit test is always a first great step in making code reusable. And the minute you start writing unit tests, most likely, you will start running into the common pain points of not having injectable dependencies (Unless of course, you are one of the converts, in which case, good for you!).&lt;br /&gt;&lt;br /&gt;Which brings me to the next point. Once you start having to jump through fiery hoops to set up your class just right to test it, you will start to realize when a class is getting bloated, or when a certain component belongs in its own class. For instance, why test the House when what you really want to test is the Kitchen it contains. So if the Kitchen class was initially part of the House, when you start writing unit tests, it becomes obvious enough that it belongs separately. Before long, you have modular classes which are small and self contained and can be tested independently without effort. And it definitely helps keep the code base cleaner and more comprehensible.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Refactoring Safety Net&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Any project, no matter what you do, usually ends up at a juncture where the requirements change on you. And you are left with the option of refactoring your codebase to add / change it, or rewrite from scratch. One, never rewrite from scratch, always refactor. Its always faster when you refactor, no matter what you may think. Two, what do you do when you have to refactor and you don't have unit tests ? How do you know you haven't horribly broken something in that refactor ? Granted, IDE's such as Eclipse and IntelliJ have made refactoring much more convenient, but adding new functionality or editing existing features is never simple.&lt;br /&gt;&lt;br /&gt;More often than not, we end up changing some undocumented way the existing code behaved, and blow up 10 different things (it takes skill to blow up more, believe me, I have tried). And its often something as simple as changing the way a variable is set or unset. In those cases, having unittests (remember those things you were supposed to have written?) to confirm that your refactoring broke nothing is godsend. I can't tell you the amount of times I have had to refactor a legacy code base without this safety net. The only way to ensure I did it correct was to write these large integration tests (because again, no unit tests usually tends to increase the coupling and reduce modularity, even in the most well designed code bases) which verified things at a higher level and pray fervently that I broke nothing. Then I would spend a few minutes bringing up the app everytime, and clicking on random things to make sure nothing blew up. A complete waste of my time when I could have known the same thing by just running my unit tests.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Documentation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Finally, one of my favorite advantages to doing TDD or writing unit tests as I code. I have a short memory for code I have written. I could look back at the code I wrote two days ago, and have no clue what I was thinking. In those cases, all I have to do is go look at the test for a particular method, and that almost always will tell me what that method takes in as parameters, and what all it should be doing. A well constructed set of tests tell you about valid and invalid inputs, state that it should modify and output that it may return.&lt;br /&gt;&lt;br /&gt;Now this is useful for people like me with short memory spans. But it is also useful, say, when you have a new person joining the team. We had this cushion the last time someone joined our team for a short period of time, and when we asked him to add a particular check to a method, we just pointed him to the tests for that method, which basically told him what the method does. He was able to understand the requirements, and go ahead and add the check with minimal handholding. And the tests give a safety net so he doesn't break anything else while he was at it.&lt;br /&gt;&lt;br /&gt;Also useful is the fact that later, when someone comes marching through your door, demanding you fix this bug, you can always make sure whether it was a a bug (in which case, you are obviously missing a test case) or if it was a feature that they have now changed the requirements on (in which case you already have a test which proves it was your intent to do it, and thus not a bug).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-8596966213546342619?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=0YNnjWF6PhM:kn4Jks8b608:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=0YNnjWF6PhM:kn4Jks8b608:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=0YNnjWF6PhM:kn4Jks8b608:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/0YNnjWF6PhM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/8596966213546342619/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=8596966213546342619" title="13 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/8596966213546342619?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/8596966213546342619?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/0YNnjWF6PhM/by-shyam-seshadri-nowadays-when-i-talk.html" title="The Advantages of Unit Testing Early" /><author><name>Misko</name><uri>http://www.blogger.com/profile/00208649366420512257</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="01109711695719643823" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">13</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/by-shyam-seshadri-nowadays-when-i-talk.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYARX49fyp7ImA9WxJaGU8.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-141461068372288356</id><published>2009-07-14T12:29:00.000-07:00</published><updated>2009-08-10T09:35:44.067-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-10T09:35:44.067-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Misko" /><title>Software Testing Categorization</title><content type="html">by &lt;a href="http://misko.hevery.com/about/"&gt;Miško&lt;/a&gt;&lt;a href="http://misko.hevery.com/about/"&gt; &lt;/a&gt;&lt;a href="http://misko.hevery.com/about/"&gt;Hevery&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You hear people talking about small/medium/large/unit/integration/functional/scenario tests but do most of us really know what is meant by that? Here is how I think about tests.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Unit/Small&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Lets start with unit test. The best definition I can find is that it is a test which runs super-fast (under 1 ms) and when it fails you don't need debugger to figure out what is wrong. Now this has some &lt;span style="font-size:+0;"&gt;&lt;span id="SPELLING_ERROR_2"&gt;implications. Under 1 ms means that your test cannot do any I/O. The reason this is important is that you want to run ALL (thousands) of your unit-tests every time you modify anything, &lt;a href="http://misko.hevery.com/2009/05/07/configure-your-ide-to-run-your-tests-automatically/"&gt;preferably on each save&lt;/a&gt;. My patience is two seconds max. In two seconds I want to make sure that all of my unit tests ran and nothing broke. This is a great world to be in, since if tests go red you just hit Ctrl-Z few times to undo what you have done and try again. The immediate feedback is addictive. Not needing a debugger implies that the test is localized (hence the word unit, as in single class).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The purpose of the unit-test is to check the conditional logic in your code, your 'ifs' and 'loops'. This is where the majority of your bugs come from (see &lt;a href="http://misko.hevery.com/2008/11/17/unified-theory-of-bugs/"&gt;theory of bugs&lt;/a&gt;). Which is why if you do no other testing, unit tests are the best bang for your buck! Unit tests, also make sure that you have testable code. If you have unit-testable code than all other testing levels will be testable as well.&lt;br /&gt;&lt;br /&gt;A &lt;a href="http://code.google.com/p/testability-explorer/source/browse/trunk/core/src/test/java/com/google/test/metric/collection/KeyedMultiStackTest.java"&gt;KeyedMultiStackTest.java&lt;/a&gt; is what I would consider great unit test example from &lt;a href="http://code.google.com/p/testability-explorer"&gt;Testability Explorer&lt;/a&gt;. Notice how each test tells a story. It is not testMethodA, testMethodB, etc, rather each test is a scenario. Notice how at the beginning the test are normal operations you would expect but as you get to the bottom of the file the test become little stranger. It is because those are weird corner cases which I have discovered later. Now the funny thing about &lt;a href="http://code.google.com/p/testability-explorer/source/browse/trunk/core/src/main/java/com/google/test/metric/collection/KeyedMultiStack.java"&gt;KeyedMultiStack.java&lt;/a&gt; is that I had to rewrite this class three times. Since I could not get it to work under all of the test cases. One of the test was always failing, until I realized that my algorithm was &lt;span style="font-size:+0;"&gt;&lt;span id="SPELLING_ERROR_8"&gt;fundamentally flawed. By this time I had most of the project working and this is a key class for byte-code analysis process. How would you feel about ripping out something so fundamental out of your system and rewriting it from scratch? It took me two days to rewrite it until all of my test passed again. After the rewrite the overall application still worked. This is where you have an AHa! moment, when you realize just how amazing unit-tests are.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Does each class need a unit test? A qualified no. Many classes get tested indirectly when testing something else. Usually simple value objects do not have tests of their own. But don't confuse not having tests and not having test coverage. All classes/methods should have test coverage. If you TDD, than this is automatic.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Medium/Functional&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;So you proved that each class works &lt;span style="font-size:+0;"&gt;&lt;span id="SPELLING_ERROR_10"&gt;individually, but how do you know that they work together? For this we need to wire related classes together just as they would be in production and exercise some basic execution paths through it. The question here we are trying to answer is not if the 'ifs' and 'loops' work, (we have already answered that,) but whether the interfaces between classes abide by their contracts. Great example of functional test is &lt;a href="http://code.google.com/p/testability-explorer/source/browse/trunk/core/src/test/java/com/google/test/metric/MetricComputerTest.java"&gt;MetricComputerTest.java&lt;/a&gt;. Notice how the input of each test is an inner class in the test file and the output is ClassCost.java. To get the output &lt;span style="font-size:+0;"&gt;several&lt;/span&gt; classes have to collaborate together to: parse byte-codes, analyze code paths, and compute costs until the final cost numbers are asserted.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Many of the classes are tested twice. Once directly throughout unit-test as described above, and once indirectly through the functional-tests. If you would remove the unit tests I would still have high confidence that the functional tests would catch most changes which would break things, but I would have no idea where to go to look for a fix, since the mistake can be in any class involved in the execution path. The no debugger needed rule is broken here. When a functional test fails, (and there are no unit tests failing) I am forced to take out my debugger. When I find the problem, I add a unit test &lt;span style="font-size:+0;"&gt;&lt;span id="SPELLING_ERROR_13"&gt;retroactively to my unit test to 1) prove to myself that I understand the bug and 2) prevent this bug from happening again. The retroactive unit test is the reason why the unit tests at the end of &lt;a href="http://code.google.com/p/testability-explorer/source/browse/trunk/core/src/test/java/com/google/test/metric/collection/KeyedMultiStackTest.java"&gt;KeyedMultiStackTest.java&lt;/a&gt; file are "strange" for a lack of a better world. They are things which I did not think of when i wrote the unit-test, but discovered when I wrote functional tests, and through lot of hours behind debugger track down to &lt;a href="http://code.google.com/p/testability-explorer/source/browse/trunk/core/src/main/java/com/google/test/metric/collection/KeyedMultiStack.java"&gt;KeyedMultiStack.java&lt;/a&gt; class as the culprit.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now computing metrics is just a small part of what testability explorer does, (it also does reports, and suggestions) but those are not tested in this functional test (there are other functional tests for that). You can think of functional-tests as a set of related classes which form a cohesive functional unit for the overall application. Here are some of the functional areas in testability explorer: java byte-code parsing, java source parsing, c++ parsing, cost analysis, 3 different kinds of reports, and suggestion engine. All of these have unique set of related classes which work together and need to be tested together, but for the most part are independent.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Large/End-to-End/Scenario&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;We have proved that: 'ifs' and 'loops' work; and that the contracts are compatible, what else can we test? There is still one class of mistake we can make. You can wire the whole thing wrong. For example, passing in null instead of report, not configuring the location of the jar file for parsing, and so on. These are not logical bugs, but wiring bugs. Luckily, wiring bugs have this nice property that they fail consistently and usually spectacularly with an exception. Here is an example of end-to-end test: &lt;a href="http://code.google.com/p/testability-explorer/source/browse/trunk/core/src/test/java/com/google/test/metric/TestabilityRunnerTest.java"&gt;TestabilityRunnerTest.java&lt;/a&gt;. Notice how these tests exercises the whole application, and do not assert much. What is there to assert? We have already proven that everything works, we just want to make sure that it is wired properly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-141461068372288356?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=g8HRQbdko3c:PKkgQhPUG7M:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=g8HRQbdko3c:PKkgQhPUG7M:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=g8HRQbdko3c:PKkgQhPUG7M:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/g8HRQbdko3c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/141461068372288356/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=141461068372288356" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/141461068372288356?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/141461068372288356?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/g8HRQbdko3c/software-testing-categorization.html" title="Software Testing Categorization" /><author><name>Misko</name><uri>http://www.blogger.com/profile/00208649366420512257</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="01109711695719643823" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">8</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/software-testing-categorization.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUDQXY8eSp7ImA9WxJbFEo.&quot;"><id>tag:blogger.com,1999:blog-15045980.post-241480254259492111</id><published>2009-07-13T13:37:00.000-07:00</published><updated>2009-07-24T16:31:10.871-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-24T16:31:10.871-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Whittaker" /><title>The Plague of Amnesia</title><content type="html">&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;By James A. Whittaker&lt;/span&gt;&lt;/span&gt; &lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Memory is supposed to be the first thing to go as one ages but in the grand scheme of engineering, software development can hardly be called elderly. Indeed, we’re downright young compared to civil, mechanical, electrical and other engineering disciplines. We cannot use age as an excuse for our amnesia.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:Verdana;font-size:13;"&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;There are two types of amnesia that plague software testers. We have team amnesia that causes us to forget our prior projects, our prior bugs, tests, failures and so forth. It’s time we developed a collective memory that will help us to stop repeating our mistakes. Every project is not a fresh start, it's only a new target for what is now a more experienced team. The star ship &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Enterprise&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt; keeps a ship's log. A diary that documents its crews’ adventures and that can be consulted for details that might help them out of some current jam. I'm not advocating a diary for test teams, but I do want a mechanism for knowledge retention. The point is that as a team we build on our collective knowledge and success. The longer the &lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Enterprise &lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;crews' memory, the better their execution. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Quick, tell me about the last major failure of your teams’ product? Does your team have a collective memory of common bugs? Do you share good tests? If one person writes a test that verifies some functionality does everyone else know this so they can spend their time testing elsewhere? Do problems that break automation get documented so the painstaking analysis to fix them doesn’t have to be repeated? Does the team know what each other is doing so that their testing overlaps as little as possible? Is this accomplished organically with dashboards and ongoing communication or are the only sync points work-stopping, time-wasting meetings? Answer honestly. The first step to recovery is to admit you have a problem.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;The second type of memory problem is industry amnesia. When I mentioned Boris Beizer and the pesticide paradox in my last post, how many of you had to look it up? And those who did know about it, how's your AJAX skills? Be honest...there are folks with both a historical perspective and modern skills but they are far too rare. Our knowledge, it seems, isn’t collective, it’s situational. Those who remember Beizer's insights worked in a world where AJAX didn’t exist, those who webspeak without trouble missed a lot of foundational thinking and wisdom. Remembering only what is in front of us is not really memory.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span style="font-size:+0;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Industry amnesia is a real problem. Think about it this way: That testing problem in front of you right now (insert a problem that you are working on here) has been solved before. Are you testing an operating system? Someone has, many of them. Web app? Yep, that’s been done. AJAX? Client-server? Cloud service? Yes, yes and yes. Chances are that what you are currently doing has been done before. There are some new testing problems but chances are the one in front of you now isn’t one of them. Too bad the collective memory of the industry is so bad or it would be easy to reach out for help. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Let me end this column by pointing my finger inward: How will we (Google) test the newly announced Chrome operating system? How much collective knowledge have we developed from Chrome and Android? How much of what we learned testing Android will help? How much of it will be reusable? How easily will the Chrome and Andriod test teams adapt to this new challenge? Certainly many test problems are ones we've faced before.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN: 0px"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Will we remember?&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15045980-241480254259492111?l=googletesting.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=IGdVKyeQLEI:DAEhHTZxMZQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/RLXA?a=IGdVKyeQLEI:DAEhHTZxMZQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/RLXA?i=IGdVKyeQLEI:DAEhHTZxMZQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/RLXA/~4/IGdVKyeQLEI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://googletesting.blogspot.com/feeds/241480254259492111/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=15045980&amp;postID=241480254259492111" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/241480254259492111?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/15045980/posts/default/241480254259492111?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/RLXA/~3/IGdVKyeQLEI/plague-of-amnesia.html" title="The Plague of Amnesia" /><author><name>James Whittaker</name><uri>http://www.blogger.com/profile/16554467015823464445</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04466347442459152025" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://googletesting.blogspot.com/2009/07/plague-of-amnesia.html</feedburner:origLink></entry></feed>
