n/n | Description | Test Case Inputs | Expected Result | Step by step Script | Actual Result |
---|
| Create INNM | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- is active - true
| Response 200 INNMS created. Saved to DB | - Login as NHS Admin
- Create innm copy
| |
| Create INNM with 0 ingredients | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - active
- Numerator unit - true
- Numerator value > = 0
- Denumerator unit - true
- Denumerator value > = 0
- is active - true
| Response 200INNMS created. Saved to DB422 message: expected the value to be > 0 | - Login as NHS Admin
- Create innm copyINNM with 0 ingredients
| |
| Create INNM with 0 ingredientsinnm with not active substance | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - NOT active
- Numerator unit - true
- Numerator value = > 0
- Denumerator unit - true
- Denumerator value = > 0
- is active - true
| Response 422 message: expected the value to be > 0"Substance in ingredients must be active!" | INNM with 0 ingredients- innm with not active substance
| |
| Create innm with | not active substance2 is_active_subst ingredients | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- is active - true
- Substance
- id -
NOT - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- is active - true
| Response 422 message: " | Substance in One of ingredients must be is active substance!" | - Login as NHS Admin
- Create innm with
| not active substance- 2 is_active_subst ingredients
| |
| Create innm with 2 1 ingredient and is_active_subst ingredientssubstance=false | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- id - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- is active - trueis active - true
Substance - false
| Response 422 message: "One of ingredients must be is active substance!" | - Login as NHS Admin
- Create innm
with 2 - 1 ingredient and is_active_
subst ingredients | |
| Create innm 1 ingredient and with 2 ingredients is_active=true & is_substanceactive=false | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- is active - true
- Substance
- id - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- is active - false
| Response 422message: "One of ingredients must be is active substance!"201 INNM created. Saved to DB
| - Login as NHS Admin
- Create innm 1 ingredient and is_active_substance=falsewith 2 ingredients
| |
| Create innm with 2 ingredients is_active=true & is_active=falsewith the same id | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - active
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- is active - true
- Substance
- id - active, the same
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- is active - false
| Response 201INNM created. Saved to DB422 | - Login as NHS Admin
- Create innm with 2 ingredients with the same id
| |
| Create innm with 2 ingredients with the same idAuthorization = NHS Adminname - validform = validSubstance id - activeNumerator unit - trueNumerator value > 0Denumerator unit - trueDenumerator value > 0is active - truenot by NHS Admin | - Authorization = NHS Admin
- name - valid
- form = valid
- Substance
- id - active, the same
- Numerator unit - true
- Numerator value > 0
- Denumerator unit - true
- Denumerator value > 0
- is active - falsetrue
| Response 422403 Message: Your scope does not allow to access this resource. Missing allowances: innm:write | - Login as NHS Admin
- Create innm with 2 ingredients with the same id
|
|