Testing: What It Is, What It Can Be
A preview from our upcoming Research Guide to Code Quality and Software Agility, out now!
Join the DZone community and get the full member experience.Join For Free
what do you think of when you hear the term “software testing?” many people i’ve encountered say it’s a group of people refining the software just before release, doing their darndest to break the beautiful software that was handed over to them, cackling with glee each time a new defect is found. other people have an answer that involves someone as a gatekeeper, akin to the bridge keeper in monty python and the holy grail , subjecting each release to questions for which a wrong answer can mean death (at least for the predetermined release date chosen back at the beginning of the iteration).
while there certainly are testers who fit these stereotypes, the reality of testing is undergoing a bit of a renaissance. test teams are in the process of adapting their work from the slow, documentation-heavy methods of the past into more flexible and rapid approaches, enabling them to better keep pace with software development. at the core of this adaptation is a realization that testing isn’t about finding bugs. if it were, test teams would “fail” more and more as the overall team improved since there would be fewer bugs to find. instead, modern testing focuses more on providing information at the time it’s needed. bugs are just one piece of that information.
testing as it is
in a progression similar to the technology adoption lifecycle from geoffrey moore’s crossing the chasm (figure 1), different organizations are at various points in their responses to testing changes in the software industry. at the back of the pack, some organizations function much as test organizations have for decades. their test cycles are often measured in months. these organizations are likely feeling pressure to reduce their delivery cycle while still finding as many bugs as possible.
moving left along the curve, we find the majority of testing organizations. these teams have begun to adapt, at least in part, to increased time pressure from consumers. some have brought exploratory methods into their testing, leaving behind rigid scripting and allowing the tester autonomy to immediately incorporate information gathered during testing. some have also built automation into their efforts for well-defined, repeatable testing work, leveraging tools to perform those tasks rather than humans. some may have even brought testing work forward in their development process, mobilizing the entire team to catch problems earlier and collaborate on fixes. teams may not explicitly focus on being information providers and, as such, may be missing opportunities to reach their full potential. however, the testing team is probably achieving some success in keeping up with the rest of their organization, depending on how they interact with the developers.
the early adopters portion of the curve is where we begin to really see testing innovations, achieving results beyond the old norms. testers in these organizations routinely analyze systems they are testing from multiple viewpoints or “lenses" . they go beyond tests that confirm software functionality and use risk-based test design to think about specific failure cases. at this level, testers move away from vague failure scenarios and instead draw on skills in experimental design and risk analysis, as they craft tests to reveal if certain imagined failures canactually be triggered. here we see testing becoming a vibrant and exciting career path.
testers in early adopter organizations often draw on concepts from psychology, both to recognize their own limitations (such as confirmation bias and inattentional blindness ) and to better understand how others might use their software. these testers are embedded in the overall team, working closely with analysts, developers, and designers to build software the entireteam can be proud of releasing.
in teams within these organizations, testers can serve as headlights, illuminating things to come so that the team canreact accordingly . they can investigate areas of unanticipated feature interaction or operating conditions such as input data, limited resources (i.e., cpu or memory), and user behavior. these might be things that the larger team hasn’t considered.
finally, there are innovators: the vanguards who are defining the new vision of software testing for the rest of the industry. testing jobs in these organizations may not look anything like traditional testing jobs. they may involve skills like data analysis—digging into massive sets of data to provide their team with detailed insights around their system and users. these testers invent new ways of visualizing the information they gather, and communicate it to their teams effectively and efficiently.
some teams on the cutting edge of testing work closely with their operations team, exploring the space of devops. these test teams may be better-equipped to leverage automation by increasing its sophistication, using it as a tool to support testing work, rather than replacing it. these organizations are continually refining their work flows, discarding those that no longer provide valuable information, tweaking others to keep them relevant, and introducing new tasks to answer questions the team didn’t know they had. testing in this type of organization is a rewarding challenge, a critical role to keep the team moving forward, and a far step from the perceived drudgery of more traditional testing.
that’s great! how do i get there?
most organizations fall into the middle portion of the curve. moving towards the front of the curve takes effort, but it is achievable. to start, you can:
analyze your current practices . effective testing provides information that the team needs. if a task only results in information the team and stakeholders don’t value, it maybe time to stop the task or change it to make it more useful.
analyze “release day” emotions . if the team has an uncomfortable mood on release day, it can be a red flag indicating that the team doesn’t have all the information needed to have confidence in the release.
pick one unanswered question that the team has at release. don’t try to make changes all at once. it can be difficult to formulate clear questions, so the team needs time to gain experience. by identifying just one question to answer, you can begin building experience within your culture while making just a small number of changes.
break down walls. teams build software best when they function as one team. break down the walls isolating developers, testers, and analysts. foster communication between groups that doesn’t go through the bug tracker.
look to the cutting edge. the practices described here areonly a small subset of what test teams can do, but they are good starting points. if you are uncertain where to start, seek help—either online, from the broader testingcommunity, or by bringing in someone external with the expertise to meet your needs.
testing is a critical function in software development, andwhen utilized effectively, it provides a team with a steady f lowof information. this allows the team to make quick, confidentdecisions, and to avoid repetitious and ineffective work whileensuring you deliver high quality software.
for best practices on writing, testing, and monitoring quality code, get your free copy of the dzone guide to code quality and software agility!
Opinions expressed by DZone contributors are their own.