1. Scope and risks
In scope
- RX-1 to RX-6 in the Bramvale patient app 3.8 on Android 8.0+ and iOS 16+
- Medical aid linking and claim results from the claims switch in test mode: approved, partly paid and rejected
- Co-payment and cash-price payments by card and Instant EFT in the payment provider's sandbox
- Family profile switching where it affects the prescription list and medical aid
- Interruptions: slow or failed switch, lost signal, app sent to the background or killed, double tap, session timeout
- Vodacom and MTN mobile data, and office Wi-Fi
Out of scope
- Loyalty points (out of scope for 3.8)
- In-store kiosk (out of scope for 3.8)
- Web (this feature has no web version)
- The claims switch's and payment provider's own logic. We test only how the app handles their responses.
- Android below 8.0 and iOS below 16
Assumptions
- The active family profile counts as "the signed-in patient" in RX-1.
- Either switch test mode or a proxy on office Wi-Fi can delay or drop switch responses.
- A back-office test tool can set an order to Ready to collect or Out for delivery.
- Checkout shows the delivery fee as its own line.
- Switch test mode can return a chosen co-payment total, which TC-20 and TC-21 need.
| Area | Risk | Why | Case IDs |
|---|
| Payment when the switch fails or the app is interrupted | High | In 3.6 a patient was charged and the order stayed Pending for 2 days. The switch can take up to 40 s at month-end. Signal drops during load shedding. | TC-01 to TC-07 |
| Family profile data isolation | High | In August a patient saw another patient's prescriptions after a profile switch. This is a leak of medical data. | TC-08, TC-09 |
| Claim results and co-payment amounts | High | This is new, and it decides what the patient is charged. | TC-10 to TC-16 |
| Medical aid linking | High | This is new in 3.8. A wrong membership means wrong claims and wrong charges. | TC-17 to TC-19 |
| Schedule 5 and 6 delivery block | High | Delivering these items breaks the collection-only rule in RX-4. | TC-23, TC-24 |
| Notification privacy | High | Showing a medicine name on the lock screen or in an SMS exposes health information. | TC-26, TC-27 |
| Repeat selection with 0 repeats | High | Ordering without a valid script must be impossible. | TC-29 |
| Delivery fee and delivery zones | Medium | A wrong R45 charge at the R300 boundary. Delivery to an unserved area. | TC-20 to TC-22, TC-25 |
| Ready notices | Medium | Patients don't know when to collect their order. | TC-26 to TC-28 |
| Repeat selection with repeats left | Medium | The core ordering path. | TC-30 |
2. Test cases
Devices: D1 Android 8.0 (oldest supported), D2 Samsung A-series on current Android, D3 Hisense on current Android, D4 iPhone on iOS 16, D5 iPhone on the latest iOS. Every case starts on the app home screen, signed in as the profile named in Preconditions. "Sandbox log" means the payment provider's sandbox transaction list for the test merchant.
A. Payment, switch failures and interruptions
| ID | Title | Preconditions | Steps | Test data | Expected result | Priority | Platforms |
|---|
| TC-01 | Month-end slow switch: amounts shown before payment | Testa One signed in on office Wi-Fi; M-APPROVED linked; switch response delay set to 40 s | 1. Tap Repeat prescriptions. 2. Tick Fakeprolol 50 mg. 3. Choose collection at Test Branch A. 4. Tap Checkout. 5. Do not tap anything for 60 s. Watch the screen. 6. If an error appears before the amounts, screenshot it and note the time (Q1). | Testa One; M-APPROVED; Fakeprolol 50 mg; 40 s delay | The payment screen does not open until Fakeprolol 50 mg shows a scheme-pays amount and a co-payment amount. | P1 | D1–D5 |
| TC-02 | Switch fails after co-payment is charged (3.6 repeat) | Testa One on office Wi-Fi through the proxy; M-APPROVED linked; proxy rule set up to drop all switch responses, but turned off | 1. Order Fakeprolol 50 mg for collection at Test Branch A and tap Checkout. 2. When the co-payment shows, turn on the proxy drop rule. 3. Pay with the sandbox card that always approves. 4. Wait 5 min. 5. Open Orders and screenshot the status and any message. 6. Record the sandbox log entries for this order. | Testa One; M-APPROVED; sandbox card that always approves | Unclear, see Q2 | P1 | D2, D4 |
| TC-03 | Signal lost right after tapping Pay | Testa One; Wi-Fi off, mobile data only; M-APPROVED linked | 1. Order Fakeprolol 50 mg for collection at Test Branch A, tap Checkout and wait for the co-payment. 2. Choose card and enter the sandbox card that always approves. 3. Tap Pay, then turn on airplane mode within 1 s. 4. Wait 60 s, then turn airplane mode off. 5. Reopen the app, open Orders and record the status (Q3). 6. Check the sandbox log for this order. | Sandbox card that always approves; D2 on Vodacom, D4 on MTN | The sandbox log shows no more than one successful charge for this order, equal to the co-payment shown at checkout. | P1 | D2, D4 |
| TC-04 | App killed during the Instant EFT redirect | Testa One; M-APPROVED linked; mobile data | 1. Order Fakeprolol 50 mg for collection and tap Checkout. 2. Choose Instant EFT. 3. On the sandbox bank page, complete the payment. 4. Before the app comes back, press Home and swipe the app away from recent apps. 5. Wait 2 min, then reopen the app and open Orders. 6. Screenshot the order status. Record the sandbox log. | Instant EFT sandbox bank that completes successfully | Unclear, see Q3 | P1 | D1–D5 |
| TC-05 | Double tap on Pay | Testa One; M-APPROVED linked | 1. Order Fakeprolol 50 mg for collection and tap Checkout. 2. Enter the sandbox card that always approves. 3. Tap Pay twice within half a second. 4. Wait for the result screen. 5. Check the sandbox log for this patient. | Sandbox card that always approves | The sandbox log shows exactly one successful charge for this order, equal to the co-payment shown at checkout. | P1 | D1, D3, D4 |
| TC-06 | Session times out on the payment screen | Testa One; M-APPROVED linked; session timeout length known (Q4) | 1. Order Fakeprolol 50 mg for collection and tap Checkout. 2. On the payment screen, enter the sandbox card that always approves. 3. Leave the phone unlocked and untouched for the session timeout plus 1 min. 4. Tap Pay. 5. Screenshot the result and record the sandbox log. | Sandbox card that always approves | Unclear, see Q4 | P2 | D2, D4 |
| TC-07 | Declined card | Testa One; M-APPROVED linked | 1. Order Fakeprolol 50 mg for collection and tap Checkout. 2. Enter the sandbox card that is always declined. 3. Tap Pay. 4. Screenshot the result, then open Orders and screenshot the status. | Sandbox card that is always declined | Unclear, see Q5 | P2 | D2, D4 |
B. Family profiles
| ID | Title | Preconditions | Steps | Test data | Expected result | Priority | Platforms |
|---|
| TC-08 | Switching profile shows only that profile's prescriptions | Account FAM1 signed in on mobile data; profiles Testa One and Testa Two | 1. As Testa One, open Repeat prescriptions. Confirm Fakeprolol 50 mg and Placebozide 25 mg are listed. 2. Open the profile switcher and choose Testa Two. 3. Open Repeat prescriptions, then pull down to refresh. 4. Repeat steps 2–3, switching back and forth quickly 5 times. Screenshot the list each time Testa Two is active. | FAM1: Testa One (Fakeprolol 50 mg, Placebozide 25 mg), Testa Two (Mockstatin 20 mg) | Every time Testa Two is active, only Mockstatin 20 mg is listed. | P1 | D1–D5 |
| TC-09 | Switching profile during checkout | FAM1; Testa One has M-APPROVED linked | 1. As Testa One, order Fakeprolol 50 mg for collection and tap Checkout. Wait for the amounts. 2. Open the profile switcher and choose Testa Two. 3. Open the basket or checkout. 4. Screenshot the items, medical aid and amounts shown. | FAM1; M-APPROVED | Unclear, see Q6 | P1 | D2, D4 |
C. Claim results and co-payment
| ID | Title | Preconditions | Steps | Test data | Expected result | Priority | Platforms |
|---|
| TC-10 | Approved claim shows scheme amount and co-payment per item | Testa One; M-APPROVED linked | 1. Tap Repeat prescriptions. 2. Tick Fakeprolol 50 mg and Placebozide 25 mg. 3. Choose collection at Test Branch A and tap Checkout. 4. Before tapping Pay, read the amounts for each item. | M-APPROVED; 2 items | Before the payment screen, each of the two items shows its own scheme-pays amount and co-payment amount. | P1 | D1–D5 |
| TC-11 | Partly paid claim: Instant EFT charges the sum of co-payments | Testa One; M-PARTLY linked | 1. Tick Fakeprolol 50 mg and Placebozide 25 mg, choose collection, and tap Checkout. 2. Write down each item's co-payment and add them up. 3. Pay by Instant EFT with the sandbox bank that completes successfully. 4. Check the sandbox log. | M-PARTLY; Instant EFT sandbox bank that completes successfully | The Instant EFT transaction amount equals the sum of the item co-payments shown at checkout. | P1 | D2, D5 |
| TC-12 | Rejected claim shows full cash price and two choices | Testa One; M-REJECT linked | 1. Tick Fakeprolol 50 mg, choose collection, and tap Checkout. 2. Wait for the claim result and read the screen. | M-REJECT; Fakeprolol cash price R250.00 | The app shows the full cash price of R250.00, with a choice to pay the cash price or to cancel. | P1 | D1–D5 |
| TC-13 | Rejected claim, then Cancel | As TC-12 | 1. Follow TC-12 steps 1–2. 2. Tap Cancel. 3. Check the sandbox log for this patient. Record the repeats left for Fakeprolol (Q17). | M-REJECT | The sandbox log shows no charge for this order. | P1 | D2, D4 |
| TC-14 | Rejected claim, then pay the cash price by card | As TC-12 | 1. Follow TC-12 steps 1–2. 2. Choose to pay the cash price. 3. Pay with the sandbox card that always approves. 4. Check the sandbox log. | M-REJECT; sandbox card that always approves; card assumed (Q7) | The sandbox log shows one successful charge of R250.00 for this order. | P1 | D2, D4 |
| TC-15 | One item rejected, the other approved | Testa One; M-MIXED linked | 1. Tick Fakeprolol 50 mg and Placebozide 25 mg, choose collection, and tap Checkout. 2. Screenshot the amounts and choices shown. | M-MIXED (switch rejects Placebozide only) | Unclear, see Q8 | P2 | D2, D4 |
| TC-16 | Co-payment of R0.00 | Testa One; M-ZERO linked | 1. Tick Fakeprolol 50 mg, choose collection, and tap Checkout. 2. Screenshot the amounts and the next step offered. | M-ZERO (switch returns co-payment R0.00) | Unclear, see Q9 | P2 | D2, D4 |
D. Medical aid linking
| ID | Title | Preconditions | Steps | Test data | Expected result | Priority | Platforms |
|---|
| TC-17 | Link a medical aid membership | Testa One with no membership linked | 1. Go to Profile, then Medical aid, then Link. 2. Enter the scheme, member number and dependant code, and save. 3. Swipe the app away from recent apps, reopen it, and open Medical aid. | Scheme "Test Scheme (switch test mode)"; member number M-APPROVED; dependant code 00 | The Medical aid screen shows Test Scheme, M-APPROVED and dependant code 00 exactly as entered. | P1 | D1–D5 |
| TC-18 | Member number the switch doesn't know | Testa One with no membership linked | 1. Go to Profile, then Medical aid, then Link. 2. Enter the data and save. 3. Screenshot the result. | Test Scheme; member number 99999999-TEST; dependant code 00 | Unclear, see Q10 | P2 | D2, D4 |
| TC-19 | Checkout with no medical aid linked | Testi Three (account SOLO1) with no membership linked | 1. Tick Fakeprolol 50 mg, choose collection, and tap Checkout. 2. Screenshot the amounts and options shown. | SOLO1 / Testi Three | Unclear, see Q11 | P1 | D2, D4 |
E. Delivery
| ID | Title | Preconditions | Steps | Test data | Expected result | Priority | Platforms |
|---|
| TC-20 | Co-payment total of R299.99 has an R45 fee | Testa One; M-BOUND299 linked; address saved in PC-IN | 1. Tick Fakeprolol 50 mg. 2. Choose Home delivery and select 12 Sample Road, Testville (PC-IN). 3. Tap Checkout and wait for the amounts. 4. Read the delivery fee line. | M-BOUND299 (co-payment total R299.99); PC-IN | The checkout shows a delivery fee of R45.00. | P1 | D1, D2, D4 |
| TC-21 | Co-payment total of R300.00 has free delivery | As TC-20, but with M-BOUND300 linked | Same as TC-20. | M-BOUND300 (co-payment total R300.00); PC-IN | The checkout shows no delivery fee (R0.00 or "Free"). | P1 | D1, D2, D4 |
| TC-22 | Address outside the delivery zones | Testa One; M-APPROVED linked; address saved in PC-OUT | 1. Tick Fakeprolol 50 mg. 2. Choose Home delivery and select 7 Example Lane, Testville (PC-OUT). 3. Try to complete checkout. Screenshot any message (Q13). | PC-OUT | The order cannot be placed with home delivery to this address. | P2 | D2, D4 |
| TC-23 | Schedule 5 or 6 item alone can't be delivered | Testa One; M-APPROVED linked; address saved in PC-IN | 1. Tick only Restrictazepam 5 mg. 2. Try to choose Home delivery. 3. Repeat steps 1–2 with only Dummorphine 10 mg. | Restrictazepam 5 mg (Schedule 5); Dummorphine 10 mg (Schedule 6); PC-IN | For each item, home delivery cannot be chosen, and branch collection is the only option that can be completed. | P1 | D1–D5 |
| TC-24 | Schedule 5 item in a basket with an unscheduled item | As TC-23 | 1. Tick Restrictazepam 5 mg and Fakeprolol 50 mg. 2. Choose Home delivery to PC-IN. 3. Screenshot what the app allows. | Restrictazepam 5 mg; Fakeprolol 50 mg; PC-IN | Unclear, see Q14 | P1 | D2, D4 |
| TC-25 | Rejected claim with cash price above R300 and delivery | Testa One; M-REJECT linked; address saved in PC-IN | 1. Tick Fakeprolol 50 mg and Placebozide 25 mg. 2. Choose Home delivery to PC-IN and tap Checkout. 3. Choose to pay the cash price. 4. Read the delivery fee line. | M-REJECT; cash total R370.00 | Unclear, see Q15 | P2 | D2, D4 |
F. Notices and privacy
| ID | Title | Preconditions | Steps | Test data | Expected result | Priority | Platforms |
|---|
| TC-26 | Lock-screen push has no medicine name | Testa One; notifications allowed; lock screen set to show full content (Android: lock screen notifications set to show content; iOS: Show Previews set to Always); paid collection order for Fakeprolol 50 mg | 1. Lock the phone. 2. In the back-office tool, set the order to Ready to collect. 3. Wait up to 15 min and note the arrival time. 4. Without unlocking, read the notification. On Android, also expand it. | Fakeprolol 50 mg | The lock-screen notification, collapsed and expanded, does not contain "Fakeprolol" or any other medicine name. | P1 | D1–D5 |
| TC-27 | SMS has no medicine name | Testa One's mobile number is a test SIM; paid home-delivery order for Fakeprolol 50 mg | 1. In the back-office tool, set the order to Out for delivery. 2. Wait up to 15 min. 3. Open the SMS on the handset and read the full text. | SIM-VOD on D2; SIM-MTN on D4 | The SMS text does not contain "Fakeprolol" or any other medicine name. | P1 | D2, D4 |
| TC-28 | Ready to collect sends both push and SMS | As TC-26, but with the phone unlocked | 1. In the back-office tool, set the order to Ready to collect. 2. Wait up to 15 min. Record when each notice arrives. | SIM-VOD or SIM-MTN | Both a push notification and an SMS for this order are received. | P2 | D1–D5 |
G. Repeat ordering
| ID | Title | Preconditions | Steps | Test data | Expected result | Priority | Platforms |
|---|
| TC-29 | Item with 0 repeats can't be picked | Testa One has Nullopril 10 mg with 0 repeats left | 1. Tap Repeat prescriptions. 2. Find Nullopril 10 mg. 3. Try to tick it. | Nullopril 10 mg, 0 repeats | Nullopril 10 mg shows "Ask your doctor for a new script" and cannot be ticked. | P1 | D1–D5 |
| TC-30 | Item with 1 repeat can be picked | FAM1 with Testa Two active; Mockstatin 20 mg has 1 repeat left | 1. Tap Repeat prescriptions. 2. Tick Mockstatin 20 mg. 3. Choose collection and tap Checkout. 4. After paying, record the repeats left (Q17). | Mockstatin 20 mg, 1 repeat | Mockstatin 20 mg can be ticked and appears in the checkout summary. | P2 | D1, D4 |
3. Regression checklist
- Sign in, sign out and family profile switching work on D1 and D5
- An upgrade from 3.7 to 3.8 keeps the session, family profiles and saved addresses
- The chronic prescription list loads with the correct repeats for each profile, over Wi-Fi, Vodacom and MTN
- Card and Instant EFT payments complete end to end in the sandbox
- Orders placed before 3.8 still show in order history with the correct status
- The branch list and branch collection choice work
- Saved delivery addresses can be added, edited and deleted
- The push permission prompt and notification opt-out work on Android 13+ (runtime permission), Android 8.0 and iOS
- Order notifications that existed before 3.8 still arrive
- After Samsung or Hisense battery optimisation kills the app in the background, it reopens signed in to a usable screen
- The app recovers when signal comes back after being lost on the home screen and on the prescription list
4. Test data needs
- Devices: D1 to D5 as listed in section 2, each with the 3.8 test build installed. Keep one Android 8.0 device on the oldest supported OS.
- SIMs: SIM-VOD (Vodacom) and SIM-MTN (MTN) with data and SMS. Their numbers are set as the profile mobile numbers.
- Accounts:
- FAM1, with profiles Testa One (main) and Testa Two (dependant).
- SOLO1, with profile Testi Three and no medical aid.
- All names and addresses are fake.
- Prescriptions: all medicine names are fake so they're easy to spot in notification text.
- Testa One: Fakeprolol 50 mg (3 repeats, cash price R250.00), Placebozide 25 mg (3 repeats, cash price R120.00), Nullopril 10 mg (0 repeats), Restrictazepam 5 mg (Schedule 5) and Dummorphine 10 mg (Schedule 6).
- Testa Two: Mockstatin 20 mg (1 repeat).
- Testi Three: Fakeprolol 50 mg.
- Confirm with the PM how a Schedule 6 item can appear as a repeat in test data.
- Each test that uses up a repeat needs a reset or a fresh prescription.
- Claims switch test members:
- M-APPROVED, M-PARTLY and M-REJECT.
- Ask the switch vendor for: M-MIXED (one item rejected), M-ZERO (co-payment R0.00), M-BOUND299 (co-payment total R299.99) and M-BOUND300 (co-payment total R300.00).
- Record the real test member numbers and dependant codes in the cycle data sheet.
- Switch faults: a 40 s response delay and a dropped response, set up either in switch test mode or with a proxy on office Wi-Fi. Install the proxy certificate on test devices if needed.
- Payment sandbox:
- Cards: one that always approves and one that is always declined.
- Instant EFT: a sandbox bank that completes successfully.
- Read access to the sandbox transaction log for the test merchant.
- Branch and zones:
- Test Branch A with delivery zones configured.
- PC-IN: a postal code inside Test Branch A's zone, with the saved address 12 Sample Road, Testville.
- PC-OUT: a valid postal code outside all zones, with the saved address 7 Example Lane, Testville.
- Back-office test tool: access to set orders to Ready to collect and Out for delivery, and to view order status.
- Session timeout: the configured timeout length from the developers, or a shortened test value.
- Reset: a way to reset repeats, unlink medical aid and cancel test orders between runs.
5. Questions on unclear requirements
Q1. How long should the app wait for the claims switch before payment, given month-end responses of up to 40 s? What should the patient see if it doesn't respond: an error, a retry option, or something else? Blocks: TC-01 if the app gives up before 40 s.
Q2. If the switch times out or fails after the co-payment has been charged (the 3.6 incident), what should happen? What order status should show, is the charge reversed automatically and how quickly, and what message does the patient see? Blocks: TC-02.
Q3. If the payment is interrupted by lost signal, or by the app being backgrounded or killed during the Instant EFT redirect, what order status and screen should the patient see when they return? How is a payment that succeeded at the provider matched to the order? Blocks: TC-04 and the order-status part of TC-03.
Q4. What is the session timeout? If it expires mid-checkout, what happens: is the basket kept, is the switch asked again, is the patient sent back to sign in? Blocks: TC-06.
Q5. When a payment is declined, what should the patient see? Can they retry or choose another method? What status does the order have, and is the basket kept? Blocks: TC-07.
Q6. The requirements don't mention family profiles. Is medical aid linked per profile, as the dependant code suggests? What happens to an open basket or checkout when the profile is switched? Which mobile number gets the SMS for a dependant's order? Blocks: TC-09.
Q7. After a claim is rejected, which payment methods can the patient use to pay the cash price: card, Instant EFT or both? Affects TC-14, which assumes card.
Q8. RX-3 says "if the claim is rejected". If the switch rejects only some items, does the full cash price apply only to those items? What choices does the patient get? Blocks: TC-15.
Q9. If the co-payment is R0.00, is the payment step skipped? With delivery, the R45 fee applies, because R0.00 is under R300. How is the fee paid in that case? Blocks: TC-16.
Q10. What formats are valid for the member number and dependant code? Is the membership checked with the switch when it's linked, and what does the patient see if the switch doesn't recognise it? Blocks: TC-18.
Q11. Can a patient with no medical aid linked check out at the cash price, or is linking required? Blocks: TC-19.
Q12. RX-2 allows one membership. What happens if the patient tries to link a second one: is it blocked, does it replace the first, or something else? Can a membership be edited or unlinked? Blocks: no case has been written yet. I'll add one once this is answered.
Q13. When the postal code is outside the delivery zones, what message should show, and is branch collection offered instead? Affects the message check in TC-22. The expected result in TC-22 tests only that delivery can't be completed.
Q14. If the basket has a Schedule 5 or 6 item plus unscheduled items and the patient chooses delivery, what should happen? Is the whole order collection only, is the order split, or is the patient asked to remove items? Blocks: TC-24.
Q15. Is the R45 fee charged in the same payment as the co-payment? Does "co-payment total" leave out the fee itself? After a rejected claim, does the cash price count toward the R300 threshold? Blocks: TC-25. TC-20 and TC-21 check only the fee shown.
Q16. What should the push and SMS say, for example the order number and branch? Does RX-6 also cover expanded notifications, the notification centre and paired watches? How soon after the status change should the notices arrive? Affects TC-26 to TC-28. The cases currently use a 15-minute wait as a practical cutoff.
Q17. When is a repeat used up: when the order is placed, when it's paid, or when it's collected? Does cancelling the order, including cancelling after a rejected claim, give the repeat back? Blocks: the repeat-count checks in TC-13 and TC-30.