n/n Test Case | Test Case Description | Test Case Inputs | Expected Result | Step by Step Script | Actual Result |
---|
EPR1 | Pharmacy_owner registers new employee with employee_type 'Pharmacist' and with valid accreditation category | - status - "NEW",
- employee_type - "PHARMACIST"
- party
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
- educations - valid
- speciality_type - PHARMASICT
- ACCREDITATION_CATEGORY - is not null
| Response 200 - Employee saved in DB with status APPROVED
| - Get Pharmacy_owner authorize token
- Authorize scopes owner
- Exchange grant token Pharmacy_owner
- Create employee request
- Pass register steps via link in email
|
|
EPR2 | Pharmacy_owner registers new employee with employee_type 'Pharmacist' and with empty accreditation category | - status - "NEW",
- employee_type - "PHARMACIST"
- party
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
- educations - valid
- speciality_type - PHARMASICT
- ACCREDITATION_CATEGORY - null
| Response ???? | - Get Pharmacy_owner authorize token
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
- ????
|
|
EPR3 | Pharmacy_owner registers new adult employee with employee_type 'HR' | - status - "NEW",
- employee_type - "HR"
- party
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
| Response 200 - Employee saved in DB with status APPROVED
| - Get Pharmacy_owner authorize token
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
- Pass register steps via link in email
|
|
EPR4 | Pharmacy_owner registers new not adult employee with employee_type 'HR' | - status - "NEW",
- employee_type - "HR"
- party
- name - valid
- birth_date - not valid (<18)
- documents - valid
- tax_id - valid
- phones - valid
| Response 422 | - Get Pharmacy_owner authorize token
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
|
|
EPR5 | Pharmacy_owner registers himself as new employee with employee_type 'HR' | - status - "NEW",
- employee_type - "HR"
- party
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
- education is null
| Response 200 - Employee saved in DB with status APPROVED
| - Get Pharmacy_owner authorize token
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
- Pass register steps via link in email
|
|
EPR6 | HR registers new employee with employee_type PHARMACIST with - speciality_type - PHARMACIST2
| - status - "NEW",
- employee_type - "PHARMACIST"
- party
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
- educations - valid
- speciality_type - PHARMACIST2
- Position - P15
| Response 200 - Employee saved in DB with status APPROVED
| - Get HR authorize token
- Authorize scopes hr
- Exchange grant token HR
- Create employee request
- Pass register steps via link in email
|
|
EPR7 | HR registers new employee with employee_type PHARMACY_OWNER | - status - "NEW",
- employee_type - "PHARMACY_OWNER"
- name - valid
- birth_date - valid
- documents - valid
- tax_id - valid
- phones - valid
- educations - valid
| Response 422?? | - Get HR authorize token
- Authorize scopes hr
- Exchange grant token HR
- Create employee request
|
|
EPR8 | PHARMACY_OWNER registers new employee with employee_type PHARMACY_OWNER | - status - "NEW",
- employee_type - "PHARMACY_OWNER"
- party
- name - valid
- birth_date - valid
- documents - valid
- tax_id - valid
- phones - valid
- educations - valid
| Response 422?? | - Get Pharmacy_owner authorize token
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
|
|
EPR9 | PHARMACY_OWNER registers new employee with employee_type PHARMACIST and without personal details | - status - "NEW",
- employee_type - "PHARMACIST"
- party - null
- speciality_type - PHARMASICT
| Response | - Get Pharmacy_owner authorize token
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
|
|
EPR10 | PHARMACY_OWNER registers new employee with employee_type PHARMACIST and without education | - status - "NEW",
- employee_type - "PHARMACIST"
- party
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
- educations is null
| Response 200 - Employee saved in DB with status APPROVED
| - Get Pharmacy_owner authorize toke
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
|
|
EPR11 | HR registers new employee with employee_type PHARMACIST with - speciality_type - FAMILY_DOCTOR
| - status - "NEW",
- employee_type - "PHARMACIST"
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
- educations - valid
- speciality_type - FAMILY_DOCTOR
| Response 422 | - Get HR authorize token
- Authorize scopes HR
- Exchange grant token owner
- Create employee request
|
|
EPR12 | PHARMACIST registers new employee with employee_type PHARMACIST | - status - "NEW",
- employee_type - "PHARMACIST"
- party
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
- educations - valid
- speciality_type - PHARMASICT
| Response 403 Your scope does not allow to access this resource | - Get PHARMACIST authorize token
- Authorize scopes PHARMACIST
- Exchange grant token owner
- Create employee request
|
|
EPR13 | Register old employee PHARMACIST by PHARMACY_OWNER with same personal info as PHARMACIST | - employee_type - "PHARMACIST"
- party - old:
- name - valid (as before)
- birth_date - valid (18+) (as before)
- documents - valid (as before)
- tax_id - valid (as before)
- phones - valid (as before)
- educations - valid (as before)
- speciality_type - PHARMASICT
| Response 422 | - Get PHARMACY_OWNER authorize token
- Authorize scopes PHARMACY_OWNER
- Exchange grant token owner
- Create employee request
- Create employee request
|
|
EPR14 | HR update updates info in personal details part for old PHARMACIST employee | - employee_type - "PHARMACIST"
- party -
- name - new
- birth_date - valid (18+) (as before)
- documents - valid (as before)
- tax_id - valid (as before)
- phones - valid (as before)
| Response 201 - employee updated in DB
- employee_ID is not changed in DB
| - Get HR authorize token
- Authorize scopes HR
- Exchange grant token owner
- Create employee request
- Update employee request
|
|
ER15EPR15 | PHARMACIST update updates info in personal personal details part for old PHARMACIST employee | - employee_type - "PHARMACIST"
- party -
- name - new
- birth_date - valid (18+) (as before)
- documents - valid (as before)
- tax_id - valid (as before)
- phones - valid (as before)
| Response 403 | - Get HR authorize token
- Authorize scopes HR
- Exchange grant token owner
- Create employee request
- Update employee request
|
|
EPR16 | Pharmacy_owner updates info in personal details part for old Pharmacy_owner employee | - employee_type - "Pharmacy_owner"
- party -
- name - new
- birth_date - valid (18+) (as before)
- documents - valid (as before)
- tax_id - valid (as before)
- phones - new
| Response 201 - PHARMACY_OWNER updated in DB
- employee_ID is not changed in DB
| - Get owner authorize token
- Authorize scopes owner
- Exchange grant token owner
- Create employee request
- Update employee request
|
|
EPR17 | HR deactivates PHARMACIST | status - DISMISSED |
|
|
|
EPR18 | PHARMACY_OWNER registers new employee with employee_type PHARMACIST not in his clinic | legal_entity_id - different |
|
|
|
ERP19 | PHARMACY_OWNER deactivates old employee with employee_type PHARMACIST not in his clinic | egal_entity_id - different status - DISMISSED |
|
|
|