Skip to Content
Fundamentals of Software Testing, 2nd Edition, Revised and Updated
book

Fundamentals of Software Testing, 2nd Edition, Revised and Updated

by Bernard Homès
July 2024
Intermediate to advanced
400 pages
9h 2m
English
Wiley-ISTE
Content preview from Fundamentals of Software Testing, 2nd Edition, Revised and Updated

4Test Design Techniques

To better illustrate the process of test design, let us take a very common example (see [BIN 00, pp. 5–9] and [MYE 79, pp. 1–3]). A software receives three integers, separated by commas, representing the length of the sides of a triangle. The software must provide the type of triangle or a message if the three values do not represent a triangle.

How many tests should we consider?

It is important to remember that a valid triangle must respond to two conditions: no side may be equal to zero, and each side must be smaller than the sum of the other two sides. This means that a triangle with the sides a, b and c:

bold-monospace s bold-monospace equals left-parenthesis bold-monospace a bold-monospace plus bold-monospace b bold-monospace plus bold-monospace c right-parenthesis bold-monospace slash bold-monospace 2

Then, s > a and s > b and s > c.

A triangle can be equilateral (three sides of equal length), isosceles (two sides of equal length) or scalene (no two sides are equal).

We could envisage the following test process:

  • Let us identify the test conditions, i.e. the reasons why we test, the aspects we want to check.
  • Once we have identified the test conditions, we replace the types of values with real values (integers in our case) and determine the results we should obtain.

Identification of the information mentioned in the specifications (the different inputs and outputs planned) allows us to test the following conditions (valid and invalid outputs):

  • a valid equilateral triangle, where the three sides are equal: a, a, a;
  • a valid isosceles triangle, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Software Testing Foundations, 4th Edition, 4th Edition

Software Testing Foundations, 4th Edition, 4th Edition

Andreas Spillner, Tilo Linz, Hans Schaefer
Software Testing, 5th Edition

Software Testing, 5th Edition

Geoff Thompson, Peter Morgan, Angelina Samaroo, John Kurowski, Peter Williams, Marie Salmon, Paul Weymouth
Software Requirements, 3rd Edition

Software Requirements, 3rd Edition

Karl Wiegers, Joy Beatty

Publisher Resources

ISBN: 9781786309822Purchase Link