Monday, February 26, 2007

Testing With Sun Tzu - Chapter 3

We come to Chapter 3 Attack By Stratagem, I like that translation.  Maybe one day my Chinese will get good enough so I can read the original, but that’s a long time coming, I have enough trouble reading printed characters never mind calligraphy.  I may wander my thoughts a bit here, my apologies, maybe I’ll clean it up later.  While QA doesn't really need to attack, its usually good diplomacy to not go on the offensive in a project, remember War is the last resort to Diplomacy so always try to work things out before going on the offensive.

First in this chapter comes some very good advice “the best thing of all is to take the enemy's country whole and intact; to shatter and destroy it is not so good.”  So much for a scorched earth policy.  But the important thing is to take from the enemy what was theirs and subsist on it.  Not that Development should ever be considered the enemy, but going to Dev-Land and seeing their resources, and what could be useful in testing, is a good strategy.  In some respects consider the area of a bug that has been fixed has been left alone, we are reclaiming or recycling what the Developer left and used to do his work.  Reusing tools is not only good policy but is good for the environment too!  Just as “it is better to recapture an army entire than to destroy it” you do not want to waste resources of any kind, including intellectual resources, make the Developers you work with your friends, get them on your side and in your army and they will help you against the Bug Enemy who comes to frustrate your efforts to complete your task.

I would like to point out, in this section is one of the lines Bruce Lee utters in Return of the Dragon, “my style is fighting without fighting”, originally written here as “Hence to fight and conquer in all your battles is not supreme excellence; supreme excellence consists in breaking the enemy's resistance without fighting.”  Cool stuff.

Part of the thinking here is to deal with the enemy without engaging forces, in planning “the highest form of generalship is to balk the enemy's plans”.  This can be done early by marshaling your forces and preparing for as many contingencies as possible in the project.  In the footnote to this quote Ho Shih puts this very clearly:  "When the enemy has made a plan of attack against us, we must anticipate him by delivering our own attack first."  Don’t wait for the bugs to appear, anticipate them, prepare for them, plan for them and defeat them first.  Know which areas of code have been rewritten, touched, added, deleted and or modified and focus on them; when I have worked on code common to multiple platforms I focus on that area first, before the individual platforms, because I know the changes affect more areas.  If the code does not work properly on both, that is going to be evident very quickly, if there is a need to delve deeper that can be done individually as well but it will be a judgment call on what is more important, something that comes easier with experience.

To recap some in the original “Therefore the skillful leader subdues the enemy's troops without any fighting; he captures their cities without laying siege to them; he overthrows their kingdom without lengthy operations in the field.”  Do not directly engage the faults of a project, anticipate them, and do so in a way that is economical to you; do not have QA resources testing some area that will not work if it’s known, just to see how much is unaffected.  Do not “siege” bugs by using multiple people to try and approach the bug to see where it might be, and if there is a way to get more data on it (there may be cases you need to do it, but this should be a rarity IMO).  Try and find the issues quickly, simply and once documented move on to the next areas under test, using resources in one area and one area only causes delays the project may not have.  Attack with one or two resources, don't pour everything you have into the "siege", using Pairwise Testing works, but not the whole department.  It may be useful in some cases but not all.

Now this gets me to something new, in laying siege to “faults” there are resources, and these resources are finite (if not, I’d like to work for your company) so just as there is a strategy to use your own personal resources on a bug so to are there resources that need to be effective on a project.  Part of being a Manager, Lead or whatever titles the person in charge has means knowing how to allocate resources, hopefully effectively.  The numbers are Sun Tzu’s not mine, so take them with a grain of salt.
  • “It is the rule in war, if our forces are ten to the enemy's one, to surround him”.  If your project is small and you have the resources then do everything you can, attack the project from multiple points at once and test everything by overwhelming it; though I admit this is probably a rarity.
  • “..if five to one, to attack him…”  This is getting closer in a ratio of resources to project points, not as many people to work with, but still very manageable.
  • “…if twice as numerous, to divide our army into two…”  When dividing resources make sure to do it properly, in this respect one part of an army can meet the enemy head on, the other can be used for special tactics, so many focusing one group on Functional or Regression Testing and the other for specialized testing like Unit Tests, Automation, Stress or Load or whatever else needs to be done.
  • “…If equally matched, we can offer battle…”  This is probably the reality for many, where there is enough to get the job done, so plan it out and get it done, you won’t have much to gain by creative allocation of resources, stick with the plan you get from your team and what they can do, reprioritize only when necessary and make those judgment calls.
  • “…if quite unequal in every way, we can flee from him…”  Well you can’t really flee, unless you want to quit, but you may want to raise those red flags now on how late things will probably be by the time you are done.

Now there are also some ways to make sure your project can fail, I will only adjust these when necessary and most are pretty understandable as they are.
  • “By commanding the army to advance or to retreat, being ignorant of the fact that it cannot obey.  This is called hobbling the army.”  Don’t keep moving resources around to meet day to day issues unless you are set up for it, if you are then you have the planning necessary and you are not reacting to situations, you are dealing with them before they arrive.
  • “By attempting to govern an army in the same way as he administers a kingdom, being ignorant of the conditions which obtain in an army.  This causes restlessness in the soldier's minds.”  Don't overstress your resources either, setting impossible deadlines or work on your team, listen to them and know when the grumblings are real and not just a sound off of something else.  If you don't know the mood of your team, you are not in sync with them.
  • “By employing the officers of his army without discrimination”.  This is a warning to put the right person on the right job, match skills to the task at hand.
One last thing that is mentioned here and I can bring this to two words “Know Thyself”.  Finishing a task comes down to a couple of things;
  • “If you know the enemy and know yourself, you need not fear the result of a hundred battles.”  Know your abilities and what it may take to deal with the bugs you find and you will succeed.
  • “If you know yourself but not the enemy, for every victory gained you will also suffer a defeat.”  Knowing your abilities but not what it will take to determine what a bug is and you can not only waste time, but yourself, in trying to determine something without reward.  True there are learning opportunities but these should be done when a schedule allows, when you have 2 days left in a project and you need to learn Java to discern a problem in the application this is not the time to do this yourself.
  • “If you know neither the enemy nor yourself, you will succumb in every battle.”  If you are unsure of your abilities and what it takes to determine what the bug is this is what I call being over your head, ask for help or come clean with your manager on what you know or don’t know.  Don’t be the person to bring the project down, that will not earn you any friends.

I do like this quote here as well attributed to Chang Yu:  "Knowing the enemy enables you to take the offensive, knowing yourself enables you to stand on the Defensive... Attack is the secret of defense; defense is the planning of an attack."

Finally, 3 down!

Monday, February 5, 2007

Testing With Sun Tzu - Chapter 2

Now that you have enjoyed Chapter 1 – Laying Plans, we come to Chapter 2 – Waging War; which strangely is not really about war itself, but what it takes to do it.  I may make some allusions to certain current political situations, but if so and they offend you my apologies, I am just trying to draw parallels and any judgments made are my own.

As this part starts out there is a distinct drawing of men per chariot, this is done to give a method by which to structure the army, the structure was determined within Chapter 1.  What this gives is a method by which you know the breakdown, and how it fits into the framework that was determined early on.  In a project you have a strategy and a framework that will be what you work with; then you flesh it out with numbers and actual details, basically going from the general to the specific.  In writing out a general SWAG (simple wild assed guess) on how much time a certain component may take to test, to then determining the steps taken to do the work, and how much time each of those steps will take.  There is also a requirement that the soldiers must have enough provisions to carry them a thousand LI; a LI is generally 2.78 per mile today, so you have to not only make sure of your details but that you also have the stuff to get you there.  Sun Zi went into detail on what it takes to get an army somewhere, including expenditures on the home front, he was nothing if not detailed.

That stuff will vary by culture, whether its coffee, tea, Mountain Dew, Lucozade, chai or whatever Code Monkeys like these days.

Sun Zi also realized that a long term battle can cause equipment failures as well, “if victory is long in coming, then men's weapons will grow dull and their ardor will be damped.”  Just as in a project, the longer it goes on the more tiring it can be and oftentimes the more people will just want it to be over.  I’ve been on long projects, some extending immediately after release to a maintenance mode, right when you also need to be preparing for the next project, and this can be difficult.  Planned right it can go well, but again this is where you either plan properly and you can succeed or you plan badly and you fail, having the milestones in the project to know where you are going, and whether or not you are on your way to victory (a good release) or defeat (you’ll be spending the next few weeks working late nights and weekends).  To stay sharp and on focus with the project means making sure you know your own limits, as well as keep on top of anything that will push you off track, don’t rush through the project but don’t drag it on either, it’s a delicate balance that takes experience to realize and understand. 

 “Again, if the campaign is protracted, the resources of the State will not be equal to the strain.”  Here is one I am going to make a dangerous parallel on.  War is an exhaustion of resources, of all kinds, so you want to use them effectively.  In a project if there are to be Unit Tests and Automated Tests make them effective, not just to have them, but make sure you are going to get use out of the Tests not have them in your bag of tricks and use them as resume fodder.  If there is a GUI that needs tests get it done, no need for fancy stuff just because some new tool came out and it would look cool to know, unless doing that cool thing will also save you time on the project, if you get no efficiency from the work it may not be worth doing.  Now being American I can look at the current situation in Iraq, notwithstanding my own views, taking a look at the timeline there were definitely things that went wrong with planning there.  But just as important, as recent election results have shown, not only was short range planning off, and generated a larger mess than it should have been, but the long term planning in keeping the people who should be supporting this was also lacking.  People need to believe in the project and be on board with all of it, get buy-in, even from those who may not agree with you, the best way to look at a project and a plan is from many different sides, and then make a decision using all the information on hand.  My last comment for now on the whole Iraq situation is “There is no instance of a country having benefited from prolonged warfare.”

There is also a lot in this chapter about foraging in the enemy’s lands, using his equipment captured in battle to augment your own forces and rewarding your own forces with spoils of war.  Hard to make a good parallel here, but I’m going to try anyway, what can be used are tools developed by Developers.  Yes, they actually do test their stuff, well a lot of the ones I know do, and they may have a tool or script that they used to make sure their stuff worked.  Use it.  Keep chatting with them about the work they did and how they did something, it could be useful for you.  At least Sun Zi was reusing chariots, not that I have room in my cube for one, but it would be a heck of a conversation piece.

Just as is said - “In war, then, let your great object be victory, not lengthy campaigns.”  Don’t let the projects extend more than they have to, the reason for making the project plan is to have a way to measure progress, but also to keep the project constrained into a time that will give it time to be completed.  While it’s often been said that “if I just had a little more time to test I could find all the bugs” well in reality that’s just not possible.  Again avoid the length campaign, sure there may be one or two bugs that get left in, that is the unfortunate part of the work that is done by Quality Professionals, what is best to avoid is the serious bug that will completely ruin the experience of all Customers when using the product.  It’s risk mitigation, if a test suite is run on a component 20 times and in the last 5 times no new bugs have been found, with no changes in the code, then its unlikely that running it one more time will raise that bug that will stop the product going out the door.  It may, but it’s like gambling, if you have confidence in your tests and test suites that you know nothing will be found.  Risk Mitigation is an important part of the business, but it also takes a lot of experience in being able to do it properly and efficiently, I know I am still learning how to do it and I’ve released a lot of software.

Just remember that the QA Manager or Project Manager or Lead or whoever is in charge is the one who will eventually make the call.  “Thus it may be known that the leader of armies is the Arbiter of the people's fate, the man on whom it depends whether the nation shall be in peace or in peril.”

2 down, 11 to go!

Tuesday, January 30, 2007

Testing With Sun Tzu - Chapter 1

Being somewhat of a historian I tend to look for parallels to things in the modern world with the past, perhaps its the illusion of connection or I am just bored, some days it is hard to say.  Still when I was driving around the mall this past weekend with my wife and son and looking for a parking space I started to think about a parking strategy, or was it tactics, then it hit me - what about my testing tactics or stragtegy?  Of course there are many parallels that work in the world of software and business, but I like Sun Tzu or Sun Zi, depending on your pronunciation.  I am sure this has been done before, but what the heck, I've never done it before.

Sun Zi is the man behind the treatise The Art of War.  While the Book of the 5 Rings by Miyamoto Musashi always has its place, I've also seen some use of the Art of War in planning testing, and its chapters line up well (while also giving me a lot of time to expound on them, think of it 13 more posts by me!).  But in the interest of history lets get things straight, Sun Tzu is actually a title that translates as Master Sun, his real name was Sun Wu, where Wu is the same character as martial (like Wu Shu or martial art), he lived by the Western calendar around 544-496 BCE.

Mind you these are my interpretations, your own my vary.

The first Chapter is about Laying Plans.  Preparing for battle and readying the army for conflict, but the most apt comment, and probably most used, is "All warfare is based on deception.".  Testing is finding deception, or the uncovering of deception if you will, faults lie hidden and must be brought out, the small bug may be a deception that requires more investigation to find the larger one hidden beneath.  Never let the enemy distract you, and yes I am referring only to the defects as the enemy not the person who created them, in my place of employment open warfare is discouraged, hopefully yours has the same policy.  Yes I know we have trebuchets in the QA area but those are strictly for amusement, we never launch them directly at people, on purpose.  Yet.

In Laying Plans there are 5 constant factors that are mentioned:
  1. Moral Law
  2. Heaven
  3. Earth
  4. The Commander
  5. Method and Discipline
So lets take these in order.

Moral Law refers more to the ruler and in the day of Sun Zi was more along the lines of harmony, especially among the ruler and his people.  Keep the people happy and content, and they will follow their ruler.  Focusing on harmony is useful here, in that the Test Strategy that has been defined keeps everything in play, while a Test Plan is written for one area it should be in harmony with the others.  Tests should be done so that individual pieces (Unit Testing) are complete as well as the entire structure is done (System Testing) so that no plan overlaps another, no need to run the exact same test twice, and cases done in one plan complement another.  Nothing gets lost, or missed hopefully, providing for more complete testing.

Heaven, in the treatise is a reference more to the environment such as night and day, hot and cold, times and seasons.  This is a bit ephemeral for use in a test environment, I could say infrastructure but wait on that one, still there are some uses here.  Consider the schedules, the times the software comes in, the time of year, the Friday at 4pm drops that may require work on the weekends or on the holiday or even that snow storm that started up while you were reading email or even that annoying person in the next cube who constantly checks voicemail on speakerphone.  Much like the armies in ancient China had no control over the elements neither do we, except the guy using the speakerphone, and like it or not they effect a persons mood, so try to leave what is not work related out of the scheme and focus on the task at hand.  If something is frustrating take a few deep breaths and get back to a calm state, don't let external factors you cannot control get in your way.

Earth is the physical realm, such as distances between the armies, chance in life or death, security and danger.  In a modern implementation the infrastructure fits nicely here, make sure you have the infrastructure to complete the tests that need to be done, is the lab equipped to handle the project?  Are there security concerns?  Are there chances being taken with the tests that are being done?  What is the overall risk of delivery?  If an external group is involved in the project are they being taken into consideration, and should there be additional time added to a schedule to handle them?  There are a lot of considerations on just the physcial aspects of a project, thinking through them all is a good exercise, taking some time early in the planning phase to mentally walk through the entire project is useful.  Take notes on how the flow would go through the entire project, what would be needed and when, get input from those involved.  Its a small amount of time to spend on something that could be a roadblock later on.

The Commander was used to represent the virtues of wisdom, sincerity, benevolence, courage and strictness.  Mostly this was to generate an image of a good military commander who understood and cared about his men, while being an apt leader who can bring them victory.  While not everyone needs to be a leader, someone needs to be part of the crowd following, its good to look at what it would take to be in charge, are there skills needed to be the lead in the project?  What are they?  Do you have them?  If not, how do you get them?  Again, this is all about planning, and planning the Lead is also important, a person cannot lead unless they do not know what they are leading people to, sure they could but its not really effective and let's face it those people usually bring disaster with them.  Have the wisdom to know what you do not know, the sincerity to ask questions and give answers, the benevolence to work with others, the courage to stand up when needed and when things are not going well and the strictness to keep things on track without meandering all over.

Method and Discipline, the last ones, refers to the generation of the army and its structure, in addition the supplies and supply lines necessary to keep the army in the field.  Just like in Earth where the infrastructure needed to be put in place, its needs to be properly maintained, if a server is being used and it crashes how will it be replaced?  Personally I have spent time in my labs learning what I need to do my own server rebuilds, how many servers I have killed I can't count, but I know how to regenerate them as needed.  Understand what the test lab structure is, how to get replacements and be on good terms with your IT staff, who can give you that all important image disk to rebuild the computer with.  Know who is working on the project, and in what capacity, finding the Subject Matter Experts and checking with them on issues, or changes, can be useful.  Just as an army always changes in battle, so does the test lab and the tests during a release to QA, know what is happening underneath you and avoid surprises.  If the database is being restored on Tuesday, its probably not the best day to do some UI testing that relies on data put in on Monday.

Hopefully, I've made you think about some of this I don't have all the answers, I have the wisdom to know I don't, but I try to find them.  Before they find me.

Thanks for reading, and there will be more of this.  12 chapters to go!

Wednesday, September 13, 2006

Multi-Lingualism - One Testers View

I've been asked, and often seen asked, "I am a Tester (QA Engineer or whatever the title is) and I want to learn a language, which one should I learn?".  Well...

Answer: Whatever will help you in your job.  There is a lot out there, its like deciding what to learn for a second language, you learn one you enjoy or one that will help you progress, its the same with software and computer languages.  If you work testing Java apps, then learn Java it will only help you out, Scheme or Lisp no, they may allow you to understand jokes from some old programmers but thats about it; unless you work in a place that uses Scheme or Lisp.

For more keep going.

This is going to be a HOP (Highly Opinionated Post), and will cover my own career in this space, so bear with me.

I started in QA with no education in this field except what I had learned myself, some BASIC, some more Visual Basic, a little C and at the time I was hacking PPP and SLIP, plus some HTML.  I decided I needed something to help do things in a more automated fashion, and at the time the language of choice for that was Perl.  Over the years I have become a good Perl hacker, and can pretty much get to happen what I want when I need to, only now though I am doing it in an object orientated fashion.  I ended up using a few test tools over the years, WinRunner and LoadRunner, so I became familiar with their scripting languages because if you want to use them effectively you need to.  I used a Bug Tracking tool years ago called Clarity, for that I needed to be trained in their proprietary language, so I took their courses and got our system set up to run.  It worked well, but over the years I have also come to like Bugzilla - and what do you know its written in Perl!

Product-wise I spent many years testing web sites and multi-tier systems.  I have had to test ASP, Visual Script, use a tool written in Visual Basic, and databases.  Well, learning ASP was not all that hard, its just getting used to its syntax (could I code in it?  No.  But I can read and follow it...I've even hacked it to perform date testing).  SQL, that was a little tricky and I got one of those SQL in 21 Days books, that followed me around for years.  Windows Installer was another item we tested, as we were installing some Applications, so I got used to the syntax for running it on the command line, and then check out how to read its logs.  Java came into much more use as I worked, I started learning it twice over time, never got good at it, but hey I can follow it!  So testing Java Apps became easy.  Especially Java Apps that used databases since I already knew SQL.  In one job we started using JUnit, and that meant working with Java, it was some doing but I got some JUnit tests created and running.  Shell scripts were useful in a couple of jobs, as we needed to be able to work some packages properly, and there is just some stuff you SHOULD NOT do in Perl.

Taking a look back I started with very little, but what can I do now?
  • SQL, can query, create, delete, destroy, manipulate and do what I want with data
  • Perl, anything Perl can do I can almost do, not that great with Objects yet but getting there
  • ASP, I can read, follow, hack and troubleshoot it
  • Shell Scripting, can set up something to run what I want
  • Batch, can set up Windows Batch scripts to do what I want
  • Java, can read, follow and troubleshoot it.  Hacking is a bit different
  • JUnit, can make a JUnit test since I can follow Java
  • Perl, most useful tool I came across and its multiplatform!
  • C/C++, can't code much in it, but I can follow it - great for Code Reviews!
Recently I started tackling Python, because at home I decided I needed some way to track my downloaded music videos, a bad hobby I know.  But what else was there to do with the tools I had but install MySQL and then add in a front end to query data, I used Perl before but wanted something graphical and Python seemed the next logical step.  So now I can add Python in my little bag of tricks.

If a project comes up and I need to work with something, learn about it, that is what is great about this industry, you can read all you want and there is always something new.

Note: I know Perl is listed twice, it's on purpose and you can make your own jokes about it.

Thursday, August 31, 2006

Tools I've Used - AutoIt

Over the years I have used many tools, and tried many more, for testing.  One of them that I have grown with, and grown to like, is simple and free with a pretty good fan base.  AutoIt. 

I originally found it when I needed to automate a Customer Test, this was for a simple app that just found documents on a Customer's harddrive and uploaded them to a server; which the Customer could then distribute.  But since the issue dealt with doing this repeatedly I started looking at this tool to handle it, you can make your script based on screen positioning or by the use of tabs in an application.  I opted for tabs since I don't like screen positioning.  It worked well and did a fairly good job, though I ended up using Perl to generate the file upload list for the application, and used AutoIt to run the Perl Script, then start the application which made things easier!  Then with our actual Web Application I used it to make small scripts that would do Customer functions on the web site, again using tabs since I liked that - which as usual needed maintenance when the Developers changed the pages.  Still it worked well, and as the team grew others used it as part of their testing, one member of my staff was using it to generate Customers by having it run on the Customer Creation pages over and over - which made it easier to generate needed accounts the same each time; and check for changes in the Customer Admin pages.  It really fit a small niche.

For a free tool I have gotten some good use from, its been great.

As was noted when this was originally posted - the right tool is the smallest tool.

Pros:
  • Scripting Language is Basic-like, so its fairly simple and easy to read
  • Can do Tab (keystroke) movement or Mouse positioning
  • Has a lot of add-ons with an active development community
  • A good community of support, both on the Web and on Yahoo
  • Scripts can be converted to EXE's

Cons:
  • Windows based, if you want multiplatform its not that useful
  • Syntax was sometimes not that clear, but this seems to be solved in the latest version
  • Web Scripts can work differently on Multiple Browser types, I never was able to make a generic script (but that may just be me)

Monday, August 28, 2006

Finding the Right Help

Since there seems to be much being made about getting employees, on this site and in conversations I have had with people recently, I'll add my two cents about this.  I'll try to put it in some kind of order, but its going to be difficult, so bear with me if I go out of order.  Since I usually started as the first person in QA it was easy for me to grow the group as I understood completely the space and the work, so I had a very good idea about what skills mattered.

  • Getting the people in.  Referrals, Referrals, Referrals.
I've never found an easy way to get people in, but the best first option is to use your local resources, co-workers who might have worked with some brilliant QA Engineer in the past or knows someone that may fit into the company really well.  If you have been lucky enough to hire some QA staff already ask them if they know people who want to come work with your company, its also a way to check enthusiasm since people who WANT to be there will want to bring in their friends.  Most companies offer referral bonuses, or some sort of compensation, for referring people.  Also make sure you know where people have worked, if you get an applicant who worked with someone you have on staff, or is a colleague, see what they remember - it may be worth pursuing or not.  But take in mind that its one persons opinion.

Although the only other option to this is posting the job on the company site, internet job site or to a recruiter and they all have their drawbacks.  When you do it this way, clear time on your schedule to go over resumes, while its been nice to have HR go over resumes, unless you have an HR person who REALLY understands your needs you will either get resumes that don't fit or never see ones that might.  In all these situations there are some options.
  1. HR - meet with the HR person or Rep who will be handling the job, make sure they understand the needs and what the job description is, sometimes I've had Reps who knew Development but not Testing.  You get some odd resumes that way.
  2. Recruiters - they can be annoying, and we've all heard the negative stories, but if they are a good company and you get a good relationship with the company or its Rep they can be good.  I always send back my feedback to the Rep after a meeting with a candidate they send, telling them the good and bad and why I reject or accept them.  It's helped to give me better candidates, and if a company doesn't seem to get it I drop them, its not worth my time to get bad candidates in.  I also go over the experience on the resume with the person, that way I know if the resume has been doctored.
  3. Company Site Posting - usually a small deluge when the posting goes up, that eventually fades away.  This I will usually go through with the HR Rep, because some resumes give you an idea about what the persons communication skills are like and some may have the right skills but not written in a way someone with experience in QA might recognize.
  4. Internet Job Site - this will be a floodgate opening when it goes up, you may find responses from recruiters on behalf of applicants in this flood as well, keep it all in mind.  Again, go over the resumes with the HR rep, but take time for this, as it will not be quick.
  5. Oh yeah, SAVE those resumes with comments too.  I've had cases where I interviewed one person, then in another year got another resume and the name seemed familiar so I checked my files and we had rejected the person as a bad fit and not the right skills.  In a year I sincerely doubted the person would change, so we did not bring them in for another set of interviews.
  • The initial interview - phone or otherwise
I would always check the past few jobs and ask them to describe in more detail what the job entailed, trying to get an idea of what the person really did on the projects in the past and what their feeling was on the work.  Wording on the resume may or may not match what the person really did, and I like to find that out in the beginning, but I also want to make sure the person can communicate effectively.  Since QA is a lot of face to face discussions with Developers and others the person you hire must be able to communicate with your colleagues, and without much difficulty.  I'm not picking on people with second languages at all, but if in speaking and writing you cannot understand what the person is talking about, especially in regards to a defect report, then no one else will either and it will make work difficult for others.  During this interview I asked most of the questions as well, as I am trying to decide whether this person can come in and do the job, if the potential is not there I will not bother, there will be time for candidate questions in the face-to-face.
  • The face-to-face
This is when I go into more detail on the job and really try to grill the candidate on experience, skills and test methodology.  Depending on the level of the position I may ask more technical questions or just try to find out why the person wants to get into testing for a Junior Position.  I also ask for examples, if someone knows how to write SQL I ask them to tell me some commands, how to select from a table, two tables, multiple tables, do a sort - just to make sure they have a grasp of things.  There is also The Example.  Taking an example of something that is under test, I give some vague description as just ask what they would do.  See if it matches what we do, this gives an idea of mind fit.  Then there is the Technical Example, something that really challenges them to use their skills, this can be anything from how to test a product to my latest favorite, how do you test a bank of elevators in a building?
  • Group Melding.  How is the fit?
During the interview process I have some members of the QA staff interview the candidate, this is to determine how everyone will get along, sure we may spend time with the candidate during the interview process and a couple of days after start date, but the day to day interaction will be with the QA staff.  If there are going to be issues, find them out now, before you have a serious issue on your hands.  Since there is only so much time in the day we broke out the interviews to focus on each persons special skill areas, one person may ask the more technical questions while another may ask the more process related items, use the strengths of your staff to your advantage.
Also I like to ask the same question multiple times, with different people, there should be different answers unless the person has been coached, in which case a warning should go up.  It's happened to me in the past.  Also figure out a way to end things early, if the process is going then a large warning flag goes up, you may decide to cut the candidate loose, plan for this.
  • Contractors
This is always tricky, you want someone in for a short time, with only specific skills but do you really need to do the whole interview process?  In a way I say yes, because this person will be there day to day, and if its long term you will get to know them like any other co-worker, in some cases the contract can become permanent so plan for permanence now; it may save you headaches later.  But as with regular applicants I send my feedback immediately to the company during the interview process, while it is still fresh in my mind, in many cases the company has responded by sending Contractors better meeting my skills.  There have been a few I have hired in the past, some I took on full time, but I had that option in mind on the interview and made sure the fit was good; some have been the best employees I ever had.





There ya have it, and while this has worked for me over the years, use parts on your own and in your own environment, my expectations and needs were probably different than yours.  A lot of this is planning and managing the risk, items we should be well familiar with in QA, these are skills you can use in any endeavor, not just the latest project.

Wednesday, August 23, 2006

Sharing the Environment

Years ago,  my first QA job actually, we were sparse on resources and had one lab for everyone.  Yup.  A server for all, and a database to share.  This was for a start-up that had limited resources and money, QA was brought in after Development really got under way so it was a lot of catch-up.  Originally, until we got the middle-ware stable the Development Leads did the actual releases as well, with input from me, so if there were issues or something missed they could discern the issues easier.  Still it was all we could do, so we needed to work out the risks.

Here is how we ended up doing it.
  • Web Site, seperated out the main home directories, easy enough to do.
  • Web Server, this was the tricky one, because it was a compiled executable and when it was updated mostly they were library files.  Really we just promoted the new files, even if they were the same as the existing ones, not something I would recommend but it worked at the time.
  • Database, sort of tricky but we just used different Oracle instances and that allowed us to test in isolation.
  • Other middleware, which was the bulk of the code, we handled this by reinstalling.
Was it full of risk?  Sure.  But we also had weekly or bi-weekly releases, once a package was out we had another coming in.  This did work for us for a year and a half, it was all for one Customer so in that we even had an easier time.  That Customer went on to be a fairly large ISP in the UK so we were doing something right on the back end, there were few problems that arose after deployment.  So sharing an environment can be done,  but you need to be aware of EVERY potential risk, especially when you are testing in a dev environment that already has the tweaks made for fixes - and may not be included in the package.

To me the whole idea of Risk Management is what needs to be done for every release or build coming into Test, if you don't know your environment enough to see the Risks then you can set yourself up for trouble.  Its worth time to ask "What if..?" questions all the time, some Risks you won't know until you have experience to ask the questions, and some will come from doing the releases and seeing the code work in the field.  The goal is to minimize those issues that arise from the field, or to eliminate them entirely (a good pipe dream).

Would I do testing like this again?  No.  I've learned that having your own environment that is yours and yours alone to test with is the best way to mitigate everything.  I know it can be done to be in the same environment as Development, I just would never recommend it.