Topics in this domain

Testing, Release and Deployment Risk

Projects and development · 5 min read

Levels of testing

Testing happens at several levels, each checking something bigger and done by someone further from the code. The diagram shows them from bottom to top.

Unit testing is done by developers on each module on its own. Integration testing checks that modules and systems talk to each other correctly. System testing is done by independent testers, who check the whole system against requirements, including function, security, performance and recovery. Acceptance testing (UAT) has users check that the system fits the way the business really works, and ends with formal sign-off.

Testing levels: unit, integration, system, acceptance (UAT).

Controlled release

Release management moves tested changes into production in a controlled way. The diagram shows the steps.

The release is packaged as an approved, versioned build. It’s tested for regression, performance, security and user acceptance. Go-live is approved by the business owner and operations. It’s deployed in a controlled window, by the pipeline or a separate team. Then it’s verified, or, if checks fail, a tested rollback runs.

Package, test, approve go-live, deploy, verify or roll back.

The go/no-go decision

The go/no-go decision is the last chance to stop a release that isn’t ready. The diagram shows what must be confirmed.

Testing: UAT is signed off, and critical defects are fixed or formally accepted. Data: conversion is reconciled and signed off by data owners. Users are trained and procedures are available. Operations has support, monitoring, backups, job schedules and runbooks ready. Security: roles are set up, and test, vendor and developer accounts are removed. Plans for cutover, communication and rollback are in place. The business owner accepts, and IT operations confirms it’s ready.

Go/no-go checklist: testing, data, users, operations, security, plans.

Example. Two days before go-live, four critical defects were still open. Instead of the project manager deciding, the practitioner made sure the business owner saw the residual risk; go-live was delayed a week and the defects fixed.

Test data

Test environments often hold copies of real data with weaker protection than production.

  • Use masked or synthetic data where possible.
  • Protect test environments if real data is unavoidable.
  • Remove test accounts before go-live.

Test methods

Test levels say how much of the system is tested and by whom. Test methods say how the testing is done. The practitioner doesn’t run the tests, but should check that the test plan covers the ways the system could fail.

White-box (structural) testing looks inside the code. The tester knows how it’s written and checks its paths, conditions and loops; it’s typical of unit testing. Black-box (functional) testing ignores the code and checks that given inputs produce the expected outputs; it’s typical of system testing and UAT.

White-box testing looks at the code's paths; black-box testing checks inputs against expected outputs.

Beyond that, specific methods target specific risks. The diagram pairs each with the risk it addresses.

  • Regression testing re-runs earlier tests after a change, to prove that what used to work still works.
  • Volume and stress testing push the system with large data volumes and peak numbers of concurrent users, to find the point where it slows or fails.
  • Security testing covers vulnerability scanning, code review and penetration testing before go-live.
  • Fuzzing feeds the system random or malformed input to see whether it crashes or behaves unsafely. It’s good at finding buffer overflows and input-validation flaws that normal test cases miss.
  • Recovery testing proves the system can restart and restore data after a failure.
  • An integrated test facility (ITF) creates dummy records, such as a fictitious customer, in the live system and processes test transactions against them. Results are compared with expected values, so errors in live processing show up. The dummy records must be kept out of real reports and totals.
Test methods: regression, volume and stress, security testing, fuzzing, recovery, integrated test facility, with the risk each addresses.

How much testing is enough depends on risk: a payment system needs far more than an internal phone list.

Data migration and changeover

Moving to a new system means moving its data, and conversion errors are one of the commonest causes of a bad go-live. The diagram shows the steps of a controlled migration.

Plan the scope, timing, roles and a fallback. Map each old field to a new one, with rules approved by data owners. Cleanse duplicates and bad data in the source first, so it isn’t carried across. Run trial conversions at full volume to find problems early. Convert under control, with a backup of the source and logs of the run. Reconcile record counts, control totals, hash totals and samples between old and new. Finally the data owner signs off that the data is complete and accurate.

Data migration: plan, map, cleanse, trial runs, convert, reconcile, sign off.

The changeover itself can be done in four ways, which trade risk against cost:

  • Parallel: old and new run side by side and their results are compared. It’s the safest, but doubles the work.
  • Pilot: one site or team moves first, then the rest follow.
  • Phased: the system moves module by module. Old and new modules need temporary links, which bring their own risk.
  • Abrupt (big bang): the old system is switched off and the new one on, on a set date. It’s the cheapest and the riskiest, because there’s no easy way back.
Changeover options from lowest to highest risk: parallel, pilot, phased, abrupt.

Whatever the method, there must be a tested fallback (rollback) plan: how to return to the old system, and its data, if the new one fails. The point after which fallback is no longer possible should be known and agreed in advance.

Example. A bank moved its loan system with a pilot at one region first. Reconciliation found 0.4% of balances > wrong, which was fixed before the other regions moved.

How the exam asks about it

If the question asks…The answer is usually…
Who accepts a system for productionThe business owner
Critical defects before go-liveThe business owner decides, with full knowledge
Essential for a major releaseA tested rollback plan
Production data in testingMask it, or protect it equally
Test that a change didn’t break existing functionsRegression testing
Test with random or malformed inputFuzzing
Safest changeover methodParallel running
Key control over data conversionReconciliation, signed off by the data owner

In short

  • Testing moves from unit to integration, system and user acceptance testing, each checking something bigger.
  • Users or business owners formally accept a system before go-live.
  • Release management moves tested changes into production in a controlled way, with a tested rollback.
  • Go/no-go decisions rest with the business owner, based on test results and residual risk.
  • Data conversion must be reconciled and signed off by data owners.

Exam traps

  • Developers testing and accepting their own work.
  • Going live with critical defects open and no formal risk decision.
  • No rollback plan for a major release.
  • Using unmasked production data in test environments.

Check yourself

  1. Who should make the go/no-go decision for a release?

  2. A major release has no rollback plan. What is the risk?

  3. Who should sign off data conversion?

Slides

Click the slide and use the arrow keys. F toggles full screen.

Turn your phone sideways for a bigger view. Tap any diagram to enlarge it.

CRISC · Domain 4 · Projects and development

Testing, Release and Deployment Risk

How testing levels, release management and go-live decisions control the risk of putting new or changed systems into production, including data conversion and rollback.

1 / 12

Turn your phone sideways or scroll to see all of it.