This is a story about a job long, long ago.
In having gone through this, I developed a system of heuristic flags to look at an organization that you work for. While these are context sensitive, I tried to keep a little of the context in the flags to give the reader some idea of what I saw. Seeing these things as they happen is extremely difficult. When you are in the moment they can look like a compromise, yet remove yourself from the situation for 2-3 months and suddenly they become “OH MY GOD, I can’t believe they even asked us to do that!”
The reason that some of us persevered through lots and lots of these yellow and red flags is many. People don't like change, interviewing is change. People like to see things through to the end, quitting feels like you failed. I genuinely liked the people I worked with, or at least lots of them, but that doesn’t change the culture of the sociopaths in charge (Gervais Principle). Hindsight is 20/20, looking back, I should have quit way earlier, but recognizing the signs in real time is much more difficult then it would seem when writing this down years later.
(the stuff in italics are the warning signs)
It all started slowly. That’s the best way to disguise failure. It’s how we can convince ourselves, “we're just learning"…
I had been working for this company about three months when it was decided that we needed to go Agile. We hired 2 product owners did a couple of days of training. Made a backlog, estimated, planned a sprint and brought new team members on board. We didn’t have a scrum master but we ‘were’ looking for one. Can’t have everything at once we told ourselves.
Yellow Flag 1: Starting a process by ignoring pieces of the process before trying them is folly.
We start this grand adventure with a meeting where it was deemed, the biggest oldest crappiest hard-to-read, difficult-to-modify code would be the starting point for the new hotness. Not lets rewrite it, but take the ‘scroll of insanity’ as it was called, and use it to build on for the new hotness. But we sallied-forth, new process, one bad decision won’t kill us, and we plodded along for a couple of months.
Then the QA manager had a life event and never recovered, he left the company and the rest of this story is sans QA having a voice. We told ourselves we can work without a manager ‘for the team’.
Yellow Flag 2: Working without a direct supervisor for more then 3 months.
Don't get me wrong I don't want to work for just any manager, and neither should you. But if a decent (notice NOT GOOD) manager doesn't show up within 3 months, I can think of 2 things. The company doesn't attract quality people. Or they aren't making it their highest priority.
Soon our VP was walking through the building explaining to other people / board members the agile process in exquisite detail. Basically lying to their face, in front of ours.
Red Flag 1: When management tells everyone including you, we are Agile. Then proceeds to prevent you from being a self-directed team, doing backlog estimations, working on a single sprint at a time or defining done. Now that I see this, I wonder if it was a sadistic way of daring us to challenge him.
At this point we had a new development architect team. They had a working pre-alpha. As a concurrent B2B web application the VP decides we should load test this. I can handle a new challenge and was excited to get started.
First round of testing showed two concurrent users crash the new hotness. Spent a week tweaking on load testing cause clearly I’m missing something with the load test. After showing the development manager and VP the results. I was called a liar, and the load part of testing was given to someone else. Two weeks later he has the same results I do, and the development manager admits maybe there is an issue in our session management.
Meanwhile I'm off to functional automation. Automation is brittle and the 3rd party GUI libraries aren't helping. No hooks, dynamic id’s, I can’t work with this. I of course had no manager to explain this to, but was informed, “It helps the developers move faster.” Which just puts QA, without a voice, further behind…
At this point the only thing keeping me at the company is the Warhammer Fantasy board between a developer and myself.
A co-worker and I start to share any job openings we find in an effort to get out, but due to the recession, there isn’t much.
As all this is happening, we move to production with two active sprints. In and of itself wasn’t insane until you note that shortly we had 3 active sprints in production with only two sprint teams. At one point we had three active sprints in production being worked on with bugs, an active sprint in stage, one in QA and a sixth in development.
Yellow Flag 3: Is having multiple sprints active per sprint team.
Red Flag 2: Is having six different sprints being actively worked on, by two sprint teams.
We had a sprint board which was viewed as sacred ground, only the PO could touch, move, write, etc. on or with it. At one point one of the testers called the board the joke that it was, and said that without the ability to move, edit or touch things, it was stupid. He said this to the POs face. Within 10 minutes he was in the VP’s office being told to apologize or he was fired.
Red Flag 3: Anyone who criticizes the process, being threatened with their job.
So, we were fast approaching an imaginary deadline of an alpha version of our software, and we were behind, working OT and generally trying to get 'er done. This particular company prided itself on the 2 weeks over christmas only requiring a skeleton crew, so most of us didn’t mind the OT, in a couple of weeks most of us would get a respite and then come back refreshed. When the VP came out and announced, “ very one will be working over christmas, no PTO except on the holidays themselves, and mandatory 50 hours every other week“, yes they had canceled christmas. For a date that only they believed in, never mind that most people were doing 60-80’s.
Yellow Flag 4:(approaching red) Is when management changes work schedules for you.
Projects dead. QA ignored. Automation maintenance nightmare. VP unwilling to compromise. 5 active sprints.
The day I gave my two week notice I had to write a letter to quit, cause I couldn’t find the VP (who was my manager) for the entire day. He never did show up.
So he politely asked me to not inform people of my two week deadline, he’d like to handle it. Of course I was more them willing to allow him to handle it in his own way. A week rolled by, with no announcement, so I was unable to tell anyone. As a result no one thought it important to learn and take over the tasks that I was doing. Week two started with a scum where people started to assign me work, and at this point I was tired of waiting and kinda upset. I told the entire team that most of that work needed to be someone else’s cause Friday was my last day. Everyone was upset, and yet officially my leaving still wasn’t announced till one day before my last.
To top off a wonderful last week of trying hard to make sure people are prepped for me being gone. My exit interview consisted of HR telling me over the phone, “No, that’s not why you’re leaving.” What do you say to that?
Red Flag 4: The process of handing off your knowledge to someone is stymied, and no one in management cares why you are leaving. (Albeit this flag is more for people still there.)
Monday, November 17, 2014
Introspection on why I left...
Monday, November 10, 2014
James Bach and Dr. James Whittaker: An attempt to understand viewpoints
Introduction, Intentions and Limits
I don't have the political ties to many of the big thinkers of the industry. I have seen James Bach speak, had him address my blog, addressed his blog, read his book and I have even asked him a question at CAST, but I don't know him personally. I have attempted to address Dr. Whittaker in his blog, but have never got a response and I have never meet him. I have read Dr. Whittaker's (in)famous exploratory testing book, which is currently the second most popular posts I have written. I take that to mean I am not the only one who has interest in Whittaker's views and I suspect I'm not the only one to never have met him. In my consideration of both these individuals, I am not attempting to make it personal. As you read this, please keep in mind that this is my attempt to understand their viewpoints. This is an attempt to parse the words of each of them to gain insights.
I came from CAST a few months ago and while I'm not going to directly talk about CAST I want to talk about a subject near and dear to my heart. In listening to Jame Bach's talk, most of which was around the process of testing, but one piece was clearly controversial. This was the Testing vs Checking and the ideas around it. In talking with Bach, I now know I hold disagreements with some of his model. I mostly kept silent regarding this, except for my consideration of Heuristics and Algorithms where I pondered if what humans and computers do is equal, it just happens human are complex and unknown currently compared to that of a computer. This leads down the free will question that is unanswerable, which is why I didn't deep dive into that subject. I still am resisting that particular topic for now, but I may return to it on a later date.
Bach has interesting ways of subdividing his world, with the terms Testing and Checking, with the word Test meaning something different in the past, even for Bach. Some day I will do a word of the week on Test, but that isn't today's subject either. In fact I'm still dodging giving my detailed, full opinion on checking vs testing, but be assured it will come up. Today's topic actually is about my studies of James Whittaker and what appears in my view as James Bach's answer to that viewpoint. I choose these two in part because I was interested in why Whittaker left testing and for Bach's part, he is a prolific exemplar of a testing professional for me to consider. Bach also has address some areas that Whittaker has talked about, making him a easy to cite exemplar as well. This is not meant to be name calling, but rather I am trying to describe how I see these thinkers in test hold positions and viewpoints that are deeply held by many individuals. Certainly other people have variations of these viewpoints and certainly I maybe miss-reading parts of these viewpoints. I struggle not to put words in people's mouths, but I have to admit some of this is speculation based upon the comments I've found that Whittaker has made between 2008ish and 2014. Those are limited and I have studied them over months, so my sourcing is limited. James Bach, on the other hand, is prolific, which means I might be missing data. With that said, on with the show!
Warning: This is a long winded personal discovery post, you have been warned.
Warning: This is a long winded personal discovery post, you have been warned.
What Dr. Whittaker has said on Testing
In .NET Rocks 408 from 2009, Whittaker complained about only having guiding practices, with no solid knowledge, saying,
“I'll just be happy when testing works... because they have guiding practices, guiding theory....”Later he noted how more testers means, in his words, lazy developers:
“We claim in many groups a 1 : 1 dev/testing ratio [in Microsoft]... Google [has]... 1:10 tester ratio... 1:1, you think oh wow, that is a lot of testing, also a lot of lazy developers to be perfectly honest... At Google they have no choice but to be a little more careful in development.”
Whittaker wants to remove as much inventive thinking from the process as possible, saying things like “In Visual Studio 2010... much of that [change analysis] we will automate completely..." and
“What can you tell me about the new tools... we think you will be able to reproduce every bug.” That is a fairly wide and amazing claim. He even starts talking about intelligent code that will find bugs all by itself, “Only if it is the right sort of unit testing. If it isn't finding actionable bugs... throw it out. If the test cases themselves were feature aware, they know, they know what bugs they are good at finding... this is the future I want.” Why do you need to inject intelligent reasoning when all problems have been solved before, but are hard-coded to one particular program? “I'm convinced, on this planet, everything that can be tested, has been tested.” In fact, why not remove testing as an activity all together? Just have the machine figure out what needs to be tested, even before you hit compile! “We[test] need to be invited in to be a full fledged member... we have to get to the point where we [test] are contributing more. Can we get software testing to be more like spell check is in word.... this needs to be the focus of software testers. These late cycle heroics and these testers who are married to late cycle heroes are Christmas Tester Past. ”
Dr. Whittaker imagines a future where testers are more-or-less developers. They might have a few test skills but basically once the magic tools exist, then developers should be solving these problems. But of course he might have changed his mind since then? I mean that was in 2009! What about modern times?
Quality is no less important, of course, but achieving it requires a different focus than in the past. Hiring a bunch of testers will ensure that you need those testers. Testers are a crutch. A self-fulfilling prophesy. The more you hire the more you will need. Testing is much less an actual role now as it is an activity that has blended into the other activities developers perform every day. You can continue to test like its 1999, but why would you? - March 25, 2014, http://www.stickyminds.com/interview/leadership-and-career-success-purpose-interview-james-whittakerNope, Dr. Whittaker's viewpoint has gotten even more extreme. Dr. Whittaker might say I am a developer given the 'advanced' automation I write, but he certainly thinks most testers should just go away. He would rather have testers all fired, because [manual?] testers just enable developers to write bad code. Why does he feel this way? Well first of all, he's in a super-large company that hires a great deal of the best talent there is. Microsoft has some amazing developers and clearly they can write some amazing code, so maybe he sees them and assumes everyone else is like that. Before he was at Microsoft, he worked for Google, so his perspective might be skewed. Perhaps Microsoft and Google can get away with fewer or no testers. Facebook seems to do it. He certainly seems to hint at it with his most recent blog post on the subject. His infamous 'traditional test is dead' talk also seems to indicate that you need enough people to dog food your product, which requires a large community of people willing to file bugs for you. That does not apply to everyone, but he might not realize that? Dr. Whittaker's history has, as best I can tell, been mostly about bigger companies and teaching. Perhaps there are other reasons I have not been able to discover. I'd love to hear from Dr. Whittaker! Clearly James Bach, has a reply...
James Bach and Automation
James Bach, a man who consults with and trains hundreds (or more?) of testers each year also has an interesting vantage point. He mostly works on testing from an intelligent gathering of information through investigation. He argues, in essence that any investigation made by a programmer in order to write automated tests (i.e. "checks") or executing the automated tests is in fact not equal to that of a human being. All of Dr. Whittaker's magic tools make less sense in the mind of Bach. Not that Bach doesn't want these tools, but he would argue without an intelligent human, the tool provides no additional value. He has gone so far as to start labeling automated testing as checking. Not saying they have no value, but saying that their scope is limited compared to a human. I think Bach would even argue an AI-oriented test method, load testing, model driven testing and other "beyond human" testing could be done by a tester, given infinite amounts of time and/or humans. To be clear, James Bach seems to not view it as possible that there are tests that are beyond human, but I will address this later. Therefore, I could simplify the argument to this:
if(Human.Testing > Computer.Testing) then throw new DoNotOverloadWord("Computer Testing and Human Testing are not the same!");
Ironically, Dr. Whittaker might agree with that simplification if only you change the ">" to "<". While I might agree with James Bach in his basic point, I think that there are a few concerns. One is that trying to change a word used in many different cultures, not just software testing to something new just makes another standard. He's just added another definition to an already complicated word, making it even harder to understand. Worse yet, it seems like in defining the word that way, Bach has accidentally made his own standard for the word test, which will compete with other standards. I don't know if Bach wants to be a sort of defacto-ISO standard or not, but that's how it might become. I certainly sometimes see how his passionate arguments could be perceived as an attempt to be sort of standard. On the other hand, I also hate the answer 'it depends on context' (without something to back it up), so at least when I read Bach's blogs, I know what he means when he says checking. Dr. Whittaker doesn't seem to put in nearly as much rigor in his words, making his ideas a little more slippery. I don't know that there is an ideal way of handling this problem. Perhaps that is part of why schools of testing showed up, so you know whose standard definitions you use.
| When you say "Test" which definition are you using? The Bachian 2014 definition. Oh, you've not moved on to the 2015 definition? No, it's out now? |
Back to the question of computers and if they can go beyond humans in testing/checking. I take it that Bach feels that computer's ability to test/check cannot go beyond people from this graphic:
Machine Checking is inside Testing and James Bach defines Testing as:
Testing is the process of evaluating a product by learning about it through exploration and experimentation, which includes to some degree: questioning, study, modeling, observation, inference, etc.So if you run a load test, the load that the machine generates allows you to observe the system under load, using machine generated metrics like page load times or database CPU usage. The question is where does the load test code belong? Is it 'checking' in that it navigates the pages? I suppose it does blow up if it can't load the page, which is a check, but the primary point of load tests is not about the functions of the page as much as the non-functional requirements. Is the data gathered by the load test a model? If I have a graph of users to page load times, isn't that a model... created by a machine? Bach does not seem to have a reply to this, other than to say that a machine embodies its script and thus is separate from humans. Whittaker on the other hand does not care as much about the distinction as he does about getting the technology good enough to get the data into engineers hands without a middleman tester writing a specialized load test script. Better yet, in Whittaker's mind, get your users to do the testing by deploying the code.
Another issue is that while the test executes, it is limited to the data and code written, even if you have a genetic algorithm for testing and use Google as a datasource. These are powerful algorithms and Google as a datasource outmatches my own knowledge base in a sense. While I agree this is perhaps different than a human who is perhaps in some way more advanced than said algorithms, it can also be beyond human. Perhaps because humans can reason and the algorithms are limited to the code written there is a distinction to be made, which is fair enough, even if I still am not 100% convinced. Is reasoning just another term for 'a process we don't fully understand' while code is something we can? Is 'tacit knowledge' and 'cultural understand' really limited to just humans or will computers with enough data be able to generate similar models some day? I admit human brains seem different, maybe we have a soul, maybe we have free will, maybe.... But to be fair, even with my imagined super-advanced testing system, I know 98% of automated testing systems are not attempting to approach these sorts of advancements. Even if our automation systems aren't nearly as good as I think they can be, does that mean that testing vs checking will always be a dichotomy or will programs eventually get good enough that we can't tell the difference? And what if humans are always special and better, what about diminishing returns? Hand-washed clothing maybe cleaner and possibly more water efficient, but a washing machine is preferred by nearly everyone in the modern world. Perhaps all of this doesn't matter right now, but Dr. Whittaker seems to think we're there. Maybe places like Microsoft are there? Maybe "Tester" as a role makes less sense as more of that role is automated away, and maybe when you throw enough developers to create the automation, you can have most of your testing automated?
So then there is another question that comes to mind, if executing a "automated test" is checking, while the human is writing the algorithm to do the 'checking', is that testing? In speaking with Bach, it is not in his mind. My brain, thinking about the problem, writing code, creating models in my head about the system under 'test' (system under check?) is not testing according to Bach. Very interesting viewpoint, making my claim of about this site being 98% about testing untrue in Bach's viewpoint. Dr. Whittaker would seem to say that of course that is testing, even if I personally shouldn't be doing it or at least I should also be writing production code.
To be fair, Dr. Whittaker also argues that users are better than machines or testers. This is a point both Whittaker and Bach might agree on, even if Bach might say only in some context. But, in saying that I think Dr. Whittaker loses the point that users of a product can change products quickly and are fickle. The mighty IE 6 failed and clearly IE is no longer top dog. Listening to users might have been part of that, but an insider advocating for the users also might have been helpful! Users often don't know what they want and what they want changes quickly. This has known this for years. What makes Dr. Whittaker think that all products have a single user base that only wants one set of features? One man's bug is another man's feature. For that matter, what about products that don't have a exploitable user base? How do you dog food software for shipping products (OMS) when it costs money every minute the software is broken? How about we dog food a pace maker; that will work, right? James Bach would note that quality is not a thing you can build into software but rather a sort of relationship. I suspect that if you break the software too often, you harm the user's interest in that software and they will move on.
What can I see from here?
I very much appreciate that these giants of the industry allow me to stand on their shoulders and look out upon the sea of possibilities. I don't know exactly where I stand in an 'official' sense, but I am sure that both of them hold good ideas, ideas that should be investigated... nay, should be tested. To his credit, James Bach agrees and wants to continue to make his ideas better. The problem is that with different context there are different needs. I have pondered from time to time if we could lock down context (e.g. E-Commerce website, X-Y income, X-Y products sold, Z types of browsers), could we say something about which style of testing would make more sense? In considering both arguments, I have to say that in my experience, automation can go beyond what a human can test, but the value provided often is different than that provided by manual testing. On the other hand, often the results require human analysis, meaning that human judgment is still required. Like a load test that knocks over a system after throwing 500% of normal load, a human is required to do the analysis and render a value judgment. I having also seen some development shops that have gone without testers. At least in one case, they seemed to have almost pulled it off in a superficial view, but once you dig in, I think it became clear that some people or places do need testers. I don't think there is a way of giving detailed advice that is universal, and without some well controlled studies, it maybe impossible to tell when a particular methodology is superior in a given context.
While I can't speak to what method is the best or which are superior to others, I can speak to what worked and what didn't for me in my context. Using only my own contexts and what I have seen I can make a few broad statements. Few people do automation well. The most successful automation does not involve a UI or when it does, it is in a manumated process. Those who do automation well are treasures. Few, but more people do manual testing well. These people are also treasures. If you have only bench testing by the developers, adding either automated or manual testing (or checking) is likely to increase the quality for the product in small to medium size organizations. I am not sure how to logically organize test/development for large organizations (more than 500 people in software development).
Not everything is easy to be tested by code. Not everything is easy to test by people. If you can't get people to do the testing, either it might not matter enough or you should automate it and accept the limits of checking. If your automation keeps breaking either your software is flaky or perhaps it shouldn't be automating (yet, if ever). Testing is hard and you need people who understand testing, be they developers or testers. For that matter, you also need people to understand software development, the business, the customers and probably the accounting. How you label these people may affect how they do the job, and maybe it matters, but what matters most is that the job is done as much as it needs to be done.
Ultimately, software development is hard. Dr. Whittaker and James Bach come at the problems from very different places, but both want to improve the quality of software. Even with their extremely different views both have contributed towards their goals. These extremes do cause some polarization and sadly this post might sound negative towards both their views, but it is hard to find common ground between two extreme views. On the other hand, Whittaker helped make Visual Studio 2008 and 2010 better at testing while Bach has been working on perfecting RST! Both these men have worked towards their visions and have created useful artifacts from their near disparate visions. While I have disagreements with both sides, I am glad they were around making my job of testing better and easier.
So if I haven't said it yet, thank you.
One last thing. If Dr. James Whittaker or James Bach respond to this with any corrections, I will update this post. I maybe challenging my understanding of their ideas but I am not trying to put words in their mouths.
Tuesday, November 4, 2014
Consultant's War
My co-contributor Isaac has been pondering the fact that we see more consultants blogging regularly, speaking their mind and controlling the things we talk about. I don't care if it is Dorathy "Dot" Graham, Markus Gärtner, Matt Heusser, Michael Bolton, Michael Larsen (Correction: As Matt pointed out, I got my facts mixed up and Micheal is not a consultant), Karen Nicole Johnson, James Bach or Rex Black. There are dozens of consultants I could have listed (I mean, how could I have missed Doug Hoffman!), some of whom I have personally worked with. So this is not meant to be a personal attack on any of them. I realize I list more CDT folk than others, and while that is not intentional, I read less of the thought leaders from the other schools. If you look, I bet most of the people you read either are or were consultants [In interest of full disclosure, I have written a hand full of articles and have been paid, but I am not nor have I ever been a consultant, and with you reading this, it is at least one counter-argument, but we'll get to that in a bit.]. If you made it here, there is little doubt you've read at least of those author's works at least once. They are stars! I mean that literally. I found this image of James Bach just by searching his name:
I didn't even use image search to find that, it came up on the first main page of my Google search results! I respect James, he writes well and has interesting ideas, but I have no opinion on his actual testing skills, as using his own measure, I have not seen him perform. Keeping that in mind, I have not seen any of the above consultants do any extended performances in testing, even if I have listened to many of them talk and gained insights from them. They know how to communicate and they are often awesome writers. Much better than I am. They all are senior in the sense that they have done testing for years. Some of them disagree with others, making it often a judgment call of their written works on who to listen to. Some of it is the author's voice. In my opinion, Karen Johnson is a much softer and gentler voice than James Bach. But some of it is factual. I have documented several debates between Rex Black and various other people I have listed. Rex has substantially different ideas on how the world should work regarding testing.
James Christie, another consultant brought up a standards in CAST 2014. It was a good talk and clearly he had some valid concerns about the standards that have been created. I have talked about that earlier (I am not going to include as many 'justifying' links as all my points and links are in the earlier article). I am actually not terribly interested in the arguments and in reality, ISO 29119 is more of a placeholder than the actual point of interest. I am more interested in discussing who is creating these debates. In part we are in a war between consultants and in part we are in a war of 'bed making'. Clearly the loudest voices are from those who have free time and have money at stake. The pro-ISO side has take the stance of doing as little communication as possible, because it is hard to have a debate when one side won't talk. It is a tactical choice, and it is very difficult to compromise when one side doesn't speak. Particularly when the standard is already in place, the pro-standards side doesn't have much to gain from the messy-bed side who wants the standard withdrawn.
Both groups of consultants have money to gain from it. A defacto-RST-standard would make Bach a richer man that he already is. Matt Heusser's LST does give at least some competition of ideas, but still that isn't much more diversity. The standards would probably make the pro-standards consultants more money as they can say, "as the creator of the standard I know how to implement it." Even if they made no more money in so far as making the standard, they will be better known for having made the standard. Even if I assume that no one was doing this out of self-interest, the people best represented are the consultants and to a lesser degree, the academics, not the practitioners who may feel the most impact. Those leading the charge both for and against the standard are primarily consultants or recent ex-consultants. Clearly this is a war for which the people with the most time are waging, and those are the consultants. Ask yourself, of those you have heard debate the issue, what percentage are just working for a company?
Granted, I am not a consultant, but it takes a LOT of effort to write these posts. It isn't marketing for me, except possibly for future job hunting, and the hope that I will help other people in the profession. I know non-consultants are talking about it, but we don't have a lot of champions who aren't consultants. Maybe most senior level testers become consultants, perhaps due to disillusionment of testing at their companies. Maybe that is why consultants fight so bitterly hard for and against things like standards. Perhaps my assertion that money at the table is a part of it is just idle speculation not really fit for print. I can honestly believe it to be that is possibly the large majority of the consultants involved.
Then what is it that causes these differences of view? Well let me go back to the bed making. To quote Steve Yegge:
For what it is worth, I tend to be against bed making, I think having all this formal work and making checklists is rather pointless unless they fit what I am doing. Having one checklist to rule them all with a disclaimer that YMMV and do the bits you want doesn’t sound much like a standard, but those whom like their bed nice and neat probably feel very happy when they come home at night. The ‘truth’ about the value of making your bed, the evidence that it is better is less than clear. Maybe one day we will have solid evidence in a particular area that a particular method is better than another, but we aren’t there yet in my opinion. But still I don’t make my bed. In case you are wondering, I think this is probably one of the hardest questions we have in the industry: What methods work best given a particular context and what parts of the context matter most?
| From: http://qainsight.net/2008/04/08/james-bach-the-qa-hero/ |
ISO 29119
James Christie, another consultant brought up a standards in CAST 2014. It was a good talk and clearly he had some valid concerns about the standards that have been created. I have talked about that earlier (I am not going to include as many 'justifying' links as all my points and links are in the earlier article). I am actually not terribly interested in the arguments and in reality, ISO 29119 is more of a placeholder than the actual point of interest. I am more interested in discussing who is creating these debates. In part we are in a war between consultants and in part we are in a war of 'bed making'. Clearly the loudest voices are from those who have free time and have money at stake. The pro-ISO side has take the stance of doing as little communication as possible, because it is hard to have a debate when one side won't talk. It is a tactical choice, and it is very difficult to compromise when one side doesn't speak. Particularly when the standard is already in place, the pro-standards side doesn't have much to gain from the messy-bed side who wants the standard withdrawn.
Both groups of consultants have money to gain from it. A defacto-RST-standard would make Bach a richer man that he already is. Matt Heusser's LST does give at least some competition of ideas, but still that isn't much more diversity. The standards would probably make the pro-standards consultants more money as they can say, "as the creator of the standard I know how to implement it." Even if they made no more money in so far as making the standard, they will be better known for having made the standard. Even if I assume that no one was doing this out of self-interest, the people best represented are the consultants and to a lesser degree, the academics, not the practitioners who may feel the most impact. Those leading the charge both for and against the standard are primarily consultants or recent ex-consultants. Clearly this is a war for which the people with the most time are waging, and those are the consultants. Ask yourself, of those you have heard debate the issue, what percentage are just working for a company?
Granted, I am not a consultant, but it takes a LOT of effort to write these posts. It isn't marketing for me, except possibly for future job hunting, and the hope that I will help other people in the profession. I know non-consultants are talking about it, but we don't have a lot of champions who aren't consultants. Maybe most senior level testers become consultants, perhaps due to disillusionment of testing at their companies. Maybe that is why consultants fight so bitterly hard for and against things like standards. Perhaps my assertion that money at the table is a part of it is just idle speculation not really fit for print. I can honestly believe it to be that is possibly the large majority of the consultants involved.
Bed: Do you make yours?
Then what is it that causes these differences of view? Well let me go back to the bed making. To quote Steve Yegge:
I had a high school English teacher who, on the last day of the semester, much to everyone's surprise, claimed she should tell just by looking at each of us whether we're a slob or a neat-freak. She also claimed (and I think I agree with this) that the dividing line between slob and neat-freak, the sure-fire indicator, is whether you make your bed each morning. Then she pointed at each each of us in turn and announced "slob" or "neat-freak". Everyone agreed she had us pegged. (And most of us were slobs. Making beds is for chumps.)That seems like a pretty good heuristic and I think it is also a good analogy. Often those who want more documentation, with things well understood before starting the work and more feeling of being in control via documentation are those who feel standards are a good idea. They want their metaphorical beds made. They like having lots of details written down, they like check lists and would rather make the bed than have a ‘mess’ left all day. A nice neat made bed feels good to them. Then there are the people who see that neat bed and think it is a waste of time at best. At worst, they think that someone will start making them make their bed too. Personally, I think "Making beds is for chumps", just like Steve Yegge. Jeff Atwood would go even further and call it a religious viewpoint:
But software development is, and has always been, a religion. We band together into groups of people who believe the same things, with very little basis for proving any of those beliefs. Java versus .NET. Microsoft versus Google. Static languages versus Dynamic languages. We may kid ourselves into believing we're "computer scientists", but when was the last time you used a hypothesis and a control to prove anything? We're too busy solving customer problems in the chosen tool, unbeliever!Clearly the consultants, many of whom I take valuable bits of data from care about what they do and they tried to lock down their empirical knowledge into demonstrable truths. But that doesn't mean they have 'the truth'. I know as testers we try to have controls, but I am not so convinced we have testing down to a science. It is why I feel we aren't ready for standards, but I also recognize the limits of my own knowledge.
For what it is worth, I tend to be against bed making, I think having all this formal work and making checklists is rather pointless unless they fit what I am doing. Having one checklist to rule them all with a disclaimer that YMMV and do the bits you want doesn’t sound much like a standard, but those whom like their bed nice and neat probably feel very happy when they come home at night. The ‘truth’ about the value of making your bed, the evidence that it is better is less than clear. Maybe one day we will have solid evidence in a particular area that a particular method is better than another, but we aren’t there yet in my opinion. But still I don’t make my bed. In case you are wondering, I think this is probably one of the hardest questions we have in the industry: What methods work best given a particular context and what parts of the context matter most?
Wednesday, October 29, 2014
In consideration of ISO 29119
I have been aware of this debate ever since attending CAST 2014, but I've not been quick to sign. I wanted to investigate and see what other viewpoints there might be. To quote Everett Hughes, a sociologist:
That being said, I'm not convinced we actually do know what a standard should look like, much less if this is the standard we need. Maybe it is what we need, but I strongly doubt it. I think we are likely many years or decades away before we will even be able to claim we have true repeatable practices oriented towards different contexts, assuming it is possible. I am unable to judge at present what the standard does say, as the standard and the standard body's work is less than transparent. I've been forced to sign up with personal details in order to read documentation about the standard's creation, although that has been changed since (NOTE: The file name also changed, including a date, which makes it hard to know if anything has changed, as there was no change log as of 10/26/2014). The standard requests I pay in a currency that I don't use. I've signing the petition to withdraw the standard not because I know it is wrong, but because I can't tell, which makes it useless at best and dangerously wrong at worst. What I can tell is that the standard's various author's other documents around the standard demonstrate what I consider to be confusing if not out right contradictory statements, making me doubt the actual standard. That breaks the social bargain us professionals have that Everett Hughes so eloquently described.
Perhaps you could say that I should have been personally involved in the standard, and that is a valid complaint. However, I'm not aware of anyone particularly reaching out to the AST, nor have I heard of it from any other group except for James Christie's talk in 2014. I have attended both AST sponsored and non-AST sponsored conferences for years, so this isn't a case of willful ignorance. This is my first chance to review the material and process, yet I have not found the process particularly open or transparent. I see claims of no best practices and claims that the standard will create best practices. I have found so many confusing statements by the standard's body that I must conclude that the standard should be withdrawn until it can be thoroughly reviewed and modified, if it can even be modified into something useful.
Even ignoring past statements, the recent defense of the standard creates questions. One of the easiest and most obvious to consider is who wrote the standard. Then there is the question of who pays for the creation of the standard? Well clearly this was not just a labor of love, as Dr. Reid says the costs of development have to be passed on to the customer's of the standard. I should note, my blog makes me no money and I am not a consultant so I have little incentive to make money speaking about this. I made no money in writing my letter to the editor, and I certainly don't demand you pay to read my work. I am not discounting the cost of writing the standard, just simply saying that if you plan on having expenses paid by publishing your work, you are not simply doing this out of the kindness of your heart. There is lots of analysis that could be done just on the defense of the standards alone, but is outside the scope of this particular post.
One of the oddest and most compelling arguments for both sides is from Rex Black, in which he notes that about 98% of all testers won't care one way or another. I think this is true, which makes the standards mostly not matter, but it also means that those 98% who are silent count on us to ensure these are the right standards, lest they become popular and that silent 98% ends up forced into using them. I fear that this non-involvement is also further evidence that we testers as a group are not acting like a profession. It isn't that we don't claim to have "extraordinary knowledge" and Dr. Reid at least seems to argue we mostly agree on this knowledge, but rather the majority of people don't feel any need to actively participate. I realize this might be an argument for why we need a standard -- to show the disinterested the 'right' way to test, but to me it seems to indicate just how young our industry is and seems to me that shows why we aren't ready for a standard.
Even if the ISO body decided these documents ultimately should stand, the objections of the AST/Context Driven community need to be noted in such a standard. Furthermore, making the document open will go a long way in allowing the community to discuss this document beyond the smaller standard's committee. I recognize that ISO needs income to maintain itself and won't publish them for free for everyone, but certainly some sort of 'for individuals, not corporations' license could be used (and I don't mean the sort of non-sense Matt Heusser describes). Finally, if this is an attempt to demonstrate our commitment to professional testing, then it needs to be accessible to our community. The work needs to demonstrate it's value rather than being buried away inaccessible to those who would use it.
“In return for access to their extraordinary knowledge in matters of great human importance, society has granted them a mandate for social control in their fields of specialization, a high degree of autonomy in their practice, and a license to determine who shall assume the mantle of professional authority. But in the current climate of criticism, controversy, and dissatisfaction, the bargain is coming unstuck. When the professions’ claim to extraordinary knowledge is so much in question, why should we continue to grant them extraordinary rights and privileges?”This is a serious question, one for which I appreciate that a standard might seem like a correct method for 'proof' of our professional authority. However, even if the standard is in fact a professional guide, I don't think anyone but practitioners can judge its value. As someone who has had a keen interest in trying to understand this standard, and not wanting to judge too quickly, I have tried to get a hold of a great deal of material about it. I have engaged with some of those whom disagree with my point of view, such as professional tester. In fact, they have published my response in there Oct. 2014 issue (albeit with some minor mistakes from my draft). I looked into purchasing the standard. I have looked for those who are pro-standard and what they've had to say about this movement as well as what they have said in the past.
That being said, I'm not convinced we actually do know what a standard should look like, much less if this is the standard we need. Maybe it is what we need, but I strongly doubt it. I think we are likely many years or decades away before we will even be able to claim we have true repeatable practices oriented towards different contexts, assuming it is possible. I am unable to judge at present what the standard does say, as the standard and the standard body's work is less than transparent. I've been forced to sign up with personal details in order to read documentation about the standard's creation, although that has been changed since (NOTE: The file name also changed, including a date, which makes it hard to know if anything has changed, as there was no change log as of 10/26/2014). The standard requests I pay in a currency that I don't use. I've signing the petition to withdraw the standard not because I know it is wrong, but because I can't tell, which makes it useless at best and dangerously wrong at worst. What I can tell is that the standard's various author's other documents around the standard demonstrate what I consider to be confusing if not out right contradictory statements, making me doubt the actual standard. That breaks the social bargain us professionals have that Everett Hughes so eloquently described.
Perhaps you could say that I should have been personally involved in the standard, and that is a valid complaint. However, I'm not aware of anyone particularly reaching out to the AST, nor have I heard of it from any other group except for James Christie's talk in 2014. I have attended both AST sponsored and non-AST sponsored conferences for years, so this isn't a case of willful ignorance. This is my first chance to review the material and process, yet I have not found the process particularly open or transparent. I see claims of no best practices and claims that the standard will create best practices. I have found so many confusing statements by the standard's body that I must conclude that the standard should be withdrawn until it can be thoroughly reviewed and modified, if it can even be modified into something useful.
Even ignoring past statements, the recent defense of the standard creates questions. One of the easiest and most obvious to consider is who wrote the standard. Then there is the question of who pays for the creation of the standard? Well clearly this was not just a labor of love, as Dr. Reid says the costs of development have to be passed on to the customer's of the standard. I should note, my blog makes me no money and I am not a consultant so I have little incentive to make money speaking about this. I made no money in writing my letter to the editor, and I certainly don't demand you pay to read my work. I am not discounting the cost of writing the standard, just simply saying that if you plan on having expenses paid by publishing your work, you are not simply doing this out of the kindness of your heart. There is lots of analysis that could be done just on the defense of the standards alone, but is outside the scope of this particular post.
One of the oddest and most compelling arguments for both sides is from Rex Black, in which he notes that about 98% of all testers won't care one way or another. I think this is true, which makes the standards mostly not matter, but it also means that those 98% who are silent count on us to ensure these are the right standards, lest they become popular and that silent 98% ends up forced into using them. I fear that this non-involvement is also further evidence that we testers as a group are not acting like a profession. It isn't that we don't claim to have "extraordinary knowledge" and Dr. Reid at least seems to argue we mostly agree on this knowledge, but rather the majority of people don't feel any need to actively participate. I realize this might be an argument for why we need a standard -- to show the disinterested the 'right' way to test, but to me it seems to indicate just how young our industry is and seems to me that shows why we aren't ready for a standard.
Even if the ISO body decided these documents ultimately should stand, the objections of the AST/Context Driven community need to be noted in such a standard. Furthermore, making the document open will go a long way in allowing the community to discuss this document beyond the smaller standard's committee. I recognize that ISO needs income to maintain itself and won't publish them for free for everyone, but certainly some sort of 'for individuals, not corporations' license could be used (and I don't mean the sort of non-sense Matt Heusser describes). Finally, if this is an attempt to demonstrate our commitment to professional testing, then it needs to be accessible to our community. The work needs to demonstrate it's value rather than being buried away inaccessible to those who would use it.
Tuesday, October 14, 2014
Noise to Signal: An Attempt to Understanding What Smart People Have To Say
Where I've been
Frankly, I don't know how to start this thing. Perhaps it belongs in my bedroom when I was in high school writing little programs. Perhaps it belongs just a few years back. I have and am constantly looking to, in some way, do better for whatever "better" is for me. I don't pretend to have answers for everyone or even that there is a static answer for myself.
In my bedroom I had finally found an interesting productive task. I was learning to program. I would search for hours for that one little magic bean to get me moving along again. To use a game metaphor, I was leveling up in my knowledge at a rapid pace.
At my first testing job, I did firmware and hardware testing. I sat around, watching machines work and sometimes break down. As there was a large hardware component, I found quickly there was little to learn in rapid fashion, so instead I leveled up my political and social abilities, talking with the leads, learning how the organization worked. I became a lead, and saw that it too was a trap, with just more paper pushing, so I found a different area to do more software-oriented testing. I learned about LDAP and Kerberos and, and and .... I was on the path to leveling up. I was still programming in my bedroom, still writing games, and later different applications I found a need for, or an interest in developing.
Skipping a little, I started developing my own automation. I built framework after framework, learning what things I didn't like and what I did. I started in on teaching people. I have mentored several people, sometimes more successful than others. I leveled up in different areas around testing and development. I had built my own testing tool, which admittedly has been neglected for years at this point, but I gained a lot of insight into the underbelly of an automation tool. I even did market research to see if it was worth starting my own company. I didn't start my own company for reasons not within scope of this blog, but it appears to have been a wise choice.
All of these things I did on the basis of my judgment and learning. Isaac might have been a something of a mentor, I did read a few books, but mostly I did it on my own. The last few years I have been looking at where to go from 'here'. I have done most of the interesting difficult forms of automation, I have even worked towards pioneering my own methods and frameworks. So in looking for what's next, I've been trying to learn from smart people and what they have to say, and not just within testing.
What do smart people say?
If you Google about what smart people know or do, you are bound to find pithy pieces of generic advice. Not to say there aren't perhaps hidden gems in this, but these gems are minor. Frankly in the world of wisdom, anything involving a list seems like someone who doesn't know what they are talking about but hope there work gets hits. Add exclamation marks for further effect, and it feels less like real data and more like an advertisement. Let me give you some examples:
- Work Hard!
- Don't Quit, Even When It's Hard!
- Never Stop Trying!
- Ignore Everyone Else and Do What You Think Is Right!
- Don't Look Back!
Well let me give you something that looks like a list but is rather a set of sources I have considered. These are not quotes, but roughly the idea I took from them.
- Don't set goals, use systems. - Scott Adams
- Find things that don't scale in a linear fashion. - Scott Adams, Randy Pausch
- Change is inevitable. - Robert Heinlein
- Progress comes from people trying to solve a problem in a more effective/lazy way - Robert Heinlein, Paul Graham, Dr. Richard Hamming
- Luck matters, but only a little - Too many to list
- Knowledge and productivity compounds, the earlier or more you learn, the more you'll know later. - Dr. Richard Hamming, Steve Yegge
- I have managed doubts in what I 'know', and that is okay. - Dr. Richard Hamming, James Christie
- People's requests and errands take time, up to all of it. - Heinlein, Paul Graham
Do you know what problems matter? Why aren't you working on them?
After thinking about this mind-blowing set of questions, it makes me ponder what answer can I give? I could give answers for my own company, but that feels too small. I could give answers to the world's problems, but that is too big. So maybe I can give answers around my industry, with a focus on testing:
- Why do testers leave at year 5?
- Why do automation efforts fail so often (and is that related to people only staying in testing for 5 years or less)?
- How should we be teaching the next generation of testers? Do we have accessible training designed to get people to the 5 year mark? What about beyond that?
- Why is only a small percentile of humanity appear useful to me (and am I in that percentile)?
- For that matter is my definition of useful a good and valid definition and would investigating that provide me with an interesting problem?
- How do we extract the most useful data in the world and provide it to the people who care?
- How can I get machines to solve most basic problems?
- What do we do with those who were working before these problems were automated?
- How do we effectively train the next generation so they don't repeat the same mistakes as the last generation?
- When are particular methods of testing more or most productive?
- How can we significantly improve testing without additional resources (E.G. Tools)?
- How do we improve or prevent the conditions for sweatshop-like development companies?
- How do we improve security in our software development?
[Some] Sources:
http://www.paulgraham.com/hs.html
http://www.paulgraham.com/hamming.html
http://www.cs.virginia.edu/~robins/YouAndYourResearch.html
http://www.amazon.com/How-Fail-Almost-Everything-Still/dp/1591846919/
http://steve-yegge.blogspot.com/2008/06/done-and-gets-things-smart.html
http://www.youtube.com/watch?v=ji5_MqicxSo
Edit, Additional Link: http://www.youtube.com/watch?v=vKmQW_Nkfk8
Thursday, October 2, 2014
Societal Norms, Software Development and Culture
Preamble
I don't think that everything we do and consider in regards to test should actually revolve around testing. That is to say, while testing is a primary consideration, it is just one of many considerations. For example, making our team as optimal as possible might be a consideration. Say that testing a particular feature would set back the sales group who are trying to do a demo of the product in the environment you are testing on. Now not testing might in fact be considered an important activity in your testing career. This post is simply about factors that while are very important in software development, they are not limited to that subject.I personally tend to read many different and varied development related blogs, and you will find I write broad posts, posts that are not directly tied with testing, but certainly can be applied to testing. This is one of those; you have been warned. I have held this article for many months while I have struggled with the words, which I am still not completely happy with, so I hope you forgive the age of the linked article. In my reading of the post Games Girls Onions, a post specifically about game development, I found some interesting questions I have asked in my career. I think I can perhaps boil it down to two questions:
1. How do I deal with individuals?
2. How do I deal with groups of individuals?
This particular person found some of the interactions of her male co-workers to be sub-optimal, but the question is, did they intentional ignore those questions, or were they trying to find the right balance between the group and the individual? Furthermore, if that balance is wrong, is that a cultural thing or a issue with a particular person? Last but certainly not least, if some particular external group dislikes what the culture does, is it the individual or the group that needs to change? Lets try to dive into these questions.
In my personal dealings, I have found that each and every individual is different. That is not news worthy of course, but it is worth thinking about. I have dealt with thousands of different people, and each one of them had some subtle variation to them. However, most high level personality traits could be categorized, and those categories can play a part in how you deal with someone in a new situation.
Complexity
Consider this example, you know your over-zealous co-worker who cares a great deal about usability. Even though you don't know for sure, you can guess that like other testers you've dealt with in the past, they too will enjoy working in an area they are passionate about. Offering to trade your UI piece for their API piece might be a good idea if you don't have any particular passion for UI testing. This of course assumes your boss is okay with it, which makes this at least a small group choice. Since you know the last few times you have juggled work around, she was totally good with it, so you don't even bother to ask first and just do it. Lets pause here and consider. You choose to do the thing that made your co-worker happy while not bothering your boss, as they are likely busy. From an individual basis, you made your co worker happy.
You didn't consider the team, as you don't 'report' to the team. Now in a culture that appreciates employee happiness and efficiency, this might work out fine. In a culture that rather have consistency and order, this choice may be a problem, even when no one is directly affected. Your boss might respect your choice of taking initiative, but still might chew you out because the group or culture doesn't embrace that style of work. Maybe the guy you swapped with is disliked by one of the developers on the UI team (as he is too passionate), so this makes things worse for the team. But who decides these things? Human activities are really complicated and to put blame on any individual is likely unfair.
Norms
Social norms start to show up in a particular culture to define what is or isn't acceptable so that way a group knows how to react and what is acceptable. I realize saying this might offend someone, but when you try to break social norms, expect the society to attempt to break you. In the culture of development, there is an assumption that it was a male dominated activity. Like it or not, that is presently, in most countries, a social norm and those who break that norm are more likely to feel social pressure. Is it natural? Norms are natural in human society, this particular norm is just cultural. I recently heard in a BBC radio interview that one country (no citation, as I can't find the details) has about a 1:1 ratio of women to men in software development. To consider a different culture and norm, Victorians expected a particular style of dress to fit into a particular class. If you didn't fit into that dress, you failed their normative test and you were looked down upon. Now that norm is broken and so we can now wear Jeans acceptably. On the other hand, in my culture, I can't wear slippers into work everyday without being looked at strangely (if not fired, depending on which job I look back at).
Back to considering the article, the developer talks about her nice window office -- a thing that is usually reserved for higher level developers. Maybe that isn't the case at her office, but to me that is automatically a status symbol. Now she notes that one time, a weird incident happen where a drunk co-worker showed up and talked to her in a way she didn't like for 20 minutes. She talks about being treated differently, because she is being classified in what is defined as a social norm that she did not agree to. The problem is, we as a society don't have sophisticated categories in our culture which model real human beings. It is difficult to know exactly how to handle a female developer who accepts crude jokes, wants to be looked upon as socially confident, but then feels threatened by being alone with a drunken coworker. It is not that I don't appreciate the dichotomy, how situations can be uncomfortable, nor how the details might be important in giving me a more solid opinion. In culture, norms tend to be broad heuristics and in order to change the cultural and norms, it takes a long time and requires us to make mistakes along the way.
Being a Fraud
In fact, right now, we have a very cold, unfeeling society. Consider Kevin Fishburne's comment in that post,
From the mortgage industry to pizza joints it's been my experience that regardless of how good or bad your relationships appear at work once you walk out that door they're over. I liken being at work to acting in a play; you're not being you, but what you think you need to be at the time.
I'm sure there are plenty of exceptions where great lifelong friendships are formed on the job but it hasn't happened to me, sometimes much to my surprise. Not sure if this is just me or an actual phenomenon, but if the latter it may have some bearing on why people act differently at work then they would elsewhere....The idea that we all follow social norms, faking our way through the work experience appears to not be particularly a-typical. The fact that the author feels the need to complain about these issues shows she is fighting at least one social norm. As a tester, it is not unreasonable for us too to want to test our current social situations and attempt to improve them. One item that I agree with the author on, but am not sure is a 'bug' is the feeling that you are a fraud. To take a few quotes from the movie Art & Copy,
The frightening and most difficult thing about being what somebody calls a creative person is that you have absolutely no idea where any of your thoughts come from, really. And especially, you don't have any idea about where they're going to come from tomorrow. - Hal Riney
I think most of the creative people are so damn insecure that they want to think they know everything, but they know deep in their hearts they're just in deep trouble from the minute they get up in the morning. So if you can tell them "that's what you're supposed to be", that's kind of liberating. - Dan Wieden
When we are often not even genuine with ourselves, how can we be honest with others? Dunbar's number (and others) suggests we can't care about more than about 300 people, with the number more likely 150 people. This isn't just other people, this is you too. This isn't just you, this is other people as well. Keep that in mind. Since our capacity to care about humanity is so low, our ability to repair or change an entire culture is extremely limited. Thus our social norms are not and can't be designed by any particular person for the masses. On the other hand, I can only keep track of so many people's personal preferences. When a culture says something like, "Dirty jokes are okay at work" and the broader culture says "Dirty jokes are never okay when a woman is around," what do you do? Perhaps your mind checks to see if you know the woman and decide based upon that? Perhaps you test them with a joke? What happens if that one joke gets you called in front of HR? I recall one man being written up for calling a group of testers 'test monkeys' (he too was a 'test monkey' in his own opinion), but that insulted one man's sensibilities. You can't please everyone.
We Are All Unique
The alternative is to say we are all unique. This idea of course runs counter to Dunbar's number that I can't handle everyone and have to limit myself to a certain set of people whom I use categories for. Even if we are all unique I can't know how to start with each unique personality. I start to develop rules, like "this group seems to often act like X" and apply that, but it takes time. I can't start fresh, not knowing anything.
For example: Does silence means yes or no?
If you answered the question you are wrong. If you remained silent you might too have been wrong (unless silence means I don't know). As an example of yes, consider the political process in the EU. Wiki itself notes that silence doesn't always mean consent. In one of my Psychology text books back in college, I recall read that in the middle east, a pilot attempted an unscheduled landing and asked for permission to land. He got no response back and assumed that meant yes. He got into some rather big trouble when he tried to land and they shot at him, because silence meant no.
If you attempt no assumptions ever, you have to relearn everything every time, and with reading other's writing, you can't even know if the person you are learning is the same each time, as a persona does not equal a person (as Ben Franklin demonstrated).
At least in one example in the article, the author mentions how swearing is fine by her. One of the commenter noted that she did not feel the same way. If you can have people upset both ways, you bet there is a third way. Hell, even asking, which feels a little odd, might upset someone who assumes that the matter is already culturally settled. Note how I wrote hell just now. I wonder if I upset any readers or caused them to pause.
Impossibility to Adapt
If you can't adapt because everyone's situation is too dynamic and everything depends, what do you do? Since we can't adapt and culture is impossible to change by one person, we must suffer, with those who fight to change the situation slowly, making sacrifices for what they believe in. I don't mean to sound harsh, but the only ways to change a culture is to work really hard at it and often suffer slings and arrows. Sometimes waiting for others to move on or die off helps, but that takes years. Alternatively, one can leave or build their own culture. Basically, no matter which option you take, expect that it will take a lot of work!
Thursday, August 21, 2014
Words of the Week: Critique and Criticism
Preamble / Ramble
This is a first for me and word of the week, as I typically consider a word without much personal context, but this week I am going to include a context. While at CAST this last week, I heard some valuable input regarding my blog. No matter how I get feedback, I try to take it and make it useful. I tend to be direct with my feedback, but for some, that can sound harsh, so this week I’m going to consider two different words. If you don’t want to hear the backstory, just skip down to the next section. However, for those that care, I do want to give some context and clarity in my own words. I have now heard from multiple sources that they felt my writing reflected a negative viewpoint towards the Software Testing World Cup 2014. I think that to be an inaccurate statement. I did have some issues with it, and I felt I was doing a deep dive analysis of both the pros and the cons of the contest, up to the point I had gotten. In assuming that I was writing a report about my experience with the contest, going into both the good and the bad. I also wanted to talk about what I could gain from the contest and what could be done better. In my second part I wanted to consider what the judges had to say, so I could learn where to improve as well as note what additional feedback would be nice to have. I understand that this is a contest, but I think the more important piece is what can be learned from it. To be fair, perhaps the organizers didn’t want what I had to say, as they actually asked for:
“At the moment we are very curious about your personal STWC experience. We would love to read blog posts or any other kind of written reports about your participation. It doesn’t matter if you write from your personal point of view or from the perspective of your whole team. We are interested in hearing how much fun you had during the competition, what you have learned from this experimental challenge, and what the difference is between testing while having fun together with friends and testing at work. We are also interested in how you communicated with your team members and what your team’s strategy was. Did you start testing right away or did your team follow a strategy? How did you create that strategy? What was your biggest challenge within your team, what kind of bugs were you able to detect and how did you like working with the Agile Manager tool?”
I took this to mean they were excited to receive any feedback regarding the design of their contest. They also wanted to hear what we did and why we did it. I heard that they were open for a critique of the process so that they could attempt to improve it. Furthermore, we were not told not to post scores, as we felt that it was important that those who participated could compare scores and learn where they could improve. In fact I encouraged others to post scores, but no one actually did so. We also thought it might add value to future judging to see a relatively unemotional reaction to the scores given. We made the judge’s scores more anonymous as it felt important not to provide any identifiable information. However, it seems some saw what I thought was a critique others felt was criticism. This leads me to the two words, critique and criticism. Having re-read my content I can see that it could be read as criticism, and while I won’t take back my words, I will keep that in mind for the future. So on to the words of the week.
Back to our Regularly Scheduled Program
First allow me to define these two words in the way I think of them, without doing much research nor using Google to define the words. I think of criticism and critique as similar, but with a difference in tone and intent. To criticize someone is to give back negative statements, with either the intent to hurt/harm, with no positive points and to lack any possible ways to improve, be they implicit or explicit. Calling someone stupid is to be critical of someone’s intellectual factuality. It is likely intended to harm, has no positive points and does not hint at a way of improving. To critique is to provide feedback with the intent to improve a person or person’s work in some way. There is a mix of some positive points in the comments as well as negative comments. Gushing praise or all negative points is probably not a critique. Furthermore, at least some of the statements need to be actionable. Critique also feels very student/teacher-y. Criticism on the other hand seems like it refers to bullies and angry people shouting at each other. I want to capture this in a readable way for later usage:
| Criticism | Critique | Gushing Praise |
|---|---|---|
|
|
|
Now let’s see how I did. There are a lot of different people’s views on these words, so let me try to capture just a few of them.
Various versions of Critique and Criticism
According to the presently [August 20th, 2014] most popularly rated stack exchange view the difference is zero. They point out how in 1960’s academics started to try to use critique as a form of analysis rather than meant to censure, but that didn't stick. They cite several modern examples of mixed usage of the terms. In comparison, Paul Brians, the author of Common Errors in English Usage, says:
“Josh critiqued my backhand” means Josh evaluated your tennis technique but not necessarily that he found it lacking. “Josh criticized my backhand” means that he had a low opinion of it.Clearly their is some difference of opinion on the meaning of the word. In Writing Alone, Writing Together; A Guide for Writers and Writing Groups by Judy Reeves, there is a interesting comparison of criticism and critique:
“[1]Criticism finds fault/Critique looks at structure
[2]Criticism looks for what's lacking/Critique finds what's working
[3]Criticism condemns what it doesn't understand/Critique asks for clarification
[4]Criticism is spoken with a cruel wit and sarcastic tongue/Critique's voice is kind, honest, and objective
[5]Criticism is negative/Critique is positive (even about what isn't working)
[6]Criticism is vague and general/Critique is concrete and specific
[7]Criticism has no sense of humor/Critique insists on laughter, too
[8]Criticism looks for flaws in the writer as well as the writing/Critique addresses only what is on the page”
(NOTE: I numbered the following quote for later convenience)
It is not completely clear some of the differences between criticism and critique, as I can find fault in the structure of a work, which leaves me in no mans land. Wait… wait…
I want to analyze my last sentence, using the rules listed above. In the second rule, I clearly have a criticism of the writing. The the third rule says if I had asked in the form of a question, if I had said “It appears not completely clear some of the differences…” and perhaps ended with a question mark it would have been a critique rather than a criticism. That appears to me to mean the syntax matters more than the semantic content in the author’s opinion?* Oh, this gets us to rule four. While I made my statement objective and honest, it might not be considered kind. I can’t tell if my statement could be seen as negative or positive. It certainly isn’t positive, so I’m going to read between the lines and call it criticism. I think my statement seems concrete and specific, even if no exact example was given. However, it isn’t full of humor, nor is most of my writing.** The final dimension is about the author. With no reference to the author, I think I am addressing only what is on the page. Ultimately it feels that this set of tools has limited value as it takes too much analysis and when you have 5 / 8 on the criticism side, is it criticism? To the definition's benefit, it does try to capture the concepts I stated early about providing some positive points and providing negative points without beating the subject up. It adds to my definition attempt that you should be addressing the content rather than external influences and adds the idea that the critical comments be concrete. However, it fails to address the possibility of simply gushing rather than capturing the areas of improvement.
Obviously my example is contrived, but look at the above paragraph as whole (yes, I’m getting meta) I would call it a criticism using the rules Judy Reeves developed, yet it wasn’t intended to be. So it feels wrong in some way or perhaps I’m simply wrong. In my mind, she is looking for more positive views rather then stressing the analysis. That is to say the message is less important than the presentation. In my opinion, I’m critiquing the content, because I follow my own rules as well as the new rules I have developed.
* Yes, that was intentionally sarcastic. I hope you can appreciate the joke.
** Ignoring the above *’d item. It wasn’t that funny anyway.*
To Sum Things Up
Some people don’t see a difference between criticism and critique. In more academic circles, it appears that a divide is seen, even if the divide is a little fuzz. Some see it as a difference of purpose, some see it as a difference of the message and some see it as a difference of the content. How do I see it? Well, let me capture the attributes I think matter:
| Criticism | Critique |
|---|---|
|
|
In reviewing my own work, I think it falls under the label critique, but I can see how others might read something into it. Written critiques are hard to convey personality. You can see that with my footnote joke above. In going so meta, I was intending on injecting some levity into an otherwise highly intellectual process. But others might see it as 'unprofessional' or they might read my words as snarky. In getting my article reviewed, Isaac said he thought it was a little on the snarky side, but that in his view it was just right to make the point. Outside of getting my content reviewed, I am not sure I can defend against hurting people with a wide audience and perhaps that is Judy's point. By being kind, you avoid the question completely. Do you have a critique or feedback for me? Feel free to post in the comments.
As a sort of post script, I happened upon this site after I wrote this article. As I didn't want to shoe horn it in, yet felt it was of some value, so I put it here.
Friday, June 27, 2014
My Current Test Framework: Testing large datasets
I recently wrote how I felt few people talk about their framework design in any detail. I feel this is a shame, and should be corrected as soon as possible. Unfortunately, most companies don't allow software, including testing automation to be released into the public. So most of the code we see is from consultants with companies occasionally okaying something. In my case, I did something like a clean room implementation of my code. It is much simplified, does not demonstrate anything I did for my company nor does it directly reference them. It is open source and free to use. Without further delay, here is the link: https://github.com/jc-d/Demos.
It is in Java and was intended as part of a demo for a 2 hour presentation. Because of the complexity of the system, I'll write some notes about it here. I used IntelliJ to develop this code and recommend using it to view the code. It does use Maven for the libraries, including TestNG which you can run from IntelliJ. Many of the concepts could be translated to C# with little difficulty.
So what does it do? It demonstrates a few different, simple examples of reflections and then a build up of methods for generating test data in reflective and possibly smarter fashion (depending on context). I'm sure your sick of hearing about reflections from me, so I'll try to make this my last talk on them for a while, unless I come up with something new and clever.
As a brief aside, Isaac claims that while this is a valiant attempt to write out a code walkthrough, it really needs to be a video or audio recording. Perhaps so, but I don't want to devote the time unless people want it or will find it useful. As I have my doubts, I'm going to let the text stand and see if I get anyone requesting a video. If I do maybe I'll put some time into it. Maybe. :)
Now all the rest of the code is around different methods for generating data. I will briefly describe each of them and if you want to you can review the code.
The HardcodedNaiveApproach is where all of the values are hard coded by using quoted strings. E.G. x.setValue("Hard coded"); This is a good method for 1-3 tests but if you need more you probably don't want to copy and paste that data. It is hard to maintain, so you might go to the HardcodedSmarterApproach. This method uses functions to return objects with static data so you can follow the DRY principle. However, all the data is the same each time. So you add some random value, maybe append it to the end. The problem is what are your equivalent class values? For example, do you want to generate all Unicode characters? What about the error and 'null' characters? Are negative numbers equally valid to positive numbers. If not, then your methods are less DRY than you might want as you will need different methods for each boundary, if that matters. Also you are writing setters for each value, which might fail when a new property is added. We haven't even talked about validation yet, which would require custom validators based upon the success/failure criteria generated by the functions you write. That is to say if you generate a negative number and it should fail for that, not only does your generator have to handle that but your validator does as well. What to do?
Perhaps reflections could help solve these problems? The ReflectiveNaiveApproach instead uses the typing system to determine what to generate for each field in a given class. An integer would generate a random integer and a string would generate a random string. We know the field name and class type so we could add if statements for each field/type but that puts in the same maintenance of new properties we had with the hard coded approaches. If we didn't do that we could still handle new properties assuming we knew how to set the type, but it might not fit the rules of the business logic and we have no way to know if it should work or not. For fuzz testing this is alright, but not functional testing. Is there any solutions? Maybe.
The final answer I currently have is the ReflectiveSmarterApproach. In effect when you need to generate lots of different data for lots of different fields, you need to have custom generators per class of fields. What is needed is an annotation for each field telling it what needs to be generated. An example of that can be found in the Address class. Here is a partial example of this:
Now let us look at an example generator:
This generator generates a random address as well as an empty address. It is clear one of these addresses is valid while the empty address appears to be a negative test.
Through the power of reflections you can do something like this:
The exclude piece is where you might filter out generating certain values. Say you want to only do positive (as in expected to be successful) tests, you might filter out the negative tests (those that expect not to complete the task and possibly cause an error). The third line generates you an object with all the properties that have the attached annotation and values. Now this does not handle new fields automatically but it could certainly be designed to error out if it found any un-annotated fields (it is not at present designed to do this) and if you embed the code in your production code, it would be more obvious to the developer they need to add a generator.
Now how do we pick which value to test when we could test with the empty address or a real address? At present it picks it randomly because according to James Bach, random only takes roughly 2x to get equal coverage to pair wise testing. Since we know all about the reason for generating a particular value (what error it would cause, etc.) we can at run time say how the validation should occur. The example validation is probably a bit complex, but I was running out of time and got a bit slap-dash on that part. One issue with this method is it is hard to know what your coverage is. You can serialize the objects for later examination and even create statistical models around what you generated if needed.
This simple version can be made to support other environments with relatively little code modification. It took much of the research and ideas I had and implemented in a simpler fashion which is more flexible. You should easily be able to hook up your own class, create annotations and generates and have tests being generated within a day (once you understand how). On the other hand it might take a little longer to figure out how to do the validation as that can be tricky.
One problem I have with what I have generated is there is no word or phrase to describe it. In some sense it is designed to create exploratory data. In another sense it is a little like model driven testing in that it generates data, has an understanding of what state it should go to and a method to validate it went to the correct state. However it doesn't traverse multiple states and isn't designed like a traditional MDT system. Data Driven Testing describes a method for testing using static data from a source like a csv or database. While similar, this creates dynamic tests that no tester may have imagined. Like combinatorics, this creates combinations of values, but unlike pairwise testing, the goal isn't just generating the combinations (which can be impossible/unpractical to enumerate) but to generate almost innumerable values and pick a few to test with, while enforcing organization of your test data. This method also encourages usage of ideas like random values while combinatorics is designed to have a more static set of values. Yes you can make combinatorial ideas works with non-static sets, but it requires more abstraction (E.G. Create a combination of Alpha, Alpha-numeric, ... and this set of Payment method, now use the string type to choose what generate you use) and complexity. Finally combinatoric methods can have difficulties when you have too many variables, depending on implementation. This is a strange hybrid of multiple different techniques. I suppose that means it is up to me to try to name it. Let's call it:JCD's awesome code. Reflective Test Data Model Generation
I would say don't expect any major changes/additions to the design unless I start hearing people using it and needing support. That being said I love feedback, both positive and negative.
While researching for this article I came across this which is cool, but I found no good place to cite it. So here is a random freebie: http://en.wikipedia.org/wiki/Curse_of_dimensionality
It is in Java and was intended as part of a demo for a 2 hour presentation. Because of the complexity of the system, I'll write some notes about it here. I used IntelliJ to develop this code and recommend using it to view the code. It does use Maven for the libraries, including TestNG which you can run from IntelliJ. Many of the concepts could be translated to C# with little difficulty.
So what does it do? It demonstrates a few different, simple examples of reflections and then a build up of methods for generating test data in reflective and possibly smarter fashion (depending on context). I'm sure your sick of hearing about reflections from me, so I'll try to make this my last talk on them for a while, unless I come up with something new and clever.
As a brief aside, Isaac claims that while this is a valiant attempt to write out a code walkthrough, it really needs to be a video or audio recording. Perhaps so, but I don't want to devote the time unless people want it or will find it useful. As I have my doubts, I'm going to let the text stand and see if I get anyone requesting a video. If I do maybe I'll put some time into it. Maybe. :)
Now on to the code...
First the simple examples which I do use in my framework but not as simple as this. The two simple examples are DebugData and ExampleOfList and both are under test/java/SimpleReflections. DebugData shows how you can use reflections to print out a simple object one level. down. It 'toStrings' each field in the object given. Obviously if you wanted sub-fields that would take more complex code, but this is often useful. ExampleOfList takes a list of string and runs a method on each item on the list and returns back the modified list. Obviously this could be any command, but for simplicity of the demo I limited it to methods that did not take arguments.Now all the rest of the code is around different methods for generating data. I will briefly describe each of them and if you want to you can review the code.
The HardcodedNaiveApproach is where all of the values are hard coded by using quoted strings. E.G. x.setValue("Hard coded"); This is a good method for 1-3 tests but if you need more you probably don't want to copy and paste that data. It is hard to maintain, so you might go to the HardcodedSmarterApproach. This method uses functions to return objects with static data so you can follow the DRY principle. However, all the data is the same each time. So you add some random value, maybe append it to the end. The problem is what are your equivalent class values? For example, do you want to generate all Unicode characters? What about the error and 'null' characters? Are negative numbers equally valid to positive numbers. If not, then your methods are less DRY than you might want as you will need different methods for each boundary, if that matters. Also you are writing setters for each value, which might fail when a new property is added. We haven't even talked about validation yet, which would require custom validators based upon the success/failure criteria generated by the functions you write. That is to say if you generate a negative number and it should fail for that, not only does your generator have to handle that but your validator does as well. What to do?
Perhaps reflections could help solve these problems? The ReflectiveNaiveApproach instead uses the typing system to determine what to generate for each field in a given class. An integer would generate a random integer and a string would generate a random string. We know the field name and class type so we could add if statements for each field/type but that puts in the same maintenance of new properties we had with the hard coded approaches. If we didn't do that we could still handle new properties assuming we knew how to set the type, but it might not fit the rules of the business logic and we have no way to know if it should work or not. For fuzz testing this is alright, but not functional testing. Is there any solutions? Maybe.
The final answer I currently have is the ReflectiveSmarterApproach. In effect when you need to generate lots of different data for lots of different fields, you need to have custom generators per class of fields. What is needed is an annotation for each field telling it what needs to be generated. An example of that can be found in the Address class. Here is a partial example of this:
public class Address {
@FieldData(dataGenerators = AverageSizedStringGenerator.class)
private String name;
@FieldData(dataGenerators = AddressGenerator.class)
private String address1;
//...
}
Now let us look at an example generator:
public class AddressGenerator extends GenericGenerator {
@Override
public List<dynamicdata> generateFields() {
List<dynamicdata> fields = new ArrayList<dynamicdata>();
fields.add(new DynamicData(RandomString.randomAddress1(), "Address", DynamicDataMetaData.PositiveTest));
fields.add(new DynamicData("", "Empty",
new DynamicDataMetaData[] {DynamicDataMetaData.NegativeTest, DynamicDataMetaData.EmptyValue}).
setErrorClass(InvalidDataError.class));
return fields;
}
}
This generator generates a random address as well as an empty address. It is clear one of these addresses is valid while the empty address appears to be a negative test.
Through the power of reflections you can do something like this:
List<DynamicDataMetaData> exclude = new ArrayList<DynamicDataMetaData>(); exclude.add(DynamicDataMetaData.NegativeTest); ReflectiveData<Address> shippingAddress = new CreateInstanceOfData<Address>().setObject(new Address(), exclude);
The exclude piece is where you might filter out generating certain values. Say you want to only do positive (as in expected to be successful) tests, you might filter out the negative tests (those that expect not to complete the task and possibly cause an error). The third line generates you an object with all the properties that have the attached annotation and values. Now this does not handle new fields automatically but it could certainly be designed to error out if it found any un-annotated fields (it is not at present designed to do this) and if you embed the code in your production code, it would be more obvious to the developer they need to add a generator.
Now how do we pick which value to test when we could test with the empty address or a real address? At present it picks it randomly because according to James Bach, random only takes roughly 2x to get equal coverage to pair wise testing. Since we know all about the reason for generating a particular value (what error it would cause, etc.) we can at run time say how the validation should occur. The example validation is probably a bit complex, but I was running out of time and got a bit slap-dash on that part. One issue with this method is it is hard to know what your coverage is. You can serialize the objects for later examination and even create statistical models around what you generated if needed.
Summary
Obviously this is a somewhat heavy framework for generating say 20 test data values. But when you have a much larger search space that approaches infinite this is a really valuable tool. I have generated as many as 50 properties/fields about 400,000 times in a 24 hour period. That is to say, generating roughly 400,000 tests. I have found bugs that even with our generator would only be seen 1 : 40,000 times and would probably have never been found in manual testing (but would likely be seen in production). The version I use at work has more than a years worth of development and research, supporting a lot more complexity than exists in this example, but I also don't think it could be easily be adapted as it was built around our particular problems.This simple version can be made to support other environments with relatively little code modification. It took much of the research and ideas I had and implemented in a simpler fashion which is more flexible. You should easily be able to hook up your own class, create annotations and generates and have tests being generated within a day (once you understand how). On the other hand it might take a little longer to figure out how to do the validation as that can be tricky.
One problem I have with what I have generated is there is no word or phrase to describe it. In some sense it is designed to create exploratory data. In another sense it is a little like model driven testing in that it generates data, has an understanding of what state it should go to and a method to validate it went to the correct state. However it doesn't traverse multiple states and isn't designed like a traditional MDT system. Data Driven Testing describes a method for testing using static data from a source like a csv or database. While similar, this creates dynamic tests that no tester may have imagined. Like combinatorics, this creates combinations of values, but unlike pairwise testing, the goal isn't just generating the combinations (which can be impossible/unpractical to enumerate) but to generate almost innumerable values and pick a few to test with, while enforcing organization of your test data. This method also encourages usage of ideas like random values while combinatorics is designed to have a more static set of values. Yes you can make combinatorial ideas works with non-static sets, but it requires more abstraction (E.G. Create a combination of Alpha, Alpha-numeric, ... and this set of Payment method, now use the string type to choose what generate you use) and complexity. Finally combinatoric methods can have difficulties when you have too many variables, depending on implementation. This is a strange hybrid of multiple different techniques. I suppose that means it is up to me to try to name it. Let's call it:
I would say don't expect any major changes/additions to the design unless I start hearing people using it and needing support. That being said I love feedback, both positive and negative.
While researching for this article I came across this which is cool, but I found no good place to cite it. So here is a random freebie: http://en.wikipedia.org/wiki/Curse_of_dimensionality
Labels:
Abstraction,
Automation,
Community,
Design,
Development,
Exploratory,
Java,
Test
Thursday, June 19, 2014
What is the Highest Level of Skill in Automation?
Thanks to Robert Sabourin for generating this topic. Rob asked me roughly, 'What in your opinion is the highest level of skill in automation?' He asked this to me in the airport after WHOSE had ended, while we waited for our planes. It gave me pause in considering the skills I have learned and help generate this post.
Let me make clear a few possible issues and assumptions regarding what the highest level of skill is in automation. First of all, I think that there is an assumption of pure hierarchy, which may not exist. That is to say, there might not be a 'top' skill at all or the top skill might vary by context. So I really am mostly speaking from a personal level and with my own personal set of automation problems I have faced. When I answered Rob's question in person, I neglected to add that stipulation. The other possible concern is that the answer I give is overloaded, and so I will have to work on describing the details after I give the short answer. Without making you wait, here is my rough answer: Reflections.
What are reflections?
In speaking of reflections, you might assume I am speaking of the technology, and for good reason. I have spoken on them many times in this blog. However, that is just a technical trick, albeit a useful one. I am not talking about that trick, even if the comp-science term 'reflections' is part of the answer. In speaking of reflections, I mean something much broader.
There is the famous "thinker" sitting on his rock just pondering is much closer to what I had in mind. But you might say, "Wait, isn't that human thinking? Isn't that critical thinking or introspection?" Yes, yes it is. What I mean by reflections is the art form of making a computer think. While a computer's intelligence is not exactly human intelligence, the closer we approach that vast gulf, the closer we are to generating better automation.
Most people might start to argue that requires someone with in depth knowledge or artificial intelligence or at least a degree in computer science or someone with a development oriented background. Perhaps that is the logical conclusion we will ultimately see in the automation field, but I don't think that either an in depth knowledge of development or AI is required for now. I know that you need to go to that level to start understanding this concept.
Instead, I think you need to start thinking of the automation in the way you think about writing tests. In some ways this relates to test design. Why can't the automation ask what am I missing? Why can't my automation tell me what the most likely reason a failure occurred*? Why can't the automation work around failures*? Or at the very least, ignore some failures so it isn't blocked by the first issue it runs into*?
* I've done some work around these, so don't say they are impossible.
Now that I have walked around the definition, let me define the reflections in context of this article.
Reflections: Developing new ideas based upon what is already know.
An example
A good example for the need for reflections is the brilliant talk given by Vishal Chowdhary, in which he notes that in translations (and searches, etc), you can't know what the correct answer is. You have no Oracle to determine if the results are correct. Many words could be chosen for a translation and it is hard to predict which ones are the 'best'. Since computer language translations are adaptive, you can't just write "Assert.Equals(translation, expectedWord)" with hardcoded values. Since these values are dynamic, the best you can do is to use a "degree of closeness". You see, they couldn't predict how the translation service would work because it has dynamic data and the world changes quickly, including new words, proper titles, et cetera.
So how do you test with this? Well you can look at the rate of change between translations. You can translate a sentence, translate it back and record how close it was to the original sentence. Now track how close it is over time, with different code and data changes. You could take translation string lengths and see how they vary over time and note when large deviations occur. There are lots of methods to validate a translation, but most of them require the code to reflect on past results, known sentences and the likes. The automation 'thinks' about its past, and on that basis judges the current results.
Not to say some automation shouldn't be reflective. For example you could hard code a sentence with "Bill Clinton" in it and check to make sure that it didn't in fact translate his name. You could translate a number and check to see it didn't change the value. You might translate a web page and check something not related to the translation such as layout.
Not just the code
In reading my blog you might assume that because I specialize in automation I think reflections is a code-oriented activity. I do think that, but I think it applies more broadly. When I write a test, I should be reflecting on that activity. That is to say I should be thinking "Is that really the best design?", "Should I be copying and pasting?", "Should I really be automating this?", etc. In always having part of my brain reflecting on the code, I too am write better code. Hopefully between my writing better code and my code trying to do better testing using reflections, we do better testing overall. This also applies to testing in general, with considerations around things like "That doesn't look like the rest of the UI." or "I don't recall that button there in the last build."
I have only scratched the surface of this topic and made it more specifically apply to automation/testing, but I think this applies to life too. For a more broad look at this topic I would highly recommend Steve Yegge's blog post Gödel-Escher-Blog. It will make you smarter. Then next time you go do some automation, reflect upon these ideas. :) And if you are feeling really adventurous, please put a comment about your reflections on this article here.
Let me make clear a few possible issues and assumptions regarding what the highest level of skill is in automation. First of all, I think that there is an assumption of pure hierarchy, which may not exist. That is to say, there might not be a 'top' skill at all or the top skill might vary by context. So I really am mostly speaking from a personal level and with my own personal set of automation problems I have faced. When I answered Rob's question in person, I neglected to add that stipulation. The other possible concern is that the answer I give is overloaded, and so I will have to work on describing the details after I give the short answer. Without making you wait, here is my rough answer: Reflections.
What are reflections?
In speaking of reflections, you might assume I am speaking of the technology, and for good reason. I have spoken on them many times in this blog. However, that is just a technical trick, albeit a useful one. I am not talking about that trick, even if the comp-science term 'reflections' is part of the answer. In speaking of reflections, I mean something much broader.
There is the famous "thinker" sitting on his rock just pondering is much closer to what I had in mind. But you might say, "Wait, isn't that human thinking? Isn't that critical thinking or introspection?" Yes, yes it is. What I mean by reflections is the art form of making a computer think. While a computer's intelligence is not exactly human intelligence, the closer we approach that vast gulf, the closer we are to generating better automation.
Most people might start to argue that requires someone with in depth knowledge or artificial intelligence or at least a degree in computer science or someone with a development oriented background. Perhaps that is the logical conclusion we will ultimately see in the automation field, but I don't think that either an in depth knowledge of development or AI is required for now. I know that you need to go to that level to start understanding this concept.
Instead, I think you need to start thinking of the automation in the way you think about writing tests. In some ways this relates to test design. Why can't the automation ask what am I missing? Why can't my automation tell me what the most likely reason a failure occurred*? Why can't the automation work around failures*? Or at the very least, ignore some failures so it isn't blocked by the first issue it runs into*?
* I've done some work around these, so don't say they are impossible.
Now that I have walked around the definition, let me define the reflections in context of this article.
Reflections: Developing new ideas based upon what is already know.
An example
A good example for the need for reflections is the brilliant talk given by Vishal Chowdhary, in which he notes that in translations (and searches, etc), you can't know what the correct answer is. You have no Oracle to determine if the results are correct. Many words could be chosen for a translation and it is hard to predict which ones are the 'best'. Since computer language translations are adaptive, you can't just write "Assert.Equals(translation, expectedWord)" with hardcoded values. Since these values are dynamic, the best you can do is to use a "degree of closeness". You see, they couldn't predict how the translation service would work because it has dynamic data and the world changes quickly, including new words, proper titles, et cetera.
So how do you test with this? Well you can look at the rate of change between translations. You can translate a sentence, translate it back and record how close it was to the original sentence. Now track how close it is over time, with different code and data changes. You could take translation string lengths and see how they vary over time and note when large deviations occur. There are lots of methods to validate a translation, but most of them require the code to reflect on past results, known sentences and the likes. The automation 'thinks' about its past, and on that basis judges the current results.
Not to say some automation shouldn't be reflective. For example you could hard code a sentence with "Bill Clinton" in it and check to make sure that it didn't in fact translate his name. You could translate a number and check to see it didn't change the value. You might translate a web page and check something not related to the translation such as layout.
Not just the code
In reading my blog you might assume that because I specialize in automation I think reflections is a code-oriented activity. I do think that, but I think it applies more broadly. When I write a test, I should be reflecting on that activity. That is to say I should be thinking "Is that really the best design?", "Should I be copying and pasting?", "Should I really be automating this?", etc. In always having part of my brain reflecting on the code, I too am write better code. Hopefully between my writing better code and my code trying to do better testing using reflections, we do better testing overall. This also applies to testing in general, with considerations around things like "That doesn't look like the rest of the UI." or "I don't recall that button there in the last build."
I have only scratched the surface of this topic and made it more specifically apply to automation/testing, but I think this applies to life too. For a more broad look at this topic I would highly recommend Steve Yegge's blog post Gödel-Escher-Blog. It will make you smarter. Then next time you go do some automation, reflect upon these ideas. :) And if you are feeling really adventurous, please put a comment about your reflections on this article here.
Subscribe to:
Posts (Atom)