Skip to content

Test Plan for iteration 1

Saruj Sattayanurak edited this page Nov 10, 2021 · 4 revisions

Test Scope

Testing activities for this iteration will focus on user story R1 and R2. Here are some information about these user stories.

1 2

Test Schedule

  • Start date: Monday 11 OCT 2021
  • Finish date: Thursday 14 OCT 2021

Entry/Exit Criteria

  • Entry Criteria - User story R1&R2 have successful implemented and have been approved to merge to main branch
  • Exit Criteria - Reach 100% structure and branch coverage for helper.js and all {number} mutants have been killed

Resources

  • JEST(testing framework)
  • Junit(testing framework)
  • Cucumber
  • Postman

What to test

1. Test end-point that provided by GOV

  • Test whether or not end-point is fetch-able

  • Test whether or not, information provided by GOV are contain at least

    • Name
    • SureName
    • BirthDate
    • Citizen ID
    • Occupation
    • Address
    • Registration TimeStamp
    • ReservationID

2. Test end-point for fetching data from internal database

  • Test param /people/all
  • Test param /people/by_date/{dd-mm-yyyy}

3. Test helper.js

  • Test age calculation function
  • Test priority assignment function
    • user who is doctor and nurse will be in priority level 1
    • user who older that 60 will be in priority level 2
    • off-by-one error
    • doctor and nurse who older than 60 year old will still classified as level 1
    • user who is not a doctor or nurse and younger than 60 will be in priority level 3
  • Test update information function
    • after assign priority, JSON data suppose to have one more key which is priority level
  • Test data formation function

Test Approach

  • WhiteBox unit testing - JEST
  • BBD testing - Cucumber
  • Structural testing - Aim to get 100% structure and branch coverage for helper.js

What is NOT tested

We're not going to test the end-point that provided by GOV, because we assume that GOV team have already test it. Moreover, We also not test other user stories that are beyond user story R1 and R2

Clone this wiki locally