Payments Academy
Happy path scenario PAYMENT OPERATIONS STARTED LIVE 01 Happy path scenario - proves that the normal journey works from ACTIVE 02 Negative path scenario - proves that the system fails safely when QUEUED 03 Negative testing - also cover business rule failures QUEUED 04 Duplicate detection - one of the most important negative paths QUEUED 05 Good scenarios - also use realistic data and realistic QUEUED A happy path scenario proves that the normal journey works from start to finish. Step 1 of 5 Happy path scenario STARTED Happy path scenario proves that the normal journey works from ACTIVE Negative path scenario proves that the system fails safely when QUEUED Negative testing also cover business rule failures QUEUED Duplicate detection one of the most important negative paths QUEUED Good scenarios also use realistic data and realistic QUEUED A happy path scenario proves that the normal journey works from start to finish.
Negative path scenario PAYMENT OPERATIONS IN PROGRESS LIVE 01 Happy path scenario - proves that the normal journey works from DONE 02 Negative path scenario - proves that the system fails safely when ACTIVE 03 Negative testing - also cover business rule failures QUEUED 04 Duplicate detection - one of the most important negative paths QUEUED 05 Good scenarios - also use realistic data and realistic QUEUED A negative path scenario proves that the system fails safely when the input is wrong. Step 2 of 5 Negative path scenario IN PROGRESS Happy path scenario proves that the normal journey works from DONE Negative path scenario proves that the system fails safely when ACTIVE Negative testing also cover business rule failures QUEUED Duplicate detection one of the most important negative paths QUEUED Good scenarios also use realistic data and realistic QUEUED A negative path scenario proves that the system fails safely when the input is wrong.
Negative testing must cover business PAYMENT OPERATIONS IN PROGRESS LIVE 01 Happy path scenario - proves that the normal journey works from DONE 02 Negative path scenario - proves that the system fails safely when DONE 03 Negative testing - also cover business rule failures ACTIVE 04 Duplicate detection - one of the most important negative paths QUEUED 05 Good scenarios - also use realistic data and realistic QUEUED Negative testing must also cover business rule failures, not only format errors. Step 3 of 5 Negative testing must cover business IN PROGRESS Happy path scenario proves that the normal journey works from DONE Negative path scenario proves that the system fails safely when DONE Negative testing also cover business rule failures ACTIVE Duplicate detection one of the most important negative paths QUEUED Good scenarios also use realistic data and realistic QUEUED Negative testing must also cover business rule failures, not only format errors.
Duplicate detection PAYMENT OPERATIONS IN PROGRESS LIVE 01 Happy path scenario - proves that the normal journey works from DONE 02 Negative path scenario - proves that the system fails safely when DONE 03 Negative testing - also cover business rule failures DONE 04 Duplicate detection - one of the most important negative paths ACTIVE 05 Good scenarios - also use realistic data and realistic QUEUED Duplicate detection is one of the most important negative paths in payments. Step 4 of 5 Duplicate detection IN PROGRESS Happy path scenario proves that the normal journey works from DONE Negative path scenario proves that the system fails safely when DONE Negative testing also cover business rule failures DONE Duplicate detection one of the most important negative paths ACTIVE Good scenarios also use realistic data and realistic QUEUED Duplicate detection is one of the most important negative paths in payments.
Good scenarios use realistic data PAYMENT OPERATIONS COMPLETE LIVE 01 Happy path scenario - proves that the normal journey works from DONE 02 Negative path scenario - proves that the system fails safely when DONE 03 Negative testing - also cover business rule failures DONE 04 Duplicate detection - one of the most important negative paths DONE 05 Good scenarios - also use realistic data and realistic ACTIVE Good scenarios also use realistic data and realistic boundaries. Step 5 of 5 Good scenarios use realistic data COMPLETE Happy path scenario proves that the normal journey works from DONE Negative path scenario proves that the system fails safely when DONE Negative testing also cover business rule failures DONE Duplicate detection one of the most important negative paths DONE Good scenarios also use realistic data and realistic ACTIVE Good scenarios also use realistic data and realistic boundaries.

Key points of this lesson, in order.

0:00 / 3:08 Step 1 of 5

Writing Test Scenarios for Happy Path and Negative Path

Payment Testing and Certification, Lesson 3 of 7, Narration 3:08, D11 Operations, exceptions and reconciliation

Value datepacs.008pacs.002

What you will learn

Your objective. By the end of this lesson, you will be able to explain writing test scenarios for happy path and negative path. A happy path scenario proves that the normal journey works from start to finish.

Why it matters. If an operations user resubmits the same pain.001 file twice, or if a system retries a pacs.008 after a timeout, the bank must not send the money twice.

Chapter objective: Learner plans payment testing and certification, including test cases, test data, simulators, and scheme certification, and writes a test plan for a new payment feature. Learner practises this skill on realistic banking cases, explaining the reasoning clearly and using correct terminology throughout the work.

Key learning points

  • Happy path scenario
  • Negative path scenario
  • Negative testing must cover business
  • Duplicate detection
  • Good scenarios use realistic data

Key terms

Value date: The date on which funds become available to the beneficiary and on which interest starts to accrue. It is the date used for settlement and for nostro posting.

pacs.008: An ISO 20022 message for a financial institution to financial institution customer credit transfer. It replaces MT103 in cross border payments and carries structured debtor, creditor, charges and...

pacs.002: An ISO 20022 message one financial institution sends to another to report the status of a payment instruction.

Clearing and settlement timeline showing Writing Test Scenarios for Happy Path and Negative Path.

Insights and practice scenarios

Worked insights and practice scenarios for this lesson. Each one is a reusable PaymentForge case, so the same case may appear in more than one lesson.

Practise this lesson

Exercise

Read the pacs.008 message described in this lesson and identify its key parts.

Use the message structure, fields and example in this lesson.

  1. What to do. List the three levels of the message and name the field that carries the amount and the field that carries the end-to-end reference.

Correct result. The amount is carried in the instructed amount element and the reference in the end-to-end identification. The three levels are the group header, the payment information, and the credit transfer transaction information.

Why. A message is only useful if you can read it. The group header identifies the message, the payment information identifies the batch, and the transaction information carries the single payment.

Check your understanding

Practice question

A user acceptance test is planned for a new payment screen. The business users ask what they should test. What is the right answer?

Takeaway and next step

What to remember

When scenarios are written this way, any tester can execute them, and any reviewer can see exactly what was proven.

Reconcile the payment in this lesson against its statement and find the break.

Open the Accounting and Reconciliation Lab →

Builds on "Test Levels: Unit, SIT, UAT and Regression".

Transcript and full text

Show transcript

A happy path scenario proves that the normal journey works from start to finish. For example, a customer at Barclays sends 5,000 pounds to a supplier in Germany using a SEPA Credit Transfer. The scenario starts with a valid IBAN, a valid BIC, an amount of 5,000 euros, and a value date of today. The tester submits the payment, checks that a pacs.008 is created, confirms that the status changes to accepted, and verifies that the customer account is debited by 5,000 euros. The scenario ends with a pacs.002 acceptance and a camt.053 entry the next morning. Each step is clear and each expected result is measurable. A negative path scenario proves that the system fails safely when the input is wrong. If the same customer enters an IBAN with a wrong check digit, the system must reject the payment before it leaves the bank, show a clear error message, and keep the funds in the customer account. The tester must not see a pacs.008 created, a debit posted, or a vague system error. The expected result is a controlled rejection with a reason code, a log entry, and no money movement. That behaviour protects the customer from sending money to an invalid account. Negative testing must also cover business rule failures, not only format errors. A corporate user who tries to send 2 million dollars when the daily limit is 1 million dollars must be stopped by the limit control, with an approval request sent to a second authorised user. A payment with a missing remittance reference, a value date in the past, or a currency that the corridor does not support must also be rejected or queued for repair. Each of these cases needs its own scenario, because a system that handles one failure correctly may handle another failure badly. Duplicate detection is one of the most important negative paths in payments. If an operations user resubmits the same pain.001 file twice, or if a system retries a pacs.008 after a timeout, the bank must not send the money twice. A good scenario submits a 75,000 pound payment with reference INV-2026-8841, then resubmits the identical file, and expects the second submission to be flagged as a duplicate and blocked. The tester checks the ledger, the message log and the customer statement to prove that only one debit and one credit exist for that reference. Good scenarios also use realistic data and realistic boundaries. A tester should test a payment of 0.01 pounds, a payment of 999,999.99 pounds, a payment at the exact cut off time, and a payment one minute after the cut off. A tester should also test a payment in euros, dollars and pounds, and a payment to a sanctioned country that must be blocked. Each scenario needs a unique reference, a clear precondition, numbered steps and a precise expected result. When scenarios are written this way, any tester can execute them, and any reviewer can see exactly what was proven. A full scenario table makes the coverage visible. For a SEPA payment of 5,000 euros, the happy path proves the payment is created, screened, sent as a pacs.008, accepted with a pacs.002, debited, and confirmed on the camt.053 statement. The negative paths prove that a wrong IBAN check digit is rejected before any message is created, that an amount above the daily limit triggers a second approval, that a duplicate file with the same reference INV-2026-8841 is blocked, and that a payment to a sanctioned country is held. Each row in the table has a precondition, numbered steps, an expected result, and a place for the actual result. When the table is complete, the coverage is visible at a glance. Boundary testing is where most payment defects hide. A payment of exactly 0.01 pounds tests the minimum amount logic. A payment of 999,999.99 pounds tests the maximum field length. A payment submitted at 17:59 tests the cut-off handling, and one submitted at 18:01 tests the next-day queuing. A payment with a value date on a bank holiday tests the calendar logic. A payment with a remittance reference of exactly 140 characters tests the field limit. For a business analyst, the practical skill is to read the requirement, find every number and every limit in it, and write a test case at, just below, and just above each one. That is how boundary defects are found before customers find them.

A happy path scenario proves that the normal journey works from start to finish. For example, a customer at Barclays sends 5,000 pounds to a supplier in Germany using a SEPA Credit Transfer. The scenario starts with a valid IBAN, a valid BIC, an amount of 5,000 euros, and a value date of today. The tester submits the payment, checks that a pacs.008 is created, confirms that the status changes to accepted, and verifies that the customer account is debited by 5,000 euros. The scenario ends with a pacs.002 acceptance and a camt.053 entry the next morning. Each step is clear and each expected result is measurable.

A negative path scenario proves that the system fails safely when the input is wrong. If the same customer enters an IBAN with a wrong check digit, the system must reject the payment before it leaves the bank, show a clear error message, and keep the funds in the customer account. The tester must not see a pacs.008 created, a debit posted, or a vague system error. The expected result is a controlled rejection with a reason code, a log entry, and no money movement. That behaviour protects the customer from sending money to an invalid account.

Negative testing must also cover business rule failures, not only format errors. A corporate user who tries to send 2 million dollars when the daily limit is 1 million dollars must be stopped by the limit control, with an approval request sent to a second authorised user. A payment with a missing remittance reference, a value date in the past, or a currency that the corridor does not support must also be rejected or queued for repair. Each of these cases needs its own scenario, because a system that handles one failure correctly may handle another failure badly.

Duplicate detection is one of the most important negative paths in payments. If an operations user resubmits the same pain.001 file twice, or if a system retries a pacs.008 after a timeout, the bank must not send the money twice. A good scenario submits a 75,000 pound payment with reference INV-2026-8841, then resubmits the identical file, and expects the second submission to be flagged as a duplicate and blocked. The tester checks the ledger, the message log and the customer statement to prove that only one debit and one credit exist for that reference.

Good scenarios also use realistic data and realistic boundaries. A tester should test a payment of 0.01 pounds, a payment of 999,999.99 pounds, a payment at the exact cut off time, and a payment one minute after the cut off. A tester should also test a payment in euros, dollars and pounds, and a payment to a sanctioned country that must be blocked. Each scenario needs a unique reference, a clear precondition, numbered steps and a precise expected result. When scenarios are written this way, any tester can execute them, and any reviewer can see exactly what was proven.

A full scenario table makes the coverage visible. For a SEPA payment of 5,000 euros, the happy path proves the payment is created, screened, sent as a pacs.008, accepted with a pacs.002, debited, and confirmed on the camt.053 statement. The negative paths prove that a wrong IBAN check digit is rejected before any message is created, that an amount above the daily limit triggers a second approval, that a duplicate file with the same reference INV-2026-8841 is blocked, and that a payment to a sanctioned country is held. Each row in the table has a precondition, numbered steps, an expected result, and a place for the actual result. When the table is complete, the coverage is visible at a glance.

Boundary testing is where most payment defects hide. A payment of exactly 0.01 pounds tests the minimum amount logic. A payment of 999,999.99 pounds tests the maximum field length. A payment submitted at 17:59 tests the cut-off handling, and one submitted at 18:01 tests the next-day queuing. A payment with a value date on a bank holiday tests the calendar logic. A payment with a remittance reference of exactly 140 characters tests the field limit. For a business analyst, the practical skill is to read the requirement, find every number and every limit in it, and write a test case at, just below, and just above each one. That is how boundary defects are found before customers find them.

Full lesson text (all scenes)

Completing a lesson updates your progress dashboard on the homepage.

Scene timestamps are estimated by allocating the narration text proportionally across the real audio length. The audio playback position is the source of truth: pause freezes the visual, seeking restores the correct scene, replay restarts the scene animation.