Software development and testing strategies

A-Level Computer Science · Floating Point, Compression and Software Development

The stages

Analysis, design, coding, testing, implementation, maintenance and evaluation. The point examiners test is not the list but what happens when a stage is rushed: a fault introduced in analysis is far more expensive to fix after implementation than during design.

Waterfall

Each stage is completed before the next begins. Clear documentation and easy progress tracking, so it suits projects where requirements are known and stable — safety-critical systems, for example. Its weakness is that requirements are usually not fully known at the start, and going back is expensive.

Iterative and agile approaches

Iterative development builds a prototype, gets feedback and refines it, repeating the cycle. Agile works in short cycles delivering working software, with the customer involved throughout and requirements allowed to change. It handles uncertainty well and produces something usable early. Against it: less documentation, harder to fix a price or a deadline in advance, and it needs a customer who is actually available.

Rapid application development

Uses prototypes and user feedback to reach a working system quickly. Good where the interface matters and requirements are unclear; weaker where the system must be provably correct.

Testing strategies

White box testing looks at the code and checks every path is executed; black box testing checks inputs against expected outputs without looking inside. Alpha testing is in-house, beta uses real users, and acceptance testing checks the agreed requirements are met. Stub testing lets a module be tested before the modules it calls have been written.

Choosing between methodologies in an answer

Do not say agile is modern and therefore better. Ask: are the requirements stable, is the customer available, does the system need formal documentation, and what happens if it is wrong? A hospital drug dosage system and a marketing website deserve different answers.

Worked example: choose a methodology for two projects

Project A: software controlling drug doses for an infusion pump in a hospital. The technical requirements are specified in detail by the regulator.

Project B: a sports court booking app for a chain of centers; management has a general idea but is unclear about what users want.

Choose a methodology for each project and explain.

Solution

Project A — the waterfall model.

Three reasons tied to the characteristics of the project itself:

$1.$ Requirements are stable and specified in detail — the precondition for waterfall to work well. There is no uncertainty that needs to be explored with a prototype.

$2.$ The consequence of a bug is a human life. This system needs full documentation at every stage so the regulator can certify it and so responsibility can be traced — exactly what waterfall produces and agile often lacks.

$3.$ It needs full white-box testing, proving that every branch of the code has been run through. This requires stable code that does not change constantly from cycle to cycle.

The cost accepted here: waterfall is slow and rigid, but for this system correctness matters more than time to market.

Project B — agile or rapid application development.

$1.$ Requirements are unclear — exactly the situation waterfall handles worst. Writing a full specification for something when no one knows what users want is writing a document that will have to be thrown away.

$2.$ A prototype answers questions faster than a meeting. Giving users a working version to try within two weeks tells you more than two months of discussion.

$3.$ The consequence of a bug is low: booking the wrong court is an inconvenience, not a disaster. That makes it acceptable to trade less documentation for speed.

Condition to state: agile only works if the chain of centers can send people to take part regularly throughout the project. If management only meets once a quarter, agile loses the very thing that makes it effective, and then an iterative model with clear milestones would be more realistic.

Overall conclusion: no methodology is inherently better. The four deciding questions are: are the requirements stable, is the customer available, is formal documentation needed, and what are the consequences if it goes wrong.

Common mistake

Writing 'agile is more modern so it is better than waterfall'. For a system involving safety or one that must be certified by a regulator, the full stage-by-stage documentation of waterfall is a mandatory requirement, not obsolescence.

Key takeaway

Choose a methodology with four questions: are the requirements stable yet, is the customer available, how much documentation is needed, and what are the consequences if it goes wrong. Remember that white-box looks at the code while black-box looks at input–output, and a stub lets you test a module before the rest is finished.

← Data compression and encryption · All A-Level Computer Science lessons · Practice A-Level Computer Science questions (free, instant scoring) · Processor architecture: RISC, CISC and pipelining →