n/n Test Case | Test Case Description | Test Case Inputs | Expected Result | Step by Step Script | Actual result |
---|
DR1 | Declaration request OTP with phone not verified. | - Patient - Adult, New
- Confidant person - No
- Active declarations - No
- Authentication method - OTP
- Phone number - Not verified
- Doctor specialization - Therapist
| Validation error - 422 - Phone number not verified
| - Create declaration request
|
|
DR2 | Declaration request OTP with phone verified. | - Patient - Adult, New
- Confidant person - No
- Active declarations - No
- Authentication method - OTP
- Phone number - Verified
- Doctor specialization - Therapist
| Response - 200 - No SMS to Patient
- Declaration request saved to DB in status APPROVED
| - Create declaration request
- Approve declaration request
|
|
DR3 | Declaration request OFFLINE with phone verified. | - Patient - Adult, New
- Confidant person - No
- Active declarations - No
- Authentication method - OFFLINE
- Phone number - Verified
- Doctor specialization - Therapist
| Response - 200 - No sms to Patient
- two links for documents to upload
- Declaration request saved to DB in status APPROVED
| - Create declaration request
- Upload document
- Approve declaration request
|
|
DR4 | Declaration request OTP with phone verified and previous authentication method OTP | - Patient - Adult, Existing
- Confidant person - No
- Active declarations - No
- Authentication method - OTP
- Previous method - OTP
- Phone number - Verified, Same
- Doctor specialization - Therapist
| Response - 200 - No SMS to Patient
- Declaration request saved to DB in status APPROVED
| - Create declaration request
- Approve declaration request
|
|
DR5 | Declaration request OTP with active declaration | - Patient - Adult, Existing
- Confidant person - No
- Active declarations - Yes
- Authentication method - OTP
- Previous method - OTP
- Phone number - Verified, Same
- Doctor specialization - Therapist
| Response - 200 - No SMS to Patient
- Declaration request saved to DB in status APPROVED
| - Create declaration request
- Approve declaration request
|
|
DR6 | Declaration request OTP with active declaration and previous authentication method OFFLINE | - Patient - Adult, Existing
- Confidant person - No
- Active declarations - No
- Authentication method - OTP
- Previous method - OFFLINE
- Phone number - Verified
- Doctor specialization - Therapist
| Response - 200 - No SMS to Patient
- links for documents to upload?
| - Create declaration request
- Approve declaration request
|
|
DR7 | Declaration request OFFLINE with active declaration and previous method OTP | - Patient - Adult, Existing
- Confidant person - No
- Active declarations - Yes
- Authentication method - OFFLINE
- Previous method - OTP
- Phone number - Verified
- Doctor specialization - Therapist
| Response - 200 - No SMS to Patient
- notification
- authentication_method_current with type and phone number "+38095*****98"
- Declaration request saved to DB in status APPROVED
| - Create declaration request
- Approve declaration request
|
|
DR8 | Клиент через несколько месяцев достигнет 18 лет. Врач терапевт | - Patient - Child, New
- Confidant person - No
- Active declaration - No
- Authentication method - OTP
- Phone number - Verified
- Doctor specialisation - Therapist
| Response - 422 - Doctor speciality does not meet the patient's age requirement.
| - Create declaration request
|
|
DR9 | Клиент через несколько месяцев достигнет 18 лет. Врач терапевт | - Patient - Child, New
- Confidant person - No
- Active declaration - No
- Authentication method - OTP
- Phone number - Verified
- Doctor specialisation - Pediatrician
| Response 200 - End date = birth date + 18 years
| - Create declaration request
|
|
DR10 | Patient will be an adult in several months
| - Patient - Child, New
- Confidant person - No
- Active declaration - No
- Authentication method - OTP
- Phone number - Verified
- Doctor specialisation - NOT Therapist
| Response - 200 - No SMS to Patient
- Declaration request saved to DB in status APPROVED
| - Create declaration request
- Approve declaration request
|
|
DR11 | Ошибка валидации статуса declaration request - №403 (на момент подписания статус реквеста должен быть APPROVE) | - Patient - Child, New
- Confidant person - No
- Active declaration - No
- Authentication method - OTP
- Phone number - Verified
- Declaration request status - NEW
| Responce - 403 | - Create declaration request
- Approve declaration request
|
|
DR12 | Declaration request for Adult and Pediatrician | - Patient - Adult, New
- Confidant person - No
- Active declarations - No
- Authentication method - OTP
- Phone number - Verified
- Doctor specialization - Pediatrician
| Response - 422 - Doctor speciality does not meet the patient's age requirement.
| - Create declaration request
|
|
DR13 | Declaration requests with two REGISTRATION addresses | - Patient - Adult, New
- Confidant person - No
- Active declarations - No
- Authentication method - OTP
- Phone number - Verified
- Doctor specialization - Therapist
- Addresses type - REGISTRATION
| Response - 422 - one and only one registration address is required
| - Create declaration request
|
|
DR14 | Declaration request with no phone and auth method OFFLINE | - Patient - Adult, New
- Confidant person - No
- Active declarations - No
- Authentication method - OFFLINE
- Phone number - Not verified and not exists
| Responce - 422 - Error during MAN interaction. Result from MAN: \"{\\\"type\\\":\\\"internal_error\\\"}\"
| - Create declaration request
|
|
DR15 | Declaration request OTP with previous method OTP and different mobile phone | - Patient - Adult, Old
- Confidant person - No
- Active declarations - Yes
- Authentication method - OTP
- Previous method - OTP
- phone number - different
- Phone number - Verified
| Responce - 200 - notification
- authentication_method_current with type and phone number "+38095*****98"
- verified code for old nunber
- Declaration request saved to DB in status APPROVED
| - Create declaration request
- Approve declaration request
|
|
DR16 | Declaration request with patien birth date incorrect | - Patient - Adult, New
- Confidant person - No
- Active declarations - No
- Authentication method - OTP
- Phone number - Verified
- Patient birth date - 2003-02-29
| Responce - 422 - description": "expected \"2003-02-29\" to be a valid ISO 8601 date
| - Create declaration request
|
|
DR17 | Sign declaration | - Patient - Adult, New
- Confidant person - No
- Active declarations - No
- Phone number - Verified
| Response 200 - New declaration saved to DB in status SIGN
| - Create declaration request
- Approve declaration request
- Get declaration request
- Sign declaration request
|
|
DR18 | Re-sign declaration with the same patient | - Patient - Adult, Old
- Confidant person - No
- Active declarations - Yes
- Phone number - Verified
| Response 200 - old declaration updated in database with status terminated
- New declaration request saved to DB in status SIGN
| - Create declaration request
- Approve declaration request
- Get declaration request
- Sign declaration request
|
|
DR19 | Sign declaration in status SIGNED | - Patient - Adult, Old
- Confidant person - No
- Active declarations - Yes, Signed
- Phone number - Verified
| Response 422 - validation_failed - incorrect status
| - Create declaration request
- Approve declaration request
- Get declaration request
- Sign declaration request
|
|