Saturday, March 16, 2013

On the Stoplight Heuristic, and 'Mindless' TDD and Test Automation


I read an interesting article this morning about TDD, and one possible outcome where developers are so focused at keeping things 'green' that they may get a bias around their code which drives them to jump to alter the code to make the tests green.  It's an interesting read, and a cautionary warning to developers who may too easily fall into the Test Driven Development groove.  Please read it before making the jump


Monday, July 30, 2012

Tester Reading Challenge: Read Markus Gärtner's ATDD by Example in 15 Days or less!

Are you ready for a Tester Reading Challenge? Read Markus Gärtner's ATDD by Example in 15 Days or less!

Okay, one of my favorite testers, Michael Larsen, AST Board Member, This Week In Software Testing   producer,  a Boy Scoutmaster, and Weekend Testing America's driving member is often found saying, hey make a bold prediction, and then try and meet that prediction, you may just surprise yourself.  Well in the aftermath of CAST 2012 (Conference for Association of Software Testing), I noticed that he and a couple of my favorite testers and MiagiDo members went to by Markus Gärtner's ATDD by Example.  My copy arrived just today, and I've been looking forward to reading it during the next couple of weeks.  I was admiring the cover, and the size of the book is not too hefty, and thought hey, it's a shame I couldn't get Markus's picture with it.  Well actually I did thanks to tweetdeck (see here: http://twitpic.com/adnenn) As tasteful a picture of a book with my notebook computer as it will come. The thought then occurred to me, this book is 200 hundred pages.

I began to wonder, how long would it take me to read through this, at ten pages a day that would be 20 days.  No, that sounds too easy, and with some free time to read padded in my schedule, I decided to challenge myself, and anyone else so motivated to read Markus's book in 15 days or left.  For myself, I've set myself a challenge of August 12th to finish the reading.  (see: https://twitter.com/Veretax/status/230093387708125186)

I have no idea whether that's a reasonable challenge for me given my commute times to and from work at just over an hour and a half both ways.  Nor do i know how much free time I'll have in the next few weeks, yet ten pages a day seems a decent morsel to both read and digest and it's high time I tried something bold.  

Not only that, I'm challenging every tester in the community, who has not already done so to purchase this book, and try to beat, match, or meet the goal of reading this 200 page tome in 15 days or less.  If you take the challenge, I'd love to hear from you, and your impressions of the book as I'm fairly certain it's reading may help many testers look at their craft in new ways.


So, will you take the challenge?

Here's a quick link to the book on Amazon, should your local bookstore not carry it ATDD By Example: A Practical Guide to Acceptance Test-Driven Development


Wednesday, July 4, 2012

Are You Prepared for Crisis? Retailers Need a Back-Up Plan for Outages

As I mentioned in my previous post, many around us have been dealing with the effects of the Summer Derecho storm that has impacted much of the eastern US.  Some of us are even effected when our businesses and homes are not located in the path of the storm as its affects no doubt impacted communications for the internet, hosting for many internet sites, and as Matt Heusser has written over at 21st Century It: Cloud Computing: Keeping Things Simple, Except When It Doesn't, an article which discusses how this emergency impacted Amazon's EC2 for several businesses and how some CEOs may react to the outage.

I in turn, posted in the comments there a long comment about how people of non cloud hosted solutions should not feel themselves somehow safer either, but I wanted to also post that comment (edited a bit for grammar) for the rest of my readers to review.  Please take a look and let me know in the comments, what areas you may have seen where companies could do more to avoid catastrophes like this, and in some cases, if it is just an 'Act of God' away from occurring, what can we do to minimize how this affects, not only our own corporate bottom lines, but the citizenry of an ever growing networked society?  Note that I've added a lot to what may be a comment some of you will have already read, but I think it is worth reading a second time.

In an era with ever increasingly severe, and unpredictable weather at times, I find that the story of Amazon's EC2 services outage, (a major outage to be sure) to be just one of many.   Look at the recent storm which has impacted several million citizens in just one night from Indiana, all the way through Ohio, West Virginia, Virginia, Maryland, DC, etc.   So, it isn't just cloud hosted solutions which are vulnerable to outages of this type.  Non-cloud solutions are no safer at times.

A great example are Point of Sale systems, such as those used by so many grocers. retailers, gas stations, convenience stores, restaurants, etc.   When the power is out at many of these locations, the expectation is it will quickly turn back on.  Yet as I a West Virginian look at the news I cannot help but look at major chains, like Krogers, Walmart, Food Lion, Foodland, Dollar General, and others who serve a large area and have now after nearly two plus days of little if any power have had to dispose of millions of dollars, countless tons of perishable products - everything from meats, cheeses, refrigerated juices, prepared meals, milk and deli meats and side items, and also highly time sensitive produce.

It saddens me that in the effort to fine tune profit lines, companies like these which provide vital services are caught just as the local populace without any type of failover plan.  At some stores even things that could be used and necessary in the short term like candles, matches, propane, grills, charcoal, and bottled water remained on shelves because stores had no fail over plan for how to handle inventory when the computers and power were down.   Retailers of all sorts turned people away without cash as credit card and even check verifying machines remained unable to function or connect due to lack of power, or down telephone lines left many desperate consumers stranded without cash.  Even if people had cash though, many stores had insufficient cash reserves, or lack of ability to process and sell merchandise absent the scanner based UPC code look up machines that so many retailers are dependent upon.

What's worse?  (For the corporate bottom line, that is.) People look far outside their normal shopping zones to shop at other stores of the chain, or (perhaps even more likely), customers take their dollars to spend at your competitors, who no doubt raked in cash hand over fist on simple commodities like generators, ice, bottled water, paper plates, cleaning supplies, and canned and other non-perishable items.  Those retailers who had a plan, positioned themselves to not only help the people seeking to find these goods, but likely increased their profit margins in the short term, which no doubt investors of any major retailer will appreciate.

For me at least, this is something that all companies need to address.  Whether they are cloud or not cloud related seems irrelevant at this point.   When I read that retailer X or Y contemplated buying a generator at some point but thought it would be used too infrequently to justify it's cost, I can't help but shake my head as more money is walking out the door in dumpster bins then in their bank accounts. For me, it was sad to see so much, could have been bought, or given away product (if you wanted a public relations effort in this environment), been cooked, and eaten by some who maybe had nothing for that day.  With freak ice storms, out of control wildfires, rain storms, hurricanes and tornadoes, and other such weather phenomena becoming more common in occurrence if I were a CEO I'd be rethinking my fail over plans at the local level when connectivity and power goes down.

Unfortunately, for those of us still stuck in this state of emergency, we are forced to pick up the pieces and begin the clean up as many more tons of lost food, and damaged homes and businesses will have to be performed before we can all get back to a state of normalcy.  So if you happen to live in one of these areas, pay attention to your normal sanitation schedule, and watch for instructions on local news or radio broadcasts on how to properly dispose of the spoilage so as not to attract rodents, and further complicate an already abysmal situation for many of us.

After the July 2012 Derecho Storm: A Call for Service to all

Hello, again, I know it's been a while since I last picked up the blogger's pen.  While the initial cause of my absence was do to many a real life concern that had taken most of my attention, most recently I have accepted a job with Rackspace in Blacksburg, VA starting soon.  I can't wait to start my endeavors there, learning new stacks, new technology, and helping test the things they have coming down the pipe.  I may post more about this transition at some time, but for now I'm playing the blogging idea by ear.

However, before I put the pen down again for a bit as I transition to something new, I have one more thing I feel the urge to write about.  For those not aware, this past Friday, the 29th of June, 2012, the eastern US was hit by a massive fast moving derecho storm which caused destruction on a vast scale and scope.  A state of a emergency was declared in many states, including my home in West Virginia as high winds knocked down power transmission lines, felled trees and limbs, hindered communications, affected water supplies, and a host of other acts of destruction which are still impacting these areas.  My home in Summers County, West Virginia was in an area heavily impacted by this storm, and we went nearly 72 hours without electricity, internet, television, or other modern conveniences like air conditioning.  What's more many of my neighbors lost several hundred pounds of stored food ranging from meats to produce as the thermometer climbed to near 100 Fahrenheit on some days, with brief showers providing only a small respite.

As work crews, continue into their fourth or fifth day of activities in areas where repair times for an entire county may be measured in days or weeks instead of hours, it is easy for many to get hot under the collar, angry at the slow turn around times, gas shortages in some places, hard to find ice or bottled water, so I ask that everyone in these affected areas look to your neighbors.  Help each other, and try to be smart with any purchases you make during this crisis.   This storm is at the least a storm of the decade in terms of damage, but may approach century levels when you consider the amount of Fuel, Food, and equipment deployed in this massive repair effort.   So look to your fellow man or woman, and if it is in your ability to help out even in a small way, please do so.

I have a post I'm working on to illustrate one major testing issue that came to my awareness this past weekend, but I want to take time to revise it a bit before posting it.  So to those who cannot yet read this due to power outages, fear not, help is coming.  For those in unaffected areas, consider donating to your local food banks, and the families of those brave workers who are travelling far from home to help those who are in need.    A donation of food may be very helpful for a food bank or pantry already tapped and stretched to the limit as people in surrounding states tax a system that is already struggling to provide for so many unemployed families.  I encourage you to consider donating a couple canned goods or non perishable items (as defined by your local pantry) in support of relief efforts, not just in these affected areas, but in your home towns and counties, as well as for the areas even now affected by the wild fires in Colorado.

For those who have already given of their time and resources, I want to thank you for your help and offering, those of us who have experienced this crisis may never be able to thank you personally for your hard, tireless, and perhaps round the clock work to help those of us whom you may never even see face to face.  Thank you all.

Tuesday, March 27, 2012

Elevator Optimization Challenge: Part 2

Earlier I posted an Elevator Optimization Challenge and asked for feed back on what kinds of questions you might need to ask in order to begin suggesting a course of action to make the elevator's usage more efficient.

If however you missed it, please return to Elevator Optimization Challenge for an overview.

Once you've familiarized yourself, you can continue after the jump.


Friday, March 9, 2012

Elevator Optimization Challenge

In my life I've lived, worked, and visited many buildings with elevators.  Some had a single elevator and a single digit number of floors.  Some had multiple public, private, or service related elevators, twenty or more floors.  Some count starting at Ground or 1 (First Floor), some have basements, sub basements, garages, or other floors outside the normal first floor up to the top floor.  I once lived in a dormitory that had a ground and zero floor, consider that for possible context.

Much has been written about elevator optimization, and I feel just as I would for many other problems that optimizing the elevator's function might not only depend on the context of the tenants and users of the building's elevator.  The context could even change as tenants moved in and out of the building not just through the day, but throughout the life time of the building.

So the thought occurred to me, what if a tester were approached to work for an elevator tuning company to help optimize the flow of traffic in the elevators.  What common questions would need to be asked to figure out the building's context?  So here's the challenge.  Below I am presenting four different building possibilities. I'm less concerned about the optimization of each building in the future but how to currently maximize its efficiency.   So here are the Buildings:


Building 1:
Office Building A:
Floors: 5 Numbered 1 - 5
Entry/Exit: Floor 1
Elevators: 2: 1 Public
Tenants:
Floor 1: 2, Law Office, CPA's office
Floor 2: File Storage, Break Room, Copy Center
Floor 3: Conference Room, Reception area, Storage
Floor: 4: Software Company: Management, Developer Offices
Floor: 5: Training Room, Support Desk Cubes

Building 2:
Apartment Complex
Floors: 12 Numbered B, G, 0-9
Entry/Exit: Floors B and G
Elevators: 2 Public Single controller
Tennants:
Floor B: Small Commerce, Post Office, Book Store, Weight Room
Floor G: Managers Office, Cafe, Storage
Floors 0-9: Tenants about 25 apartments per floor (for the purpose of the exercise assume an assortment of, 2, 3, Bedroom furnishings, with kitchen, living room, and a single bathroom (not shared)

Building 3:
Hospital:
Floors: 15 Numbered, B, G1, G2, 1-13
Entry/Exit: B, G1, G2, 1
Elevators: 8 4 Public 4 Service/Maintenance   (2 separate banks on separate controllers)
Floors:
B: Basement/Storage, limited diagnostic laboratories
G1: Garage First Floor entrance/exit, Walk in Clinic
G2: Garage Second Floor, Reception area, and Shop, Cafeteria.
Floors 1-13 Various layouts for residents, surgery, etc Exact arrangement doesn't matter
Visiting Hours are typically from 8-11 AM, and from 3-830 PM for the hospital

Building 4
Small Office Building
Floors: 5 Numbered 1-5
Entry/Exit: 1, 2, 3
Elevators: 2, separate banks and controllers
Floors 1 and 2 are parking garages, where Floor 1 is the least used of the two.
Floors 3-5 are office spaces, most of the traffic is to floors 4 and 5 though


So given these buildings, what questions would you first need to answer before you could begin to recommend suggestions for optimization?  I know I have a few in mind myself, but I'll leave this post be for now, and then maybe add a continuation post later on.  What questions would you ask to accomplish the optimization?


Note: This is probably the first time I've proposed an idea for a Test Challenge, so if its formulation or presentation seem off, or missing something, please feel free to let me know.  You can drop me an email if you'd rather not post in the comments.

Thursday, March 1, 2012

Is the Context Driven School of Testing - Dead?

Earlier this week, Scott Barber pointed out an update to the Context-Driven-Testing page which has served as a starting point for people who want to learn about Context Driven Testing. In this post Kem Caner, one of the 'big four' of the Context Driven School gives an impression that the idea of Context Driven Testing being a 'School' has perhaps reached a point where it no longer exists.  He goes on to cite differences in vision among the founders of the movement, and I'll let you read his post above to draw your own conclusions.  However, when I was asked this question, I felt that I didn't agree.   I've seen places where friends or close colleagues go their separate ways because of a polarizing my way or the high way sort of mentality.  I'm not sure that's quite what Kem is referring too.

I debated whether to post my response or thoughts to this here at all as no doubt everyone involved or outside this movement will have their own opinions and beliefs.   I decided that for posterity's sake that I would indeed.  I have discussed this a bit with some fellow testers in the MiagiDo group, and Michael Larsen another MiagiDo member recently made a post giving his view on things (In Support of Context Driven Testing).  It's worth a read, and his thoughts were a bit similar but also slightly different from my own initial response to this question which I gave a bit earlier.  What follows was my initial response to this question of whether Context Driven School of Testing is Dead as it was originally shared with others in MiagiDo.  The only changes are the addition of Italics, and  a few grammatical improvements.
I'll have to quote Monty Python on this one. 
"I'm not dead yet!" 
I read Scott Barber's post, and I read the information there.  I really chaffe a bit and comparing this to the polarization of a few figure heads within the American republican party.  Kaner mentions Gingrich, who no doubt is a polarizing figure. If you're an American, you likely either like him, or you hate him, there probably isn't  a middle ground for most Americans.  However, I think perhaps the 4 Founders have gotten a bit too caught up in their own mystique. 
I see the same thing within our American political discourse.  People at the so called top seem so polarizing, and the media tries to frame discussions a certain way, and yet most of us at the bottom, outside that top so called 'chosen' echelon are not polarizing, we are not so closed minded or resistant to having honest discussions about things.   
I think this is true also for the Context-Driven Community, whether we call it a School or not, to me is irrelevant.   The point is we are making a fundamental distinction in where our thinking begins.  I see this same problem in the US Education system.  A lot of people expect school, especially college to prepare them for everything they need to succeed in a career.  The reality is quite opposite, it's a base, a starting point.  If you get that strong base, I believe a strong education helps you succeed no matter what you apply your life too.  I feel the same here with Context-Driven School of testing. 
Listen, so the four founders of the movement disagree.  There are four gospels in the New Testament of the Christian Bible, (I use this as an example), and all four a bit different, varied, and share some similarities too.   Those guys were alive at the time right?  Yet they were not the same as each other, they had differences and disagreements no doubt. So let's be clear the entire point of our School (in my estimation) is to not have Drone or Fake testing right?  I believe the point, as I understand it, is to encourage people to use and develop their critical thinking skills, and to not be satisfied with testing that feels lacking in covering the real risks of a project. 
Let's look at this another way.  James Bach gave a talk (I believe this was at Oredev, see James videos posted at his site at www.satisfice.org if interested) about Renaissance thinking a few years ago.  He describes what was fundamentally different about it, and how it wasn't just what was happening In Italy, or Scotland, or wherever else, that there were little movements pretty much elsewhere.  Think about the artists themselves, they all approached art a bit differently, yet they don't look like carbon copies even if they've learned some of the same skills and techniques.  This is no different than how we each approach testing in the Context Driven School of testing.  We are still different then what has come before.  We are still different than the more agile-centered testers. 
We cannot deny who we are.  We've been enlightened, we've grown as a community, a school.  It would be impossible for us to try to put the genie back in the bottle now.  What's done is done, the shot has been fired and heard around the world now.  The question is, in any revolution, what will each of us do because of it.

That's my feelings on it anyways.
Hope that wasn't too preachy,
-Tim Western

So in conclusion, while there may clearly be differences between the founders of the Context Driven moment, its principals and the School of thinking that it began, I must stand up and say, hey I'm still Context Driven, I still belong to that School of testing.   Now I do think there is a risk here.  There's a risk in perhaps holding too close to the fundamentals of the school.  We need to be aware of other ways of doing things, even if we may find that our way is better.  As an engineer, a tester, or a scientist I would be looking for ways to prove my own methods wrong, just as so many other scientists have done for centuries.  Yet for now, as a Dynamic and not a Static individual, my understanding of testing, and Context Driven Testing will only grow from here out.  It isn't a one time thing to learn, but a thing I will continue to learn and grow and mature as a tester as I put the ideas I've encountered into practice, as I test them, and work through the problems I face professionally.

So what about you?  What do you think is the Context Driven School of Testing really dead?

Note:  Since I set this post up for posting Scott Barber has added a part II on his thinking With the Context-Driven School "closed" what's next? He brings up a very good point about the need for testers to focus on the value they need to provide within their contexts, which I can totally agree with as I am driven to do whatever I can to provide value on a project.

Also I will note that James Bach has also put up a response (which I just now read) If you want to know James Bach's side, I suggest you read Context Driven Testing at a Crossroads.


Edit:

Since posting this, I've found Markus Gärtner blog about this at Lessons Learned from Context-driven testing  And note that Cem Kaner has given his comments on this as well.  It's definitely worth a read.


Additionally, Cem Kaner has added another response (blog) entry at http://context-driven-testing.com/?p=23 that I encourage everyone to read.   This certainly sheds some light on some of the issues that Cem is concerned about, and feels a bit clearer to me about what the issue as he saw it is.

Friday, February 17, 2012

Stepping in the shadow of a monument of process, or standing up?

Somewhere in an old and run down railroad boom town, stands a hundred churches.  Most of the churches were built nearly a century before the Americans with Disabilities Act was even contemplated on the floors of the US Congress.  Some have been updated with ramps or elevators, but most like this one old red brick church have only concrete stairs that lead up and into the hall where the people meet each Sunday morning.  Every Sunday a hundred people or more, women, men, children, and elderly walk up those old concrete steps before that service begins and then, retreats back down those stairs again after the service has concluded.

On this particular Sunday morning, many feet trod up and down those stairs. Each pair of feet appear only conscious of their forward motion, an attempt to keep things moving forward, progress, a process.   So one step after another and soon they reach the destination on another iteration of that Sunday morning hour or more of fellowship and learning.  These little feet may be blissfully unaware, or perhaps they know all too well  that the church is a hundred years old, and has stood tall for longer than those feet have been able to move.  Furthermore, it might seem to those feet, as the creep up those stairs in the shadow of that hundred year old steeple that those feet will continue to visit the same pattern of stairs until the trip can no longer be made.

Of course, then there will be other feet will take its place, and as many feet will continue this pattern to mark up and down those stairs, with their purpose focused on the zenith  where the door opens into the terrace of worship.  So common and repetitive might this routine become that these feet may pay little attention to anything except to each footfall after footfall.  While the conditions of the stairway may sometimes be traveled in the dry, the wet, or perhaps with salt or kitty litter spread about to enhance traction when snow or ice threaten the weekly ascent, but always these feet work their way upward, looking towards the doorway at the top, and yet despite the variety caused by the cycle of seasons, still these feet remain oblivious, giving less and less attention to the grind, the steps each foot falls upon as the habit of the process over takes the analysis and observation that once, during those first few trips up and down those stairs, where the mind noticed the grade, the hardness, and sound of those foot falls on their ascent.

Yet then one Sunday Morning, a half hour before the celebration of this years Scout Sunday a lone boy finds his way up these stairs.  He has walked these stairs before, but it has been months since he last made that climb.  While others around him may feel this is nothing but a normal routine, he takes in the moment, the smell of the cold snowy air, the feel of the chill wind against his cheeks, and the sound of each footfall as he climbs step by step, turning at its half way point to the side, and then up one more step to the doorway. That's when his senses detect it.  A sound altogether different from the sounds of all the previous steps he has heard ring out.

The sound catches his attention, and he lingers for a moment on that step, noting that it is different, but not so sure about it, he opens the door and enters the old church.   Others behind walk up the same step, and not one notices, or comments on the sound he heard as he stands back from the doorway and ponders, waiting for the latest bunch of congregational attendants to finish their ascent.   This boy doesn't attend this church regularly, he goes to another church nearby and across town.  He was only visiting on this occasion in support of the church that had graciously helped support his Cub Scout unit.  Yet a question forms in his mind, unlike all the other habitual comers and goers, going through the usual and traditional process of that weeks iteration that raises his curiosity.


Wednesday, February 8, 2012

Weekend Testers Americas #24 - Black Box Software Testing: Practice 3

Today I participated in Weekend Testers Americas Session #24.  The mission for this session was fairly open ended.

Mission: 
* In today's mission we would like you to frame your exploration on your 
own. 
* We are about to give you a 'black box machine'. 
* You will have 60 minutes. 
* At the end of the timebox present your notes (no more than page long) to the group chat.
* What to report and in what format - we leave it up to your decision. 
* We hope everybody will bring a unique bit of experience we all can learn from.

Ultimately it boiled down to an exploratory testing session on a practice  flash applet.  Because of the way the mission was framed, each individual tester, or testing pair defined the mission for themselves. Since the general feel of the mission was so open, and my instincts were to work the practice as an exploratory session, I felt there was a lot of room to try things, perhaps things I wouldn't normally have done.   While some of the testers paired, I elected to go it alone this time though.

Before I get into my synopsis of the exercise and my conclusions of how that session went, I'd like to give credit to James Lyndsay who I am told is the one who produced this particular practice over at his site http://www.workroom-productions.com/.  There are a number of practice exercises that could be used for some general and basic practice of exploratory testing skills.  From what I've read he also has some more in depth training as well, which could be a useful if exploratory testing is an area you feel could help you in your testing efforts.  I'll leave it to my readers to decide that for themselves.    Now, if you'd like to try the exercise before reading my report, head on over to http://www.workroom-productions.com/papers/puzzle_03.swf and explore it to your hearts content for up to an hour.  Otherwise, what follows would be considered a 'Spoiler'.   So when you are ready to continue reading, please click 'Read More' below.


Friday, December 30, 2011

Reflections on 2011, a year of trial, growth, and questions

It has been a while since I've had time to pick up my bloggers pen.   October is traditionally a hellish month for me, even when work isn't trying, the Cub Scouts have kept me busy all but a single weekend that I recall, and then on Sundays our son plays soccer.   However, things quickly went off the rails this year.   The whole family came down sick over the span of a month, and one week, we were all sick at the same time.  Yikes!  Praise God, we are better now, but that isn't the only change.

My duties on my project have shifted back to more coder oriented tasks, and less focused on testing.  While I enjoy both programming and testing pursuits, I'll admit, I miss the testing aspects of what I was doing before.   It is funny in a way, when I first got approached about a 'Automation testing' position in 2009, I was worried about being pigeonholed as a tester and excluded from some kind of elite club of programmers.  Yet that was a bit a naive thing to worry about in hindsight.  Testing brought back my love of learning in a way I had not felt since college.  It returned to me part of who I always was, but had kept silent in order to make ends meet.  I've learned a lot as I ran that course, and I wouldn't trade the decision for the world.

My current role on project has me pondering though.  I've heard it debated around twitter, about whether you can be both a programmer and a tester.   I know I can do either, but at some point do you not need to decide which to specialize in?  The reality is there are only so many hours in the day for study and growth, and the opportunity cost of each new learning investment, in effect is at a loss for learning something else.  This is a reality that I've now come face to face with in the last two months.   I still have the knowledge from what I learned as a tester, but it has been hard to try and keep up on my learning where testing is concerned, especially when my current responsibilities require me to act in a more code-centric role.

This feeling has left me feeling a bit lost internally because I know I can succeed at anything I choose to focus my efforts upon, it wouldn't matter if it was testing and programming, or some other group of tasks from which I must choose. I have the drive to do what is necessary to succeed.   Still, I find myself at this cross roads because I enjoy doing things that provide value to the teams that i work with, no matter how small or great the achievement may be.  Up till now it hasn't mattered whether I was a tester, programmer, or performing some other service to the project team.  As long as it was value that I added, I was happy, content and felt fulfilled inside,  Yet I find myself feeling as though I am stuck at a fork in the road.

I feel as if I have paused at a great fork where two rivers meet.  One is a possible focused career on testing, the other, a continued focus on programming, its methodology, and potential as a generalist programmer.  Either fork in the river looks potentially enjoyable from a learning stand point, with its opportunity to pause to fish, relax, or just skip a rock to the other side.  Like most rivers though, I realize that I can only paddle up one stream at a time.  Although the left fork might be easier, the right might be the more fulfilling, or the converse could be true.

For nine years, I have worked professionally to develop, test, and support various software efforts.  I have learned something from every experience that I have been fortunate to endure.  I wouldn't trade those experiences away as they define a bit of who I am personally and professionally.  As I enter my tenth year of service in software development, I find myself looking back over the peaks and valleys behind, and ahead up the forks in the river, yet seeing behind the first bend of either is impossible.  So I am presently anchored, where I am at this fork, pausing to consider and reflect upon what my dreams are for the next ten years.  Where do I want to be?  What roads will I need to travel to get there?  These are questions that I have no answer for currently.   So given that the new year is around the corner, I can see myself at least initially focusing greatly upon what exactly it is that I most want to do, and the realities of that choice which may require not just myself, but my whole family to adapt as well.

It may take some time for me to come to some answers, and the pot has clearly become foggy and hard to see how its contents will turn out when I finally reach that conclusion, but I want to consider things more closely, set a plan and then rush after it to attain it.  Perhaps it is the nature of how I 'fell into' my current assignment that is at the heart of this muddled mind of mine.  At least I know it is something I can do for now, while I sort through my feelings and make what could possibly be the biggest personal, and professional decision I have made in my life thus far.

But enough about me, as you read this and other blogs, I imagine you may be reflecting on recent events, just as I have been.  Where do you stand?  What's your dream?  How will you decide what to focus upon this year, and as a result, what areas that get left behind will you perhaps miss when we reach this point a year from now?

Saturday, October 1, 2011

Diary of a Soccer Coach: Week 4

You've been there before a well worn meeting room with your team gathered around a table going over a list of action items related to the project you've been working.   Sometimes they are new requirements, perhaps they are refinements of existing functionality, or tweaks of the deployment procedures taking into account lessons learned in that first deployment of the software.   The first practice after that first game,  is very much like this.   Often there isn't enough time to discuss defensive or offensive tactics with the players before the first game.

It is sometimes a matter of perspective, a coach after the first game of the season, or a manager or lead on a team reviewing the steps they took on that first ever critical deployment, the first game, the first actions of substance as far as the customer might see.  So in hindsight, that first practice, that first meeting, is often a discussion of the aftermath.  For our kindergartners, we discuss the issues I noticed during that first game.  There are almost always a few areas to correct, and they aren't always the same from Game 1 in one year versus any of the others.

Typically a reminder of the rules is necessary.  A reminder about which goal we are attacking, which one we defend, a reminder not to use hands except for the Throw-ins, and an encouragement to stop play when the whistle blows and quickly bring the ball to the referee when there is a stoppage of play for going out of bounds.  While errors can occur in any game, I try to point out the mistake, and correct the behavior without singling out any particular team member.  The point after all is not that someone erred, but that we play the game correctly to reduce stoppages of play.

With the instructional league sometimes this is difficult.  Some players have an over arching desire for the ball, and they may indulge this by diving at the ball.  This is a behavior we try to discourage.  For one thing, falling to the ground is as bad as waiting flat footed for the ball.  They aren't upright able to move with the ball, and if they are down where the ball is, there's a higher possibility of injury as other players go for the ball around them.   Sometimes they fall down, and stay on the ground, and again even if the ball isn't near them, this isn't behavior we want to encourage.  Sometimes its a sign that the kid is tired, but they rarely will get into shape if they sit down when they are supposed to be in the game, and the ball could come at any time too.

Ever been on a team where similar behavior happens?  Where they get tunnel vision, seeing only the one task before them at the expense of what is going on around them on the field?   How can we avoid this behavior?  What's worse is what if a team mate ends up blocked or stuck in some area and doesn't realize it?    As professionals we can try to encourage, give a second set of eyes to these issues, but in the end its really up to the individual to get themselves back on track.  We can encourage that team mate to come back on board, but honestly, if that person cannot take the initiative, there may be little we can do to really fix an issue that is internal to them.

Just like with my soccer players, I take them back to basics, breaking down the basics of the pass, of corner kicks and goal kicks, of throw-ins and kick-offs.  Only so much time can be spent on correcting the past, as new challenges and new games await.  So before the second game we spend a little time talking about defense.  Of reminding the kids that in our league, there are no goalies and therefor noone should go into the goal arc even to go after the ball, but more importantly we teach them what to do to protect their own goal.

First involves positioning, if a player is following an opponent bringing the ball up, we show them how they can move their feet with out crossing them, using the balls of their feet to have better response time in their jockeying back and forth.  We show them how to encourage the ball handler to dribble a particular direction, to funnel them away from a straight shot on goal, or to where we hope additional team mates can cut off their lane of advance.  We also try to show them that having everyone covering one person leaves open lanes of passing to the opposition, it leaves area of the field uncovered, and opens up easy attacks on their teams goal.

In software development, testers play a part of defense, not from bugs scoring on them, but from preventing threats to the value of the product.  If the goal as a team is to release a product with value that's usable by the client, then anything that allows the product to be misused, leaves features less than fully implemented, or just plain not covered is a threat that we as testers try to find.   The one difference here is that unlike in soccer where we can see the ball coming many times before it arrives near our zone of defense, in testing we don't have the ability to look at the software and say a bug is coming from here or there.  We have to instead visualize it with our mind.

How can we visualize where bugs might be?  One way is to be involved early in the process, be in with the conversations with the customer or client and helping to determine how the software may be used.  We also must consider the negative, the view of what invalid data, or improper operations might do to the software.  What if a file consumed is missing settings, does the software resort to a default and store that in the configuration for next time?   If you start typing before the software can fully load, will it cause an unexpected behavior?   We can brain storm a horde of test ideas to try to cover the entire areas of the application, but the reality is just like in soccer, we are just one tester, we can only cover so much ground in eight hours of work time.

What about opposition tendencies? It may be possible in soccer to see that certain players tend to favor an attack on goal from the right or left side.  Some players may prefer passing the ball forwards, or looping back rather than continuing forward at a bad angle.  As testers, we can evaluate the software for tendencies, are there certain areas that seem more bug prone, are there areas that are more critical, or more likely to be highly used and thus could cause more risk?  Is there a particular feature set which sets your software apart from another, then that is an area I'd be sure to test.

Then a foul may be called.  Maybe one player pushed or tripped another, maybe it was a hand ball.  Maybe there's an area of your software that is of particular risk to the customer.  They need that feature to work, quickly, to solve a time critical problem.  Whatever the case may be, we try as hard as we can to find every single bug there may be, but the reality is we can't cover the whole of a software that's anything but trivial.  The nature of software and the myriad of systems it may be installed upon create such a large volume of possibilities that we cannot test it all, so we use techniques to break the software down into areas that we can cover.  We find ways to distill problems to a range of possible outcomes, and we try to think of new ways to test old functionality, because you just never know when a new feature may impact an old one.

Tuesday, September 27, 2011

If its not random, how to decipher the pattern?

Earlier this week, I wrote about the software fault in the Staunton, Virginia, teacher payroll system.  I talked at length about the concept of 'random', and the importance of distinguishing between something that which is truly random, from something that is better described as unexpected, unpredictable, or just 'having no discernible pattern to me as far as my sense go'.  Using precise language when describing defects in software benefits everyone on the team, including the customer.

Unfortunately, the fault in Staunton, Virgnia's payroll system wasn't found by a tester, instead it was discovered by someone researching the finances of the county's school system.   Now we may not know exactly how this fault was first brought to the attention of this school district.  That doesn't preclude speculation how an investigation of a similar fault on a hypothetically similar system could be conducted.

So imagine a hypothetical payroll system for an organization with multiple locations, accounting for user entities of diverse pay grades and positions similar to the school systems.  The more layers you add to the structure of the system, the greater its complexity.   Now let's suppose the vendor of this software received word about an apparent bug.  This bug affects certain persons within the system who would receive an unexpected, and here to fore unnoticed pay increase.  So if you as a software tester for this software vendor, receive this notice where would you start?

Reporting and analyzing a defect that a tester stumbled upon through his or her own investigation of the software is one thing.  Trying to track down a flaw someone else found and reports is quite another. If we follow the example of the of the system we discussed earlier we can imagine the reports taking the form of output, potentially pay stubs, ledger logs, bank statements, etc.  In short, we possess a log or evidence that the problem occurred, but this evidence may be far enough from the system itself to not be able to produce the same conditions without a bit more digging.

So how can we reproduce these conditions and figure out where the real defect resides?  More information is required, and like a software Sherlock Holmes we must examine the evidence, and piece together the story of what happened.  In the case of the pay roll system it is likely important to know how many individuals were impacted.  Might a search for more information related to the individuals effected, reveal each user to be part of particular entities or organizations with in the system?  Did they work at particular locations, or have their data maintained at a particular data center?  An exhaustive analysis of whatever data can be culled from the system could help establish a definitive relationship between the affected users.

From the headlines, it sounds the School district performed an analysis just like this.  The result seemed to have something to do with individuals who went to a particular school.   Now the age of the defect in the system may not be clear.  If  a lot of time has gone by, it may be possible that the connection is more subtle, and won't track to any particular organization, or be so obvious; however, in this case we strike pay dirt.   One piece of the puzzle is in place.

Given that all those results might track to a particular organization within the software, this may lead to our first hunch.  Were all the people assigned to this organization, also receiving the same bug?  This might be where the first bump in the investigation may be encountered.   Maybe they aren't all affected.  That idea may lead to a belief that our initial hunch was wrong, but it could be that there's a reason why they turned out to be the exception.  

It's at this point in the defect analysis where a history of debugging similar enterprise applications could prove beneficial.  From reviewing some of the articles around the defect, a number of ideas come to mind, all of them based on similar behavior I've encountered in other projects I have worked.  If these employees all worked at a facility that was shuttered, what happens to their accounts when the facility is shut down?  Are they transferred to a new facility?  Are they suspended out right?  Are they removed from the system?

I recall once with a customer relation management system that we encountered a bug when a user account was removed from the system.  All the records linked to it, would cascade and delete, or disappear and not show up in the system when searched.  Could a data integrity issue regarding the integrity of the data for these closed locations be responsible for this behavior?

Another possibility that occurs to me, is that a system that freezes pay for all employees may apply to a group of employees by group.  Might a group that these employees belonged to be used to freeze all of their pay for some time period?  Might failing to belong to a group due to the original group being inactivated cause the issue of applying this freeze to miss these accounts?

It may be difficult to see the cause from just reading the few reports you receive from the user, but a simple logical, and step by step examination of the system could help reveal how the issue happened, and if it was a case of the system being used in a manner that was unplanned by the software vendor, it may indicate a fault in the business rules, or lack of training for the users of the system.  Whatever the case, the team is now on its way to finding where this issue occurred.  Where would you test next?

Wednesday, September 21, 2011

Pay Freeze, slightly melted, a random bug? Maybe.

Every now and then I read about a problem in a software system that makes the news.   I look at the article and read what is described as the problem, and I often wonder, how this supposed flaw got into the system.  In my experience it can be easy to fault the software for an error.  There have certainly been enough cases of odd failures for the general public to believe them, but is it really the software?

This week I heard about the story from Staunton, Virginia.  Apparently the school board had frozen pay for all of its employees for some period of time, and as the article stated, the glitch went uncaught by a number of employees who spot checked this up until a news station requested records for salaries under the freedom of information act.  This is when the discrepancy was apparently noticed.  Now this glitch appears like something of a scandal.  The political black eye alone could be enough to make anyone nervous about the 'quality' of the application in question.

What concerns me though is that this glitch is being described as completely random.  First, do we really understand what it means when something is truly random?  According to Dictionary.com, random has four customary definitions.  The first means 'proceeding, made, or occurring without definite aim, reason, or pattern.  The second is its use in statistics, specifically the concept of a process of selection whereby each item of a set has an equal likelihood of being selected. The third definition applies to physical trades, where a part, parcel, or piece of land or item may appear non uniformly shaped.  The last one is an informal use implying that it was an occurrence that was completely unexpected, or unpredictable.


Let's take a moment and consider the story for a moment.  The first definition implies that there is no rhyme or reason, no discernible pattern to something which may make it random.  Is that the case here?  Reading further I notice the following:
" the pay increase malfunction was random and included three teachers at Bessie Weller Elementary School, four at McSwain Elementary, four at Ware Elementary and a speech teacher and a secondary special education teacher."
Several of these teachers had one thing in common, they attended one of three elementary schools nearby.  Wait does that mean what I think it means, could this be the beginning of an actual pattern emerging, enough to discount the perceived randomness?  It could be, but as testers in this situation, our job is to determine the nature of the fault, not just give our 'best guesses'.  We know a fault happened, therefore we must find a way to duplicate it.  If we continued on this analysis, we'd likely have a couple of test ideas to begin testing, we'd look at the data for all of the affected persons and see just what is it that happened.  Is the over payment of salaries here the problem, or is it a side effect of some other hidden flaw that just became visible due to some quality of the instance that we are examining?   Fortunately, I did a bit more research and found another article on this on MSNBC's site.  Now I will note that MSNBC's article is dated the sixteenth of September, and the other article earlier on the Second day of September, however, as I read I find another nugget that seems to confirm my suspicion.

"All the affected teachers had previously worked at Dixon Elementary School and were reassigned to other schools after Dixon closed two years ago."

So it appears that this bug affected teachers that had all been assigned to a school, that closed two years ago. (No doubt around the time of the glitch actually occurring.)  Would you call this random?  No I see a pattern, so it doesn't hold on the first definition.  The Second definition doesn't hold up to the story at this point either, as given a sampling so large, would you really expect to find just a handful of salaries that are wrong?  I don't buy that either.  The third definition doesn't apply in this context, which leaves us with the remaining informal definition: simply that it was odd or unpredictable 

This fact I do not doubt, no one predicted this to happen.  Now I'm not writing this to criticize the vendor or the county in question where this happened.  That's not the point of this article.  Instead, my hope is to make you think.  As a tester, developer, user, consumer of computing appliances, how often do we encounter behavior that surprises us?  How often do we not only get surprised but feel the event to be unpredictable, with no reason it should be happening?

I imagine this happens more than we might like to admit.  How many times do we sit at our computers, doing something normal.  We're checking our email in our client of choice, we have had no problems with our service and expect to get a no messages found if the service has none waiting for us.  We hit the send/receive button, and wait gleefully hoping to find/not find email.  Then we get a message that it was unable to connect to the server.   That catches us by surprise, maybe we think its an aberration, so we click the button again.

That second click does what?  It allows us to check to see if it was a hiccup, a momentary failure, or perhaps a sign of a long term issue.  I've had this happen from time to time on web pages I may visit frequently.  A forum for a football team may load very fast during the week, but on game day as people are checking up on their team, it slows to a crawl, and a dependency like a style sheet, or images fails to download due to the sudden hit to bandwidth serving the multitude of requests at one time.  It might even take minutes before you get that white page with some structure, and no formatting.  Do we immediately think, wow that's random, this forum is really bugged?  But I know from experience, this isn't a fault of the software itself, at least as far as I can tell, but instead it is a function of a high load on a system that may not be able to keep up with a sudden increase in demand.

As testers, simply finding and reporting bugs is wholly insufficient to communicate to the developer the nature and scope of the fault we've encountered.   In the case of the forum software, a subsequent refresh might fix the page, and it may load fine for several hours thereafter, unable to have the issue reproduced.  Whatever the issue is, we must dig, and see if we can prune down the steps that we followed.  We can try to see if the bug happens if we hit another location, try a different path through the software, or perhaps try a different role or persona.  The point here is it is our job as testers to imagine how this bug could have occurred.  What would your tester instincts tell you to go to prove and find this error so it could be fixed?  Do you have the answer?

Hold that thought, because I am going to revisit this question later in the week.  For now, just remember that just because we can't see the pattern for a bug, doesn't mean there isn't one, and as testers in particular, our use of language should be careful so as to not mislead the public, our developers, our clients, or our managers.

Tuesday, September 20, 2011

Diary of a Soccer Coach: Week 3 and First Game!

I'm a bit behind on blogging due to duties last week, but I'll catch up by throwing the third week of practice alongside the first game.   In our league the third week of practice heralds two things, first the last practice before our first game, and the arrival of our team rosters and uniforms.  On this particular day, the 'head coach' of the league, who has been helping out with our Kindergartners had to distribute the uniforms to all the different divisions.  This left me alone to do a lot of work with the kids on my own.

This worked out fine, and as I always try to keep the kids moving it worked out great.  The Third practice is where we honed in on basic shooting skills.  For most introductory soccer players, the more advanced steps are not always easy to pass on.  At this practice I focused in on keeping their eye on the ball and following through as they shot.   Also, as with most practices I got and kept them moving as much as possible.

I started by having them stand next to the ball and shoot it stationary.  After each player had tried this a few times, I had them try shooting the ball by first running up on the ball and then kicking it into the goal.  Afterwards, I made it more difficult by having the players dribble the ball and then kick it into the goal.

On many development projects I've seen a similar step by step building up to completion.  A feature might start out very simplistic, or it may seem that way so we start by taking our first shot at it, just as my players might in their third practice.   Sometimes we may not understand some of the nuance to a requirement.  It may appear simple, just like striking that ball, but there are intricacies and un revealed flavoring that needs added for the code to really pull off what is intended.  So as a team maybe you work up to these features, adding a little more speed, a bit more control, and higher accuracy in its calculations.

I've found similar patterns in testing.  The first time through, you may just be poking around in an exploration of the application under test.   You may not have a full grasp of the features, how to activate or use them,  or the intent, but you build a bit of confidence and then take another test run at the software.  Then you might discover that this type of software is documented to have a particular susceptibility to one kind of fault, and begin tailoring your exploratory testing to hit those weaknesses.


The first game of a soccer season is always exciting.  Its the first time the kids are in their new uniforms, and you just never know how much the kids have absorbed from the limited practices you've had thus far.  Each year is a little bit different. One year, one team may have a very good grasp of the game and create a lot of goals in that first game.  Others might find it difficult to juggle defending the approaching ball, redirecting it to the goal they are attacking, or they may even get a little winded as they aren't used to moving so much at one time.

The first year I coached, an older coach told me, "You'll see the most improvement between the Second and Third games." I wasn't so sure how to take that, but later I realized what he meant.  Suffice it to say, many kids may not listen early in the practice.  Until they see how they can apply it in a game situation, they just may not realize the advice you are giving them.  I've seen this happen on development teams too.  A tester might make a suggestion about how to improve a process or function within the application, and might be ignored, because its simply not their job, or because the developer is too much ' in the zone' to stop and see what is being said.  There might even be, as is common in our first game of soccer, a lot of stops and starts as you build to a sustainable pace for development.

Bottom line though, remember it's just the first game.  A lot can change over the course of time on a project.  Change is inevitable in many projects, and how we handle and respond to it sets a strong light on our teams and how we cope with that change.

Monday, September 12, 2011

Nature Vs Nurture: Do we train the tester out of our Kids?

While working through a serious of tests on our automation framework today, a thought came to my mind.  Do we train our kids to lose the very attributes that could make them a great tester?  Do we risk killing their curiosity, or train them to accept what is told, because that's how our schools are run?  Psychologists and scientists have argued nature versus nurture for a long time now, but I never really framed it in this way before.

We have two young children, and I've had the privilege of watching my first born grow into a smart young boy.  Now our almost two year old daughter is starting to pass 'little milestones' hand over fist.  I remarked to my wife today that she looked like she had grown three inches since breakfast.   Then later this evening while putting her to bed, my eyes did another visual inspection of her height; this time against something I knew was constant:  The height of the bed rail for her baby crib.

Earlier this week, we had to take down the pack and play yard because she had discovered a way to easily climb out of it.  Plus we knew she had grown to a size that had become too big for it anyways.  So we knew she was getting bigger, growing as all kids inevitably do.  Then tonight was the kicker, I saw her gymnast style on an uneven parallel bars nearly pick herself up to climb over her crib's bed rail.  Then switching to a new tactic, she climbed up one of the spindles of the crib, one side of one foot on one side, and the other on the opposite.   She was climbing as I've imagined or seen climbers on TV working an ascent on many a wall faces of a mountain, before slinging her leg over the rail, just as I reached out and caught her in shock and awe of all I have seen.

I love my little girl, she's been a blessing even when she was born and admitted to the Neo-natal Intensive Care Unit (NICU), but she continues to amaze me.  Born a couple of weeks early, you'd never know it to look at her now.  She's a runner, a climber, a ball player, and a wrestler.  Not to mention she sometimes likes to practice tackling her much bigger brother from behind.  She's my little explorer, my future Venture Girl, and I wouldn't trade that for the world.  Both of my children are special, and highly intelligent, but lately as I grow as a tester and parent to her and to him, my mind ponders how best to raise her.

The natural inclination of a parent is to want to protect, and keep their little ones safe from as many dangers as possible.  Yet we as parents know the perception of our provided security is is not complete, as much as we may want, we cannot protect them from every possible hurt or injury.  Just as testers realize that many of the security features we test, provide only a facade of protection, in this current day and age.

The process of rearing children has me pondering this fact.  Parents set up rules for their kids behavior and activities in and around their home.  Some of these rules may seem unnecessary or excessive at times, but they provide a structure, a framework around which they can begin their learning experience.  Then later, if you follow the public model, they go off to school, or other extra curricular activities that provide additional rules, and layers of precepts that try to mold the child into a particular form.

Sometimes I wonder, just what are we trying to achieve?  Are we stifling creativity by requiring them to paint within the lines?  Are we killing their spirit by requiring them to sit like mindless zombie automatons.  As I've watched my children in recent days I'm amazed at how many times they look fresh at some toy or item in our house, and find another unique way to interact or play with it.  Many times this is fine and worth encouraging, other times it could be something they are doing is unsafe.  Our urge is to jump, rescue, and shield them from this dangerous situation, but are we doing more harm than good?

I wonder.  More with our younger child than our oldest, I hope to hone and focus that curiosity.  I'm very cautious about how I deal with her when in the course of exploring she is doing something that could bring harm to her.   It's like walking a tight rope though.  I want to encourage the curiosity, embrace the questions, and the goofy ideas that may come.  I want to give her the freedom to learn without constraining her to the factory school of thought.

We opted to keep our son home for his first year.  Everything we'd read about child psychology suggested that boys may do better if not thrown into the structured environment of elementary school.  Three years later we are still home schooling.  What started off as an experiment to provide him room to grow paid high dividends.  He has grown as he has learned, and it amazes me how much he can learn in a short span of time. Seeing his progress makes me sad at times, because I know that we may cover as much if not more than what a single day of school might cover, and yet he absorbs ever more. Heck this kid in second grade was upset that we hadn't taught him multiplication tables yet.

Our youngest isn't yet of schooling age, but I already see her reaching out and testing the boundaries the environment provides.  Some of them are provided by us her parents, and some of them are a structure of nature and design of the furniture, or artifacts in our home.  Yet I'm more cognizant of the decisions we make to correct, or alert her to dangers in her environment.  If you're reading this entry and pondering the same things, I'm curious as to your perspective.  Does our rule, and school structure result in breeding out the curiosity, the intellectual spark that may draw a child to be a creator or investigator of the world around them?

If like me, you have thought about this, and come to the conclusion that these factors do affect the development of the mind of a potential tester.  Do they affect them for the worse, or the better?  How can we improve them to harness that curiosity and prepare people to test the applications and services of tomorrow?  I don't have the answer to these questions, but I may continue to ponder them for some time.

Friday, September 9, 2011

Off on the trail of testing, but wait, I forgot this one thing

How many times in life, do we surrender to the habitual nature of our human psyche?  Do we capitulate and allow what seems to be an established routine, repetitive task, and in our minds we've got it down to an art, so why just flip a button, and cruise on through each step of the process, without giving much time to pause between steps to evaluate where we are going?

News flash, tester or not, we all do this! In fact, I did it twice today, without even realizing it.  Oh I wasn't 'testing' software at the time, but I allowed my inferred conviction of my own understanding of the early day's chores to not only lull me into a state of numbness, but introduced my own sort of performance speed bump that wasted hours of my time.

What started out today, as an early morning jaunt to accomplish to simple chore, turned into an exercise to remind me why falling into the assumption and autopilot trap are so dangerous.  It started simply enough, just two chores and then I'd be home for the rest of the day, became an afternoon of back tracking, acknowledging a flaw in my own understanding, correcting it, and then executing essentially the same process, but in a slightly varied way.   It started with a trip to the court house.

I was rather pleased with myself, because I thought I could complete two tasks in one visit.  I might have even boasted internally, that I was a genius to take care of these two tasks at the same time.  The first task, was to renew my license registration, at the Sherrif's office to bring my license plate current, and get the sticker to indicate to any law enforcement officer that might be checking my progress, that yes, I had paid my taxes and fees, and was not violating the registration laws for operating a vehicle in our state.

The second task, is one that maybe no one else will have experienced, but it required a trip to the County Clerk's office.  You see, as a member of our community at larger, I stepped up back in 2006 to serve the community as a Poll worker for a number of different election cycles within our county.  I do this as a service, because to be honest, the rate they pay for thirteen hours of open poll service, almost two additional hours of setup and tear down, is not a pay rate I'd accept for any of the professional work I do.   However, as a concerned member of my community, an Eagle Scout, and a person of faith, I value the integrity of elections, and believe that doing so is an important part in ensuring our elections are fair.   In order to participate after being selected, I have to fill out, sign, and return a form to the clerk's office. It was this task that I desired to complete today, because I had delayed sending it in earlier, due to uncertainty with my current job situation, and did not want to commit if I felt in good conscience that I would not be able to serve.

Those were the first two tasks of the day.  I stepped out the door with the letter in hand, and my registration as well, and drove to the court house.  I was pleased because I found a parking meter open within an easy walk, exited my car, added some time to the meter, and off I went, and that's when the first error dawned on me.  I had my insurance statement, the registration, and the signed form for the Clerk, but a nagging thing in the back of mind then came into focus.  'Does the Sheriff's office take check cards, for payment?'  Why I didn't ask this question before I left for the court house is unknown, but it proved to be the pivotal question, because they in fact did not take it.  I asked the Sheriff's Clerks whether they accepted it as a form of payment, knowing already in my mind that the answer was probably no, and received the confirmation that, no, they only accepted, cash, check, or potentially a money order.  I didn't have any of those options on my person, and truthfully I don't usually carry a check book with me unless I know I need it.

Now after reflecting I realize I could have potentially, walked over to the post office, paid the fee for a money order and then did it that way, but I'd have no record, no good one in my register to verify when it was paid.  So the first task of the day, I struck out.   I went ahead down to the County Clerk's office, handed the form to one of the workers, asked if it was yes, (it was), and was happy that I had at least one task done.   I would have to return home, find our only check book and return to complete the initial first part of the plan.

Have you as a tester ever started working through a problem, you jumped to some assumptions, maybe you feel they are good ideas about how it in theory should work in your own mind's eye, and proceed to work through the process of massaging through the interface.  Ever stop at some point to realize, you know, I wonder what would happen if I had done something differently that previous step, only to find that hitting the back button on your browser really isn't a good way to check this new test idea?  It happens to the best of us.  Sometimes a test that would make more sense to apply first, isn't, and has to be run again at the start of another iteration through the process.  That can seem frustrating, but it is part of the learning experience we go through as testers.


Well, this did not just happen to me once, it happened twice.  See I was also looking for information about a repair on my car.  I traveled to the mechanic's garage I have grown to trust, and proceeded to inquire about an estimate on how they might do it, how long it would take, and at what cost.   Surprisingly, they told me they couldn't do this kind of repair.  They had an idea of how the repair could be done, but there was something particular about my engine that required something that they lacked, something that did not give them confidence they could complete the repair in a timely fashion.

What a bummer that was.  However, I countered with a question.  "Okay, if you can't perform the repair, as I understand it, then is there another shop who you might recommend to perform this fix?  I know its not a critical issue on my car, but I would like to get this fixed just as soon as humanly possible."   They gave me a name of another shop, and I then asked, if they thought simply calling them would be enough to get an estimate.  They didn't really know, but suggested that maybe that would work, and it would save myself some money on gas driving out there unnecessarily.  I liked that idea, and returned home to eat lunch with my family.

After lunch, I began looking for the phone number of the shop, first in a few paper phone books, then turned to google, and superpages, but could not find it.  I found other shops, but not this one.  So later this afternoon, I hopped in my car, and drove out to where the shop was (having received directions earlier).  In hindsight, I wish I had pressed for a contact number before I left the first shop, but I honestly  didn't believe that finding it would be that much of a hassle.  That was my mistake, and yet another lesson learned.  

Ever start testing a piece of software, and then at some point just  stop because a question comes to the forefront, that you almost feel, man I wish I had asked that before I started?  Sure, it happens, maybe more often than we like.  We are creatures that learn and grow, and as Testers, we are many times going to develop ruts and habits.  Try to break those habits from time to time, maybe you'll discover a new way to flex the software, to bend and contort it to find a brand new class of defects.

Ultimately, we must try our best to avoid jumping to assumptions.  Never assume you already know the answer, if you've never even asked the question.  Never assume that the developer obviously must have done something a particular way if you've never had a conversation about it, and never assume that you've brought and used the right tool for a type of test.   Now this does not mean that we can never make assumptions, if we do, we need to realize that our testing is based on certain assumptions, maybe its a platform they are running on, or a particular style of device, that may be an educated enough of a guess to allow us to proceed, but we should remember that they are fallible assumptions, and present that as part of our test story when the time comes.

However, today's experience reminds me of something from earlier in my life.  It's funny in a way, since college, my first rule of life has always been to avoid making assumptions.  This was even before I considered, or even had a clue at all what it meant to test anything.   Western's Rule #1: "Assume nothing, for when you assume, you are usually wrong!"  At least that's how I wrote it as a freshman in college.  Today I'd transform that rule to read more like this.  "Make no assumption absent evidence, for assumptions are often based on illusions, that when that illusion is removed or proven false this can result in a great embarrassment to you in life."   Honestly, it isn't that our assumptions are wrong, or that they might be based on inaccurate intelligence of the situation in our projects, it's the false confidence, it can breed, and the blindness it can bestow that limits our ability to test accurately and effectively that are the risk. It's the shock and awe that an illusion the team may have held as true, once removed can cloud judgment on the value in the product.

To conclude, monitor yourself as you test from day to day.  Check to see if you feel yourself itching to turn on the autopilot.  Recognize it, take a step back, and find another way forward.  Use the pomodoro technique (Thank you Markus Gärtner), or some other focusing/de-focusing heuristic.  Be skeptical of even your own best ideas relating to testing, and always strive for one more thing to learn as you flex your testing muscles.  Try testing with a partner (Pair testing), so that you can keep each other from falling into a rut, or team with a developer and show him what you are doing to test the software.  Whatever it is you use to affect how you keep from falling into an zombie like coma while testing, do it as often as necessary, you'll thank yourself later.

Thursday, September 8, 2011

Oh that Bug? Yeah it happens all the time, don't worry about it.

Tell me if you've heard this one before.   A User calls into a help desk saying, hey when I go to do X with my software, instead of doing X, something else totally unexpected happens?   And at some time in the past a root cause analysis is done on this, and they discover what has happened.  The user has done something to the software, perhaps they've configured some optional setting that isn't a part of the normal settings, or maybe an incompatibility with another piece of hardware or software results in it being unable to perform the problem.

Normally you would expect the team to find, and smash this bug, and fix the defect right? Well what if that wasn't what they wanted?  Or what if it was a feature they wanted to leave as it was.  Maybe its a link to some documentation that moved on a website.  It might be easy to fix, but getting a patch might be more expensive than simply telling the user another way to get that data?  This situation comes to mind as I viewed today's Wizard of Id Comic:


If you've been on any software team long enough, odds are you'll eventually come across a defect or bug that you see as a potential loss of value in the product.  After discussion with the team, that bug may be marked as deferred, or left as designed by the developer, and not handled as it is slowly forgotten in the code base.   There are times when cosmetic changes, a font size, a color, may not make much difference to the overall user experience, but what if this deferred bug turns out to be something more, more insidious?  What if it could be the bug that begins to build to a buffer overflow vulnerability that could result in your system being compromised and hacked?

As testers, its important that we maintain objectivity as we are testing.  Sometimes, the development team may not all see eye to eye on what is of value to change for the customer, but we must be every cautious when a somewhat mundane bug is deferred.  Deferred bugs may never get fixed, and as they get left in their unfixed state.  Sometimes this may be fine, and something we have to accept as we strive to produce the most value for our clients, but we must always be careful that the thing we are putting off could be something serious that could put our customer, our client data, or even our own companies at serious risk.

Wednesday, September 7, 2011

Diary of a Soccer Coach: Week 2 - Inter-team Communication, Noise, and Dealing with the Unexpected

Even before I woke up the day of our first Soccer practice I found myself glued to the weather channel.   After seeing the massive thunderstorm and rainfall affecting so many College Football games during the past weekend, and knowing that the remnants of Tropical Storm Lee were predicted to stall out and take time to clear out I was growing in concern.   Some of the weather maps predicted as many as five inches or more of rain locally.   Flash Flood Watches had been issued by the National Weather Service, and there appeared a high probability of rain in the forecast for our game.

Now normally, a little rainfall would not have introduced a bit of concern about whether to have our Soccer practice or not.  Typically the only thing that has ever affected that was thunder storms, or extreme bitter wind chill conditions.  In truth only once in the three previous years I have coached has any of these conditions even been approached.   So naturally I was a little concerned here.   The place where we practice is in a low lying area, that lies in a flood plain area that has flooded in recent memory.  Because of this it was important to know what the weather conditions might be for the weeks practice.

As it happened though, by mid day the rain had mostly moved on, and though still overcast, the rain was gone, and it was modestly cooler, although humidity was still high for our practice.  In software teams, how often do we plan for contingencies like these that could disrupt development, or delay deployment?  Sometimes the unexpected may happen.  A freak ice storm could knock out power to your data center.  A Nor'easter could barrel up the coast and cause localized flooding around the facility you were supposed to test remotely against.   What if the shipment carrying a key part for your data center crashes forcing you to wait an additional two weeks for a customized component to be fabricated?

These are natural impediments that could affect your development process.  As a Tester, a network issue could deprive you of the ability to test on your virtual laboratory.  It could result in a mistaken deployment that results in a dirty configuration unlike the clean environment you are expecting and then it can cause problems as you start encountering bugs, and half to track them down.  There are perhaps a hundred or more situations that could result in what I call a noise condition within the team.  Some of them are internal, within the mind of the tester or team member, some of them are virtual, on the box or serve where testing is to occur, and some could be physical or natural noise that can interfere with your ability to test effectively.

Some of these impediments can be considered in your deployment process, and perhaps avoided or at least minimize the effect it has upon your testing.  However even the most rigorously documented process is only as good as the people implementing it.  As we are human beings, and prone to make errors, you can never avoid all of these.   A missed deployment to a test environment could indicate a whole or missed script in the deployment process.  Why did this script get missed?  The manager may ask this question, but I find the same thing can happen in the soccer field as well.

For the second week of Soccer, I like to hone in on two key skills.  The first is communication.  Whether the players realize it or not, learning to talk to their team mates on the field make a big difference in how they will play down the line.   For Soccer the simplest form of conversation is the pass.  A simple plant of the off foot toward the targeted team mate, and then following through with the passing foot, ankle locked to connect with the center of the ball right about the inside of the ball of the foot.  If done right, the ball will travel straight and follow the same line of travel that your foot was pointing.   I demonstrate this once or twice to our players, who I've saved the trouble of having to find a team mate to pass to, by pairing them up, and have them start with this basic pass.

So I watch the players as they work on their first few passes.   Some kids pick this up very quickly, some quickly get frustrated.  Younger, smaller kids may not be able to kick the ball as far or hard, or might be more focused on kicking the ball, than the technique of the inside pass.   I watch for moments like these, and let the player try a few times before stepping into correct them.  Sometimes they figure it out by trial and error, but sometimes they keep doing it the same incorrect way, and I can see it could cause a bad habit to form.

At this point as the coach, I step in.  I remind the kids to plant their foot toe pointing towards their team mate, to lock the ankle with their toe slightly raised towards their shin and connect with a straight swing of their foot connecting just above the mid point of the ball with the ball of their foot.    A couple more passes, and a little more encouragement may be required.  Keep your eye on the ball (once they get the skill down this may not be as important, but early in the drill process a it may help if the player sees as the perform the task.)  After a few more times if one or another player are having difficulty, then I may step in and demonstrate again, showing what to do, and then emphasizing the difference in how I performed the pass versus how they are doing it.  

One of the common early problems I notice is a player trying to kick the ball with the toe of their shoe.   Kids seem to think they can get more power passing this way, but it really leads to an unpredictable movement of the ball, especially for the younger inexperienced player.  This isn't something you want the kids to do early in their development.  The toe is a very small area on the foot, and many shoes are 'V' or 'U' shaped meaning that if you miss the exact center of the ball and shoe you may hit it more to the right or left and the ball will go out in the corresponding direction. I may even have to demonstrate how wrong this is, so the kids can see the difference, but after doing so I get them doing the passing correctly, back and forth, and may float between pairs, repeating this process as need be.  

As more of the players seem to get a hang of this simple pass, I will then offer them the option to try the same style of pass with their normal off foot (typically the left), and then give them a demonstration of a more advanced pass.  This time using the outside of the foot just behind the joint of the littlest toe and driving the foot to the side, you can actually pass to the side.  All the while I continue stressing, getting the team mates attention, pointing the foot in the proper direction and following through on the kick.

This may seem like a very repetitive and boring process, and for some of the older kids it might.   It doesn't take but a few minutes before I begin to see the first side effects of noise on the practice field.  There are other things to get the kids attention.  Someone brought their dog with them, a butterfly might fly onto the field drawing attention from the drill.  Kids on another field might be doing a slightly different drill and that catches the kids attention.  We have the same kinds of noise in our software teams as we communicate.

A HVAC unit could be louder than normal, a team member may be mulling over some problem they've encountered as we're describing a test we just ran, and the flaw we think it uncovered.  Whatever the noise may be, that noise can impede our ability to communicate effectively the point we are trying to make.  So how can we avoid noise?  Sometimes it may involve asking another team, that is goofing off in the cube next to you, to keep it down as their voices are starting to carry.  Maybe it involves interrupting another conversation that has your team mates attention, when what you need to say is more vital.  Sometimes we have to wait for the noise to pass, such as when a train goes by blaring its horn and drowning out almost everything else you might hear.  Assuring we can communicate our message is key in any context.

Now these example are good if it is an audible noise, what if it is an internal noise?  This is where noticing nonverbal cues is important.  If your team mate is listening, but focused on reading something on a wall, or their computer screen, it may indicate their attention or focus is elsewhere, that could be internal noise.  Another example, is if someone has a habit of doing something with their hands.  It could be something as simple as scratching the back of their hand, playing with a toy of some kind, or twirling of a pen in their fingers.  All of these are nonverbal cues that your team mate try as they might, may not be committed to the conversation.

So how can we avoid these things?  In soccer, when passing I encourage my player to start the passing conversation by calling their team mates name.   Then as the ability to pass becomes second nature I instruct them to keep their eyes ahead of them towards where they are passing the ball.    The other player, I instruct to keep their eye looking back towards the ball as often as they can while moving around the field, so they are prepared to receive and complete that transmission of the ball across the grass of the field to their feet.   Ever wonder why eye contact is often stressed in verbal communication situations?  If our eyes are turned away from the team mate who is trying to communicate with us, then also our ears may be turned away and reduce the optimal ability to hear what they are saying.   That is not to say that we should stare a hole into the head of the team mate we are trying to communicate with, but we should make enough eye contact to show that we value what they have to say.

What do you do when your comrade's attention is wandering, or they are busy multitasking and can't seem to keep up with the conversation?  Ever been in a meeting, in person or virtual were someone is being told something and then the speaker follows with what should be a typical yes response question?  "Does that make sense, John?"  The initial reaction may be for the person to say Yes, but what if their attention had drifted, they might realize they didn't fully absorb the importance of what was being translated to them, and the cue, is John's chance to say, "No, I was having trouble following what you are saying, can you please repeat that?"  During any conversation we can show our continued attention, not just by eye contact by other nonverbal and verbal cues.  Nodding of our head, a quiet yeah, or aha can indicate we are following the chain of the conversation well.


There is one more nonverbal cue I look for when talking with a team mate.  That's when their hands come up to their mouth.  You've probably seen someone at some point do this.  You mention something, and they may begin to cover their mouth with one or more fingers, indicating subconsciously that they are trying to parse together a question or response to what is said, but those fingers indicate that a lot of thinking is going on.  This is a telltale stop sign.  If you see a team mate do this, then it is highly likely that they have a different point of view, or something to contribute to the conversation.  There are other mannerisms that can indicate this desire to contribute back to a conversation.  Someone looks like they are trying to reach out and give you a subtle stop sign, is another.

There are so many things we may communicate through nonverbal cues.  How often do we ignore these cues and keep on rambling through our point, wanting to reach its conclusion without allowing our colleagues to collaborate and fully commit to the conversation?  Regardless of your place on the team, be it a tester, developer, manager, or team player.  Communication is critical.  Without it, the noise may increase, and the ball we are trying to pass to our team mate may end up in the wrong cue, or intercepted by the competition and then we are back tracking trying to recover, and catch back up to what we've lost.

So as you go back to your work spaces, consider these thoughts: Where in your environment does audible noise interfere with communication?  What can you do to work around it?  What can you do to react better to the nonverbal cues of your colleagues?  How can you make sure they are able to contribute to the conversation, and thus collaborate towards a better end?

Tuesday, August 30, 2011

Diary of a Soccer Coach: Week 1 - Getting the Players Attention

As I enter my fourth season as a Soccer coach, I can't help but reflect back on the previous three years.  There have been a lot of kids I've had the opportunity to work with.  The prior three years I coached the 'instructional division' as it was first called to me.  In essence I've had the honor of coaching up kids ranging from Pre-K  through Kindergarten age.   I've coached the same level for three years now, and again this year I am stepping up to do the same.

In some ways its hard to be a coach to the youngest in the league.  Some of them are already quite athletic, but lacking in coordination, some are squeamish about falling down, or running into someone else.   Some don't quite know what to expect from this their first athletic endeavor.   It isn't always easy on the coach either.  Sometimes we just barely get a season to get to know the kids before they begin to bloom and are ready to play up to the next level.  Some only get the one year, then are moved up with the other kids their age.   In essence each season is like starting over fresh.  There are always a few faces you remember from the previous years, and you may recognize the growing boys and girls practicing on a field not too far from your own teams, but your focus is now on the next group.

For companies like my current employer, where professionals might work on multiple projects, or bounce  between roles and wear different hats within or between teams as the needs become evident, to a team leader, it can seem quite a challenge to start from scratch with a team.  It can also be a challenge to get the new people involved and fully engaged and invested in the project.  

For the first session of the Soccer season as with any team, it is imperative to set the ground right.   The first practice always starts with a quick introduction and brief overview of the most basic rules of soccer.  Then we quickly transition into a couple of warm up exercises.  They aren't typically long exercises, but are designed to get the players moving, loosened up, and in the mind of being at practice.  Warm-up exercises could be great for team building, or for helping to transition a new team member into being part of the esprit de corps.    Having transitioned to several projects in my career, I feel that many of these warm up exercises did a lot to help smooth my transition into the team.

Of course, practice does not end with these warm-ups, nor should it be the end of the team building process either.  As Michael Larsen (@MKLTesthead) so eloquently put in describing the stages of team development in his emerging topics talk on teams and the EDGE method employed by the Boy Scouts of America - The team is still forming, here, it hasn't even begun to play soccer, nor has the new team or hire really progressed to a state of being fully in tune with the team's software development process.

So the next step of practice, is the first of many drills.  For soccer in the introductory division, the most basic of drills typically involves dribbling, around a pair or square of cones, emphasizing technique for controlling the motion, the tempo of the dribble.  For software teams, tempo, and pace are something that teams struggle to achieve, and hold once they have it.  The same is true for Soccer, and our instructional division is no different. The secret you see to these kids, and I'm betting many other youth organizations, is to keep the meeting or practice as active as possible.   

So we run them through a drill for five, maybe ten minutes, and then may start another.  This gets the players used to moving around, and focusing on one type of task or another.  However, at some point the kids need a break, so we give them a bit of time to run to the restroom, and get a drink before having our mid practice huddle.  More on these huddles in a later entry, but suffice it to say, the kids almost without fail come back refreshed, and ready to do more, but it is still the First practice, and i its important to temper our expectations with that in mind.  

With software teams, the same is true.  Each member needs down time to assimilate lessons learned, to rest from exertion of the mind, and for testers, to de-focus or refocus on whatever the next task may be.  Without this crucial down time, tasking begins to run right into the other so quickly that one may begin to lose sight of where one testing objective ends and the next begins.   It also presents a danger, because as creatures of habit establishing routines that are unhealthy will inadvertently result in inattention blindness, and as tempo and feel for how the project flows is learned, the risk increases that things move at a certain pace simply because they've always moved at that pace, whether the process or project are really at a achieving and sustainin velocity or not.

For my players in their first practice of the season, I see them in the scrimmage we typically run at the end of each practice.  They chase the ball without any rhyme or reason, with out any strategy or objectivity.  They believe the goal is to get the ball, and that to do that they must run to the ball.  There's just one problem.  someone else has that ball, and is accelerating in a different direction. so each player changes their angle to try and chase the dribbler down often from behind.  

At times it can look like  a swarm of honey bees, buzzing to one corner of the field, then changing course and quickly buzzing to another all around and trying to catch the ball each time, and inevitably these kids will trip, fall, or bump into another.   We haven't yet taught these kids how to move laterally, or even backwards when necessary, nor have we shown them the strategy of picking a place between where the ball might go to cut it off, rather than trying to chase it as if chained to the player with the ball like a rail car.  Inevitably the first practice always looks like this.  The older kids may not run into this scenario, as many have years of soccer under them by the time the season has started again, but for these new boots to the field of play, or to their team in the software world, they're a blank slate practically and in need of mentoring and guidance.  

The question you have to ask, is how can I influence them for the better, and help them see their role as more than just chasing the ball, as chasing this bug or that bug, when they may be leaving square feet of the field uncovered that could give them an advantage?   For me, it is important to remember that this is the beginning of a long journey we take together, and for better or worse we are here as part of a team striving to create that which our client needs.  However, even us experienced software professionals can occasionally trip over someone else's toes and fall flat if we aren't careful.  So trod carefully in those first days on a team, until you have a good picture of the terrain you must climb.