21
Thu, Nov
1 New Articles

5 Simple Steps to Improve Software Testing

General
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

If you implement minimal testing practices, you can only expect minimal testing results.

 

Many organizations are motivated to conduct testing and employ test professionals only because testing is a necessary part of software engineering. Acting out of necessity, organizations also tend to lean quite heavily on the de facto standard ways of performing testing activities, often relying on practices that have been in place and unchallenged for years. The problem with testing motivated by necessity and the enforcement of generic practices and standards is that many testing practices simply do not align with modern development methodologies or an organization's culture.

 

Documentation is often perceived as the critical part of the testing process, and I would not for a moment argue that documenting your tests is a wasteful exercise. In many organizations, it is a critical part of compliance activity. However, what we choose to document is of critical importance, and ensuring that the amount of documentation we produce is consistent with the effort available to maintain it is also important. But there's more to testing than just documentation.

 

This article aims to educate the reader on how, by challenging traditional testing conventions, it is possible to improve your approach to software testing and raise the game of your testing team. This is not an exhaustive list of the approaches you should take, but rather five small steps that can help you think differently about how you conduct software testing.

1. Encourage a Reactive Testing Team

An age-old creed of many in the software testing world is "Plan your work and work your plan." What happens if you plan your work and then the project changes and evolves? As you begin to work your plan, you are testing antiquated functionality or designs, often without the full context and awareness of what's changed. Development teams are becoming leaner and more agile, and testing teams should be doing everything they can to keep up.

 

Test engineers need to assume everything around them could change on a dime and implement appropriate procedures or process to ensure that they are aware of and familiar with all project changes (changes in timescale, requirements changes, specification changes, coding changes, etc.). This may involve automated notifications of documentation changes or may be as simple as enhancing the communication between testers and developers.

 

As things change, test engineers also need to update their testing methodologies and not be afraid to throw away redundant test cases. Remember: Our main motivation here is to discover software defects. We don't want to spend time executing tests that will always report pass metrics, and we want complex test cases that will uncover requirements, design, or coding defects.

 

Keep in mind the Pareto principle and how it applies here: 80 percent of defects will be found with 20 percent of the effort. As test engineers, we just need to make sure we're working on the right 20 percent, which is a constantly moving target.

2. Explore, Investigate, and Cheat (aka Beg, Borrow, and Steal)

Software testing is never easy, yet many recommended practices aim to make software testing look easy. For example, requirements-based testing is a practice that is often misinterpreted. Test engineers are encouraged to map test cases directly to requirements and gain adequate coverage, with an arbitrary metric used to analyze coverage. The confusion here is on what it means to have adequate coverage.

 

There is really only one sensible way to determine adequate coverage: through exploration and investigation. Cause-effect analysis is a technique testers can use to explore and investigate the sufficient number of test cases required for a requirement. This technique requires significant discipline and a solid understanding of the software system being tested. It also requires a deep understanding of all the possible things that could go wrong. Once all the appropriate causes are identified, test cases should be authored and prioritized in order to facilitate efficient planning.

 

It is also of critical importance to remember our first point: If you document the test cases, make sure you monitor requirements changes that could impact the testing. Since identifying the necessary test cases is an exploratory, investigative process, cheat if you must. Engage with developers, architects, anyone who has a greater understanding of the system or process being tested. You don't have to work alone to find the information.

3. The Defect Quota

A successful salesperson usually has a very clear understanding of his job: If he sells products or services to meet company expectations, he will be handsomely rewarded. He carries a sales quota, and the risk of inadequate performance is often job loss. Occasionally, you will come across a salesperson who has taken on the role without fully understanding this fact. The result is that he will often thrash around, focusing on everything but selling.

 

Many testing professionals suffer this same fate. What all testing professionals need to understand is that their role is to carry out testing in order to find defects.

 

So the question is, why don't testing professionals carry a quota? With a defect quota, suddenly the end game changes. It's less about producing perfect documentation and completing a certain amount of testing under pressured timescales, and it's more a case of finding every defect possible. Of course, the quota should not be based simply on the number of defects, but rather the number of defects weighted by their complexity, severity, and uniqueness.

 

The biggest challenge here is figuring out how high to set the bar and how to reward testers when they meet quota. In contrast, would developers be rewarded when testing teams fail to meet quota? Likely not, since a lack of defects is not a guarantee that they don't exist, only that they have not been discovered.

4. Follow Your Nose

This principle goes part and parcel with the defect quota. If we have a defect quota, we need to follow our instincts sometimes to fully understand why a system is behaving a certain way. It is very easy for testing teams to fall into the trap of authoring specific test cases, with granular test steps that guide the test engineer through each step of the testing process. It is very tempting for some organizations to encourage this behavior as a means to simplify testing, making test execution a role that can be performed by junior staff or delivered through an outsourced model.

 

This leads to behaviors that contradict the whole notion of explore and investigate. On the surface, a test case may appear to have passed, but fundamentally other things may be going on in the background, resulting in failures. Test engineers need to be given a certain amount of room to explore and follow their noses to find the hidden defects.

 

Rigid test case definitions and automated test scripts are useful only if your customers are guaranteed to be following that script when using the system. This approach is only rarely applicable in the system-testing and acceptance-testing phases. If you make test execution a humdrum activity, you can expect the results to be equally as uninteresting.

5. Keep an Eye on Automation; It's Expensive

Many organizations automate test suites with a focus on gaining efficiency; they put implicit trust in the automated test suite and continue to invest in its maintenance even when it's no longer yielding value (i.e., defects).

 

Let's look at the first thing teams do when an automated test suite fails. They task someone to investigate. The question you need to ask is whether those investigations are yielding significant defects. Of all the testing metrics you can capture, one of the most significant metrics will be the percentage or number of defects discovered by a particular automation suite--or any suite for that matter. If the only defects you are uncovering are defects with the automated suite being broken, how valuable is the automated suite?

 

How much more manual testing could you have accomplished if you weren't fixing the automated testing suite? Could that time be better spent on statistics and diagnostic tools being built into the product or process being tested, making manual investigation and exploration easier for test engineers?

 

A growing trend among software packages today is automating the submission of detailed bug reports and logs when a product crashes or encounters an error. Even if this approach is not viable in your customer-facing application, having detailed error logging and automated recognition of errors when routine testing takes place increases the potential of discovering defects. Think creatively about how you can change your approach to automated testing to discover a higher concentration of defects.

Testing, Testing...

Software testing is often viewed as a science, but as with any science, there is still room for innovation, creativity, and goals. I encourage any person responsible for a testing team to examine closely the behaviors of their test engineers. Ask yourself these questions: Are my test engineers adapting to change? Are they exploring and investigating? Have I set clear goals and objectives for them? By breaking the traditional mold of a testing team, you may be surprised by the results.

 

It may also be important to examine the technologies test engineers are using. Test engineers need the right set of tools to support exploration and investigation as well as to determine the value of a particular test suite or test case. Measuring the value can be as simple as ensuring that the relationship between the test artifacts and its corollary requirements and defects is adequately captured. From a management perspective, utilizing a test management solution that connects the testing process to the rest of the application lifecycle will be beneficial.

 

Bridging organizational silos and improving communication between test engineers, developers, and analysts can go a long way in improving efficiency and software quality. Consider solutions that provide traceability between requirements, development, and testing processes to help facilitate requirements-based testing and support IT governance.

 

Remember, if you implement minimal testing practices, you can only expect minimal testing results.

Ryan Lloyd

Ryan Lloyd is a Product Manager for MKS, a Chartered IT Professional, and a member of the British Computer Society. He has been responsible for the implementation of Application Lifecycle Management and IT Service Management solutions for a number of global organizations, with a focus on the transition between development and operations. He has spoken on a wide range of topics affecting application development and IT operations teams, including geographically distributed development, development productivity, release efficiency, and the convergence of service management/application development.

 

 

Ryan is ITIL Foundation and Practitioner-certified and a member of the itSMF UK and US. More recently, he has taken responsibility for the Test Management product strategy at MKS, collaborating with key customers on solving the most critical testing challenges, including requirements traceability, reuse, and management metrics.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: