Tuesday, December 22, 2009

Business-Facing Tester Helps Developer; Film at 11

These days find me sitting squarely on the customer side of the development cycle. I haven't let that limit my approach, though.

I still use automation, APIs, logging, checklists - basically all the tools I used when I was on the other side. Perhaps this delineation of 'sides' is unnecessary when both are striving to work together. This is just a unique configuration, one where a technical "expert" is collocated with the customers instead of SMEs being collocated with the development team.

One day, our software vendor set up a WebEx to walkthrough the installation of their software. I shared my desktop and began to follow the developer's instructions. The first one hour session ended when we encountered an anti-virus policy that was not accounted for in the install package. Simply put, our company disallows "autorun.inf" files to be created on the file system, but the software has a dependency whose installer unpacks just such a file. This looked like it would be a job for our internal IT department, who would ultimately be responsible for deploying this software anyway. One session down, one to go.

In our second session, we were able to continue the installation by temporarily bypassing the blocking process. Since this is what the IT department would have to do, I felt it was not masking any potential issues. The dependency installation was taking more time than the developer expected. We tracked it down to another internal IT process that was pushed out recently. Search indexing was working hard to account for the deluge of new files being created on the file system. Once we disabled that process for the sake of brevity, we continued on to the last issue.

The package was finally installed on my system and all that remained was to update it. It was at this time that my co-worker Shane asked what would happen if we attempted to update while a session was active. We explored this scenario with the developer and were able to confirm that the update did not occur - as we had expected. However, the developer was perplexed as to why the active session window did not close during the update attempt.

The developer mentioned that the recent buyout of their company required them to update all their company branding, including their window titles. It was possible that the routine responsible for closing the session window was looking for something with Company X in the title, but was actually Company Y. The developer began to search through their code to determine if this was the case.

I thought I could prove his point rather easily during our WebEx. I fired up AutoIt and compiled the following code:

WinSetTitle( "Company Y", "Company X" )

I ran this on the remote box where we had an open session, observed that the window title changed, then re-ran the update utility. Sure enough, the window closed and we were able to move on. The developer gave us a great compliment, exclaiming that what we had just done was, "a pretty cool hack". We were able to confirm his suspicions in real time, and thus confirmed where his fixes needed to occur.

I later looked back on that moment with much fondness. It reminded me that there are still some technical activities we can engage in that provide value for both sides of the effort. After all, we all just want to deliver good stuff. Who cares if some customers understand those lower-level details, provided the testing represents the customer's interest?

Friday, August 7, 2009

Facebook's Hidden Bug

Facebook allows me to gather friends ad infinitum. Currently, I have 279.

As I add friends, I offer up chunks of Facebook real estate for their posts, thoughts, comments, etc. But keeping up with 279 friends causes me to spend a lot of time reading these little nuggets of personality.

So I limit my interaction, as I've noticed that I tend to get sucked in. Some of my friends notice the same tendency. I know this because I read their comments. Just not all of them.

The bottom line is this: I am a user of Facebook whose sole purpose is to visit the site briefly to find out what people of varying importance to me are saying.

That is the User. The problem here is that everyone has something to say, but there is only one method of consuming that information: reading. Reading takes time and reading takes space. While having to read is not the problem - I'm not that lazy - the volume of items to read has become insufferable. As more and more people post their little gems with great rapidity (e.g., Twitter), my home page becomes a teenage-ADD-brain dump of middle-age technical professionals, musicians, and old high school chums; most of whom are being rudely run off the page by Twitter-bullies.

I think Facebook should provide an option where users are provided posts grouped within a certain time frame. Only the latest entry by a friend is shown with an option to see more. Think of something like a tree view where the root is "Posts within the last 8 hours." The child nodes would be unique friend avatars with the most recent item and a count of how many posts they have made within that time frame. Collapsed under that would be children nodes with the actual posts, comments being children of THAT node. Something like this:

"Posts within the last 8 hours"
--->Bill Clinton "Taking a nap!" (3)
------>"Taking a nap!"
------>"Eating a ham sandwich."
--------->Al Gore
------------>"Again?"
--------->Hillary Clinton
------------>"What's new with that?"
------>"Rescuing reporters."
--->George W. Bush "Poking Cattle" (2)
------>"Poking Cattle"
------>"Tipping Cattle"
etc...

In addition, I should be able to specify classes of friends. Friends from high school, friends from work, good friends, acquaintances, friends I have accepted because I didn't want to be rude but really can't remember them at all.

I should be able to rank these classes such that the higher the rank, the higher up on the page. Yes, older posts may appear before newer ones, but that's okay with me because I know that it is time boxed to my requested window.

Currently, Facebook just blithely assumes I want to read it all at once and treats the posts with a flat hierarchy, which is really nothing more than LIFO. I would love to have an option like this.

Wednesday, August 5, 2009

Letters to a future me about...automation

The point of the product is not cool automation frameworks. Automation is a byproduct of the testing effort. The end-user may benefit from automation much the same way that my cereal benefits from automatic milking. Which is to say it may be helpful, but is putting the cart before...um...a quadrupedal animal of some variety.

Saturday, August 1, 2009

No excuses...

This post was originally intended to catalog a few tools to aide in viewing the internals of a system with an added chastisement to those who complain about not having enough information. In fact, I never got to CLR profiler or the array of performance counters made available in .NET. Instead, it turned into a brain dump of the ways in which I ask questions and seek out their answers. The journey took me somewhere I didn't expect. You'll see what I mean...

I've been reading a lot of posts lately talking about how testers cannot test lower level functionality, structures, etc. because they don't have access to the code.

If you're working with a .NET application, my response is "Pish-posh".

Download Reflector. Nefariously point it in the direction of those impenetrable .NET assemblies. Behold the fruit of your efforts:



This is an actual disassembly of a program I was writing using the WebAii automation framework. Though my example is incomplete, you can still see what's going on under the hood.

"But Zach", you protest, "I can't read all that code-y stuff! What kind of bugs can I find doing that?"

Well, using this tool, I can think of one possible bug that doesn't require intimate knowledge of C#, .NET, CLR, or IL disassembly techniques. How about the fact that you can go out and download a tool that can expose your stakeholder's intellectual property after a few clicks of a button? If the company is concerned about protecting its secrets, they should be concerned about the relative ease with which one could reverse-engineer their system.

There are also plugins available that allow you to view differences between two versions of the same assembly. If a bug-fix is delivered, you may be able to ascertain where that change was made. What do you find there?

"But our application is web-based! I can't just look at assemblies on my local machine!" More pish-posh! Your browser has a "view source" function. Use it to peer in behind the curtain. Want some more power than that? Download FireBug. More power than that? Download Wireshark.

But tools are not the answer to the question. In fact, they are distracting if you don't understand the question you're asking. Put another way, I'm not persuaded by the argument, "I don't know what all this code stuff is all about. I just mash buttons." It is time to take a lesson from the economy and learn something new. The internet has now made this a lot easier than it was when I was trying to learn Raster Interrupts on my Commodore 64.

Your Mission:
Make a Windows application containing one button. When you click this button, a dialog box appears that reads, "Hello, World!". I won't tell you HOW to do this, that is YOUR job. But a few points are hidden in this exercise.

Learn Developer Empathy.
Many communities like to push the idea that testing and development should be at odds. I think this is a dangerous idea. To me, developer empathy is NOT the same thing as BUG empathy because developers are not the problem. Sure, they may have coded it in wrong, but you're not going to be able to catch all the bugs in the system ANYWAY. So none of us are doing are jobs perfectly, cool?

As the saying goes, you catch more flies (which are bugs) with Honey than with Vinegar. The 'honey' here is your willingness to learn about life on their side of the table. I guarantee that if you approach a group of developers with the problems you encounter while doing this exercise, you'll receive no end of advice. You can also use your experience to frame questions about the system under test: "I notice this alert comes up in the browser when I enter in invalid information. How is that different from my little application?" These are the kinds of questions I asked developers. Just remember to ask when it is convenient for them. I always walk away with more knowledge and more questions. Which leads me to...

Mind Map your journey.
Create a mind map. In the middle, enter in the task of creating that Windows application. Before you start trying to figure out coding, try to articulate your confusion and frustration. Create nodes that encapsulate your questions: "What is a Windows application?", "Why do I hear so much about, 'Hello World'?" As you find answers, add them as nodes of the question itself. But you're not done because that answer should have created several new questions for you. Add them and repeat. Download this mind mapping program if you must.

As testers, ours is not only a journey of questioning things, but in finding out the answers to those questions. If someone plops down a huge system for you to test, how are you going to tackle it? The question is always antecedent to the approach. So if you don't know, find out and track the way(s) in which you found out. Like watering holes in the desert, there will be places you perennially come back to for answers. Where are they? You won't find them unless you go looking for them.

Brush up on your Google-Fu
Learn to ask questions in different ways, including how to ask them in a Google query. Remove extraneous words. Group the related terms together to eliminate false positive results. Reduce the results to a certain domain, a certain file type, within a certain period of time. This ability can greatly improve the signal-to-noise ratio.

Don't brush up on your Google-Fu
Send that query out without all the constraints mentioned above. Misspell a word. Ungroup terms. Expand the time frame. Select a result from page 10, not page 1. Select the LAST result. You will be surprised by how much you uncover in the journey. Bob Ross called them happy little accidents. I cannot tell you how many discoveries I made on the way to answer a completely DIFFERENT question. In fact, most of the downloads on this page are result of another train of thought.

Now, you've downloaded Microsoft C# 2008 Express and written your program. Go ahead and set up a new, small project for yourself and see it through to completion. Use TDD,BDD, NUnit or MbUnit. (What do all those terms mean? You don't seriously expect me to answer it for you, do you?) You will have gained more knowledge of how to view the internals of the system. These internals are not only the constituent bits that comprise the application, but the human processes around their creation. Knowing these processes can guide your questions later on. No, you're not developer level but you are CONVERSANT. Being conversant means being able to have a conversation, and conversations lead to questions which lead to discoveries which leads to...

Have fun playing with the tools. Just don't start/stop there.

Saturday, June 6, 2009

Testing Programming Interview Questions...

I was cruising around the internets today and stumbled upon one of those sites that posts programming interview questions. You know the ones: archetypal algorithmic queries requesting the shortest way to move manhole covers from Mt. Fiji while weighing eight balls of 3 different colors (choose only two). Those kind of rudimentary questions.

I suppose the allure is that if one were able to successfully answer all the questions, they'd be a shoe in for the illustrious programming gig. Or perhaps to validate themselves; either they haven't been discovered (yet!) or are simply too brilliant to be burdened with the trivial job search (gimme a raise!). Only narcissists - insecure in their feeble abilities - answer these out-dated questions to puff up their sense of self-importance with a strapped-down, vein-tapped quick-fix of techno-trivia devoid of context.

So by the time I got to question number 6, I was feeling pretty good about myself. It read as follows:

You’ve got someone working for you for seven days and a gold bar to pay them. The gold bar is segmented into seven connected pieces. You must give them a piece of gold at the end of every day. If you are only allowed to make two breaks in the gold bar, how do you pay your worker?

***SPOILER ALERT***
I pondered for a bit, acquiesced to my plebeian logic, and moved ahead to the answer. However, when I read the answer I realized that it required that the worker be willing to trade in yesterday's pay for today's pay. Ummm???!!!!(Note I cannot spell the word I want to type here, so I'll simply link to a wav sound of it in use). I would never have arrived at that conclusion. There appeared to be a great many assumptions about what actions could/could not be taken.

And that is why I'm writing this. I'm not so much fascinated by the answers as I am the meta-questions. What questions would you ask before you would feel satisfied?

Some of mine include:

-Can anyone else cut the gold instead of/in addition to me?
--If Yes: Are they subject to the same restriction as me?
---Do we both get 2 cuts each?
---Must I pay extra for their services?
---Can we renegotiate the terms if the worker is the cutter?
-With what are we cutting the gold?
--What if the cut cannot be made in a 24-hour period?

What questions would you ask?

Tuesday, April 28, 2009

Stopgapplication is officially a pseudoword!

( Thank you, Victoria )
------------------------------------------------

Zach Fisher,

thank you for submitting stopgapplication.
you can view it by going to

http://www.pseudodictionary.com/stopgapplication.
replace any spaces in the url with underscores.

you can link to it by clicking on "link to word"
and you can send it to friends by clicking the
"send to friend" button under your word.


regards,

hd - editor
paul - concept
garret - programming

Friday, April 24, 2009

Thoughts On: Stealing

Taken from a response I posted here.

======================================================

Lots of talk on this thread about the role of RIAA/labels/music in the context of file sharing. For a good expose on how the music industry found itself in the horns of this dilemma, check out "The Way The Music Died". It is well done, fair, and thought provoking.

I've lived in Nashville, TN since 1999 and for most of my time here, I had no aspirations for being an artist but was more involved in the session scene. Nash-vegas was once home to a thriving music industry comprised of a tenuous relationship between artists, labels, and songwriters. I joined ASCAP ( American Society of Composers, Authors and Publishers ) in the early 2000's and have realized mechanical royalties on songs I've written and co-written. I've played on a slew of custom albums ( read: low-budget ) where I played drums, sang BGVs, arranged, wrote string arrangements, programming, etc. I also received payouts from the Musician's Union for playing drums on "Shadowlands" on this album. And prior to all this, I played percussion for a series on The Learning Channel. Why all this "bragging"?

Because I've only earned about $100 in royalties for 2 songs that were recorded on a limited release ( @1000 copies pressed ). And the payout from the Musician's Union for playing 1 track on a nationally released, major-label album? About $45/year in mail-money. Now that I'm no longer pursuing music in a professional capacity, I can comfortably say: There is NO MORE MONEY in making music. Not in the established model. Some of this is the fault of greedy label execs. But a lion's share of the blame also belongs in the laps of people who view "songs" as algorithmic sequences of 1's and 0's - coldly detached from the hard work of people that are never seen and almost never recognized; that these products are somehow the inherent right of the digital denizens.

In this volatile economic environment, I've seen my friends lives reduced to panic-inducing shambles as a once dependable - albeit flawed - system of monetary compensation dried up seemingly overnight. The closest thing to retirement for these individuals is the steady stream of royalties on a large body of work. It is serendipitous income and a far cry from what I read between the lines of most protestations of the "right-to-file-sharing" adherents - that somehow the music industry is getting its just desserts for a century of decadent living. These friends of mine are living lives far from opulence, even when the DOW was well neigh 12,000. I think my engineer friend put it best, "its like complete strangers coming up to my supper table and stealing food off my kid's plate."

Some may argue that the internet levels the playing field, making it easier for unknown artists to be discovered. That maybe true, though I'm skeptical that any singular source of discovery will not necessarily homogenize. Fact is, it takes many talented people to create good music: songwriters to write the songs, engineers to capture quality sounds, producers to guide the artistic vision, mixers to blend the constituent elements into a complete musical thought, mastering engineers to combine disparate vignettes into a cohesive whole. These people are talented and deserve to work. I've heard some good indie music online...but the quality sucks. My bias is observed. Consumer electronics has done much to put power in the hands of the many, but when you see a professional at work, these devices seems like crude toys. It is an inspiring thing to "watch" the creation of an album.

Some may also argue that these poor folks should suck it up and get real jobs like everyone else. News flash: you assume that they don't already. If we adhere to the thinking that art is not worth compensation, I would ask if we would ever stop paying professional athletes just because we can toss a ball around every once in a while? What if the teeth of the digital age set its edges on your career? In many cases, it already has. We should not wait for higher courts to legislate what ultimately is a moral decision: taking a product for free when it is meant to be purchased, regardless of distribution methodology, is stealing. Period.

I understand that some will disagree with me. But before you do, I invite you to come to Nashville, TN. I'll give you the southern hospitality tour of the city and the surrounding areas. I'll show you the historic points, serve you some sweet tea, and top it all off with a trip to some of the songwriters and engineers most affected by greed in its many forms. I invite you to explain your rationale to them.

Zach...

Thoughts On: Integrity

Matthew Heusser has been writing a lot about integrity lately. I think these are so valuable. I responded to one and decided I wanted to place it here as well.

=======================================================

Matthew,

My father is a soon-to-be-retired pastor. One particular church he was serving had an individual who routinely usurped his leading and authority. It eventually came to a point where my father set forth the necessary actions to have that person removed from their position. Prayer. Council. Meetings. Votes. Those kind of actions.

Needless to say, this created quite a schism in the otherwise picturesque congregation. I witnessed many a friendly face turn sour; anger and condemnation poured almost as readily as the backbiting and slander against him. My father had done irreparable harm to "their church" I was not a little concerned that his decision may have been wrong; look at all the havoc it had wreaked in this once tranquil scene!

Sometime later, we sat at breakfast where he shared with me these words that I will forever cherish, "Son, if it comes down to pleasing God or pleasing man, go with God and take your hits." The church never regained its composure and my father recognized that he himself had to leave if healing were to take place. This is when I learned that integrity costs. Dearly.

Perhaps I'm biased, but I truly believe that my father's actions in those days were used - whether he knew it or not - to expose a truly nefarious 'bug' that existed behind the peaceful veneer of some carnal Christians. If the quality of Christian service were of the utmost importance to these slanderous actors, would their response to this perceived injustice have been so decidedly Un-Christlike? Their reactions proved to me that their "church" was not the Church of God's design, but a social club meant to satiate a more carnal desire. This kind of church was NOT in the specs.

So this has been my observation when it comes to the truth: we can hide from it, but it will eventually come out. The sooner it comes out, the less layers of false expectation have been heaped upon it - reducing the damage and expediting the healing/fixing.

Just think of how the world economy would be today if a few more "lights" spoke out in the financial epicenters 10 years ago.

Thank you, Matt, for your posts on Integrity. May they be more than read, may they be understood.

Zach...

Thursday, April 23, 2009

New Word: Stopgapplication

Stopgapplication

Main Entry:stop·gap·pli·ca·tion
Pronunciation:\ˈstäp-ga-plə-ˈkā-shən\

A cheap, throw-away program that is meant to aid in the transition to a more complete and/or robust program, but due to neglect, has become a permanent solution that must be supported at great expense by the enterprise.

Saturday, April 18, 2009

Community 2.0 beta

What follows was originally going to be a response to this post, but it went beyond polite comment length. A snippet of Matthew Heusser's post and my thought afterwards:

-------
"What I'm wondering is - can we use these new social media tools - facebook, (cough) myspace, twitter, instant messanger and so on - to pull together in the way that families did in the 1930's? And what would that look like, exactly?"
-------

IMHO, modernity is aiding a kind of isolationist brand of communication that placates to our 'right' to convenience.

The family nuclear may be embroiled in a kind of diaspora, but I think the idea of community is still alive and well. What I am skeptical of, however, is the quality of community these tools create around us. If all I listen to is what Pandora thinks I like, I end up with a pretty boring selection of songs.

I also am concerned about the means by which we engage in community. To me, technology is springing up to solve a problem we created for ourselves, which really is no solution at all. The irony of me saying this while commenting on a blog for someone I've never met - is not lost on me.

Community costs us. It costs time. It costs our dreams. It costs our entitlement. It suffers when we soak in myopicism. We can expedite the salutations and introductions, but we will not create something that can profoundly affect us (and others) as it should.

Tuesday, April 7, 2009

The Gospel of Record and Playback

Microsoft unveiled its UI Automation capabilities for VSTS 2010 at Mix09. If you are interested, watch this video. Watching it was painful for me.

Some Highly Opinionated Observations
I felt truly bad for Brian Keller (Brian, if you're ever reading this, you did a great job). He was stuck practically sweeping up the ticker-tape from previous presentations. Even he found it ironic that his presentation was stuck at the end of the conference...like so many testing efforts. And like so many testers, he pleaded for feedback from a roomful of developers to help determine if there was significant interest in future talks about testing. Oh, and the technology wasn't helping either.

In 17 minutes, I saw a perfect example of the inherent difficulty with record-and-playback, even though it was capturing a lot of deep information. A functional test was recorded and the first failure was detected upon playback, only it was triggered by errors made while editing the generated code.

Recordin' Payback
Now, don't get me wrong. I am VERY impressed by what Microsoft is putting into the hands of the team - but at what premium? This is where I would like to insert my favorite argument, "Why do I need to pay $X,XXX.YY/seat for a tool that gives me the honor of pushing the button our team was tasked with creating?" How expensive is it to do any/all of the following during development:

- Define unique control IDs
- Define Active Accessibility parameters (y'know...those weird parameter fields you NEVER fill out when adding controls to GUIs in Visual Studio)
- Override control's WndProc methods with custom logic to persist user interactions to log files that can later be used for playback
- Keep logic OUT of the forms so that your application can run headlessly
- Implement Michael Hunter's Automation Stack
- Charge a junior test engineer with the task of learning how Win32 Window APIs, MsAA, Java Active Accessibility Bridge, .NET UiAutomation namespaces, etc. really works.
- Make testability hooks critical features in the application
- Make log files critical features in the application
- Report Source Code changes to the entire team

Does it take longer to implement these things? Maybe. It will definitely take longer to impress any management that merely hovers over the process with all the disinterest one could expect from a super model on a blind date with <insert NASA scientist here>. But I can say this much: if the department I'm in is considering necessary economic cutbacks, I'm glad I won't be competing with maintenance fees for COTS tool X.

My opinion is that these are more valuable for the organization because they invest in the individual(s) and their knowledge, not dumping money into 3rd party solutions to solve what are perceived as technological issues. To me, this is the same as if my parents, after being diagnosed with Diabetes, determined that the problem wasn't their diet but was actually their cooking. And then proceeded to "solve" this by eating the same foods at restaurants because...heck...they know how to cook. Sure, it costs more, but look how much healthier we are!

Hmmm. I guess it depends on the food/restaurant.

Benediction
Finally, on a more personal note: I long for the day when the ridiculous moniker of "evangelist" is purged from the tech nomenclature. I understand that it can bear secular meaning, but its use is imbued with religious connotation. An evangelist is one whose very existence bespeaks of a salvific message. As a tester and a man of faith, I find the idea that a technological solution could save us is...well...laughable; and the very reason I have a job.

Wednesday, April 1, 2009

Testing Tool: FileHamster

FileHamster is awesome. If it hasn't already arrived at your city - pillaging it with paws of gargantuan awesome-ness (paw-someness?) - then consider yourself both deprived AND unfortunate. Download it from here. I've been using this tool for about 1.5 years now and always come back to it.



In a nutshell, Filehamster is a glorified directory monitor that acts as a kind of localized source control. The developers originally intended it to allow creative types to work without the fear of being unable to undo their Picasso-esque changes. Anyone who has made modifications to a document, then closed the application only to realize that was in fact NOT the modification you wanted, can attest to this problem. Here's how it works from a 3048m view:

- Create a new directory/file watch
- Operate your application, saving changes will-nilly
- Observe that FileHamster captures each successive save

"No bug whoop!", you exclaim. "The .Net framework has a FileSystemWatcher class that lets me do the same thing!" That is true. Who hasn't written this kind of program before using that very class. However the ease of use, visibility of changes in real-time, and the diff plugin are benefits that keep this high on my desert island list of exploratory testing tools.

An example would be good here:
If I have a fat client application to test, one of the first things I do is pop open FileMon to observe its file system traffic for log files, artifacts, etc. Once I determine the directories where these files are written to, I create a new recursive directory watch in FileHamster. Even better, I can filter the types of files that it captures, thus reducing the potential for data overload. I then proceed to explore the app some more. Meanwhile, FileHamster is dutifully running in the background capturing all the file system changes into discrete time-stamped files and alerting me when it does so.

After a session, I can come back and observe the captured files. FileHamster honors any file associations; it will open the file in its associated application, e.g. TXT in notepad, MDB in Access, etc. This ability to observe a session's change history is valuable in-and-of itself. However, the diff plugin allows me to specify a comparison application as well. I can select two of the captured files and launch the comparison application via a context menu. Now I can see what changed in the document while I was testing away.

Experience Report...nnnNNNOW!:
I've used this approach while testing some financial applications that persisted actuarial debug values in a kind of CSV file. I would run a plain vanilla case, then run an alternate solve that should have given me the exact same answer. Both tests produced the CSV file. When I encountered a problem, I simply compared the known good (did I mention you can assign comments to the captured versions in this thing?) to the variant version and observed precisely where the diff was introduced. I don't need to be an ASA to tell you that a different max allowable loan value in year X could have significant ramifications on a Universal Life policy and its later-year cash values.

The only problem I've encountered is that I'm only able to specify one diff application. I've worked around this by creating a stub utility that maps all my diff applications by file extension. That way, my .xls files are compared in my custom Excel file utility, .PDF files are compared in another, etc. I may post my comparison stub script later, but it is simple enough to script in a language of your choice.

Download FileHamster and check it out. It runs on Windows and requires .NET 2.0. I want to say that I've also been able to run it off a thumb drive, so portability may be a benefit. Let me know what you think.

Friday, March 27, 2009

Everything I know about Software Testing can fit in a Crock Pot

My wife put a pot roast in the crock-pot this morning in anticipation of a get together this evening. She told me she had set the timer for 9 hours, had pressed 'Start' and that it was cooking. Even though we were running late, I would not leave until I observed the timer change from 09:00 to 08:59. Despite her protestations that she had set it up correctly, I remained skeptical of the device. We had experienced failures with these things before.

What if the clock was set, not the timer? To me, the only visible difference between a clock and a timer is that one runs forward, the other runs backwards. While trying to prove her point by repeatedly pressing the 'Start' button, I observed no visceral feedback that said "Hey! I'm starting!" other than some LCD words that I had no reason to believe weren't always there before. No beeps. No buzzes. I was almost ready to assume that the bright red light was an indication that it was cooking, but I wasn't around to observe what state would cause the light to be off. I had in mind the risk of this device failing, namely that if it failed we would not eat and our party spirits would be dampened severely. This was too great a risk to not conduct a simple 1 minute test.

Mind you, the device could still fail in innumerable ways - heating element failure, electrical outage, etc. In fact, I thought about how I would be able to confirm power at home while I'm at work. I kind of wish our house had an old school answering machine and a land line telephone. But this 1 minute test would have to suffice as we had to leave ( read: push the pot roast into production ).

Please understand that my wife, so far as I can tell, does not share air with a tyrannical overlord who seeks opportune moments to hold a kind of tester's entitlement over her head. I give her honor where honor is due and ensure that our relationship flourishes in honesty and respect; she is in no small way my Queen. It is precisely because of how highly I value our relationship that the thought of her party plans being ruined compels me to protect her from the ways that technology lulls us into a false sense of security.

As we drove to work, I thought about how this epitomizes my experience in software testing.

Monday, March 16, 2009

Testing the Truth

Singularity Hub has an interesting post about "attempts to bring fMRI brain scanning based lie detection evidence to the court."

This got me thinking: would I have an ethical objection to testing a project like this? If not, what kind of project would I be unwilling to participate in? What if I were in a project and suddenly realized that the product could be used for nefarious purposes? What if my superiors responded to my protestation with an emphatic, "meh...get back to work."

So here are some questions I ask the greater testing community:
(1) What role do your ethics play in your software testing?
(2) Is there a project you would not work on, or have not worked on, based on moral objections?
(3) Does the current economic climate change what you would/would not work on?
(4) How would you test a product that claims to discern the truth?
(5) Would you purchase an iPhone app that could discern truth from lies?

Friday, March 6, 2009

Learning to SHUT UP!

New Testers of Earth! Heed my warning!

There will be a day in your career when you will implement something you've always wanted. It may be a tool. It may be a process. It may be both. But it will seem to you as though it is yours.

You will nurse your burgeoning idea from cradle, through its shaky infancy, all the way up to the point when it begins to walk "on its own". You will grow more proud each day at your child's accomplishments. How it tidies up after itself. How polite it is to newcomers. How well-behaved and dependable it seems to be. You will swell up with pride as you show passers-by pictures of your "idea" doing the most wonderful things - running, spawning, making reports. And though you will fiddle with the thing for what seems like an eternity, you know that you know this thing, this idea, this slice of heaven - born from the marriage of your intellect and your soul - will undoubtedly change the course of history for all who would gaze upon its perfection!

If only everyone else would look at it, they would see it as you see it.

And then someone will call. Someone always calls. There is a problem. And this time the problem is not going to be solved by your miniature doppelganger. Actually, this problem was a direct result OF YOUR IDEA! Perhaps it was an oversight you made while extolling the virtues of your chosen child. Some inattentional blindness you succumbed to as you wrestled with either analysis paralysis or were being beguiled by some new technique you wanted for your resume. The once crowning, glorious edifice to all your rational logic is rent asunder by the astute observation of those you placed in subjection to it.

Your first emotion will be one of incredulity. Certainly the problem is elsewhere in another system...one you're not really responsible for. But no, the evidence points to your own backyard. Then you will seek to affix the blame on someone else. Someone else should have caught this! But alas, you'll be unable to prove that empirically and you'll realize that any effort to do so will only cause an escalation to occur. You'll be trapped. The problem finder has been found to be...a problem!

Oh, the insult to your abiding genius!

Now listen to me very closely. During all this frenetic activity, you will be tempted to lash out at those who accuse you. And you'll know all the words to say to give you the appearance of rightness. A quote here. A name-drop here. A book you read over there. Or even better, you know you could go trolling for evidence in your data farms and find the EXACT MOMENT when that ungrateful so-and-so really dropped the ball. Sure, it'll take an hour of research, but you KNOW its there. You'll even start up Agent Ransack. Are you still listening? Then hear this:

Stop it. Stop it NOW.

What you are about to do is introduce an unnecessary complexity into an already complex situation. That complexity is your personal desire to be seen as right...all the time. It is not only unnecessary, it is counter-productive.

I sometimes detect a hidden thread in our software testing conversations that bemoans our meager status. "If only they would listen to me," it seems to say. Much talk is given to methods and practices we might employ that would bolster our believability index. And this is good, but without restraint, maturity, and wisdom it leads to a kind of methodological mutiny. You can end up seeking to change the course of the development effort in a subversive manner; team buy-in be damned! This is not being progressive. This is not being helpful. This is not being clever and it will not land you a job at <insert mega-trendy forward-thinking collective here>.

You work in a team. And a team works together. You perpetuate the us-versus-them mentality at your own peril. You will make mistakes just like everyone else. Own them. Working with others is a messy affair, mostly because we are all so darned complex. We defy any attempts to metricize our behaviors, but that does not stop us from trying. Future history will be littered with our grandiose ideas to reduce complexity and manage expectation. Some may actually work, but they will only work when they work well with others.

On the cabinet above my desk, there is a post-it note stuck to the door. It simply reads:

"This is not the kingdom you are building."

Thursday, March 5, 2009

Learning to lead...

Today, I met with my direct reports to go over their performance reviews. It is difficult to find the purpose in bureaucracy, especially in tough economic times. So in my "rebellion", I decided to make the most of this edict from on high.

In keeping with the "script", we addressed the issues noted in their respective reviews. We talked about career goals and such. And having done this, I confirmed that they were satisfied with all that was written and addressed up to that point.

"Yes," they would dutifully reply; "Check," my mental reply.

But then I expressed to these amazing individuals that I felt responsible for equipping them not only for their jobs, but also the greater market. I spoke candidly and frankly that because we live in such uncertain times ( haven't we always? ), I felt morally obligated to assist them in becoming all I know they can be. And I apologized for failing them so in the previous year; for my distance, my myopic nature, my personal ambition making me unavailable at times.

I gave them the power and right to hold me accountable in my others-improvement endeavor. They can improve me as I help improve them. I want so desperately for my direct reports to succeed. It causes me much inner-turmoil to think that should a pink slip appear, it could send them out into the current job market with limited exposure to advanced topics in development, testing, and automation. This is my responsibility, so I endeavor to rectify it.

Managers and Testers reading this: what are YOU doing to improve the quality of the PEOPLE around YOU in ways that will benefit THEM should they no longer be around YOU?

Humanity, Suffering, and Software

Just finished watching Arch Bishop Desmond Tutu on Craig Ferguson's show tonight. Mr. Ferguson is a recent discovery of mine since going down to basic cable. His off the cuff style hits my funny bone just right. But tonight I was hit in a different place. For the better, I believe.

Father Tutu was questioned about the motivations behind forgiveness in the face of unspeakable humanity. His answer involved describing the inherent intertwining of our humanity, and that any practice that dehumanized an other will have a reciprocal affect on the dehumanizing agent. It was incredible to watch someone who spoke with passion, precision, and humility about the betterment of life through love and forgiveness; that aspiring to the better parts of ourselves is a noble endeavor. He left the usually talkative Craig speechless. He is a peacemaker in every sense of the word.

And after this, I read James Bach's blog entry on how quality is dead. Long live quality! I will not attempt to summarize, but James' thoughts are lucid and illuminating as usual. Please read it. Now, James would be the first to say that he can be argumentative. If he is a peacemaker, it may come about only after much heated debate.

Sometimes when my mind encounters a striking dissimilarity between two things, I seek to find their commonality. What does software quality have to do with Apartheid? And so it is late enough at night for me to entertain the relationship between these two seemingly disparate media events and their perpetrators. To explore the connection between Father Tutu's cause and James Bach's cause.

Perhaps James' observations speak to a very small kind of oppression forced upon us by a culture intoxicated by its technology (in-techno-cated?). Perhaps Father Tutu's response to a particularly nasty, high severity problem ( i.e., Evil ), and his subsequent success, is a valuable model to combat the present state of affairs.

Both ideas seem to be crying out for change that benefits everyone, but are dealing with entities reticent to change because, well, there's no incentive to change; reduced quality does not hurt the 'haves'. And these entities fervently believe that nothing is wrong, that things are actually improving.

It seems to me that restoring a proper perspective is a shared idea in both issues. It is good to see ourselves as humans again - linked to each other in inexplicable ways that technology and government cannot improve upon. To begin thinking of what the word "enough" really means. In both contexts. Bringing awareness to the greater community begins to break the cycle. It all reminds me of something my Pastor father told me one time: "Some demons are killed immediately, others are starved to death." Change comes, only the velocity varies.

I'll end my philosophical waxing here because I think it is a bit disrespectful for me to equate the plight of human suffering in Darfur/South Africa with proprietary protocol failures between Tivo and Dish Network.

Monday, February 2, 2009

Google attributes bug to human error...as opposed to what?

http://www.eweek.com/c/a/Enterprise-Applications/Human-Error-Caused-Google-Glitch/