Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


n/nDescriptionTest Case InputsExpected ResultStep by Step ScriptActual Result

Create Medical Programname = Valid

Response 200

Medical Program saved to DB

  1. Log in as NHS Admin
  2. Create medical program
  •   

Create Medical Program not by NHS Adminname = Valid

Response 401

Authorization header is not set or doesn't contain Bearer token

  1. Log in as MIS
  2. Create medical program without scopes
  •   

Get Medical Program list
Response 200
  1. Log in as NHS Admin
  2. Get medical programs
  •   

Get Medical program by ID
Response 200
  1. Log in as NHS Admin 
  2. Get medical program by id
  •   

Get Medical Program by name
Response 200
  1. Log in as NHS Admin 
  2. Get Medical Program by name
  •   

Get Active Medical Program
Response 200
  1. Log in as NHS Admin 
  2. Get active medical programs
  •   

Get Medical Program By wrong ID
Response 404
  1. Log in as NHS Admin 
  2. Get medical programs by wrong ID
  •   

Create Medical Program without namename = ""Response 422
  1. Log in as NHS Admin 
  2. Create medical program without name
  •   

Get medical program not by NHS Admin

Response 403

Your scope does not allow to access this resource. Missing allowances: medical_program:read

  1. Log in as NHS Admin
  2. Get medical program not by NHS Admin
  •   





  •