ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

n/nDescriptionTest Case InputsExpected ResultStep by step ScriptActual Result

Create INNM
  1. Authorization = NHS Admin
  2. name - valid
  3. form = valid
  4. Substance 
    1. id - active
    2. Numerator unit - true
    3. Numerator value > 0
    4. Denumerator unit - true
    5. Denumerator value > 0
    6. is active - true

Response 200

INNMS created. Saved to DB

  1. Login as NHS Admin
  2. Create innm copy
  •  

Create INNM with 0 ingredients
  1. Authorization = NHS Admin
  2. name - valid
  3. form = valid
  4. Substance 
    1. id - active
    2. Numerator unit - true
    3. Numerator value = 0
    4. Denumerator unit - true
    5. Denumerator value = 0
    6. is active - true

Response 422

message: expected the value to be > 0

  1. Login as NHS Admin
  2. Create INNM with 0 ingredients
  •  

Create innm with not active substance
  1. Authorization = NHS Admin
  2. name - valid
  3. form = valid
  4. Substance 
    1. id - NOT active
    2. Numerator unit - true
    3. Numerator value > 0
    4. Denumerator unit - true
    5. Denumerator value > 0
    6. is active - true

Response 422

message: "Substance in ingredients must be active!"

  • Login as NHS Admin
  • Create innm with not active substance
  •  

Create innm with 2 is_active_subst ingredients
  • Authorization = NHS Admin
  • name - valid
  • form = valid
  • Substance 
    1. id - active
    2. Numerator unit - true
    3. Numerator value > 0
    4. Denumerator unit - true
    5. Denumerator value > 0
    6. is active - true
  • Substance 
    1. id - active
    2. Numerator unit - true
    3. Numerator value > 0
    4. Denumerator unit - true
    5. Denumerator value > 0
    6. is active - true

Response 422

message: "One of ingredients must be is active substance!"

  1. Login as NHS Admin
  2. Create innm with 2 is_active_subst ingredients
  •  

Create innm 1 ingredient and is_active_substance=false
  • Authorization = NHS Admin
  • name - valid
  • form = valid
  • Substance 
    1. id - active
    2. Numerator unit - true
    3. Numerator value > 0
    4. Denumerator unit - true
    5. Denumerator value > 0
    6. is active - false

Response 422

message: "One of ingredients must be is active substance!"

  • Login as NHS Admin
  • Create innm 1 ingredient and is_active_substance=false
  •  

Create innm with 2 ingredients is_active=true & is_active=false
  • Authorization = NHS Admin
  • name - valid
  • form = valid
  • Substance 
    1. id - active
    2. Numerator unit - true
    3. Numerator value > 0
    4. Denumerator unit - true
    5. Denumerator value > 0
    6. is active - true
  • Substance 
    1. id - active
    2. Numerator unit - true
    3. Numerator value > 0
    4. Denumerator unit - true
    5. Denumerator value > 0
    6. is active - false

Response 201

INNM created. Saved to DB


  • Login as NHS Admin
  • Create innm with 2 ingredients
  •  

Create innm with 2 ingredients with the same id
  • Authorization = NHS Admin
  • name - valid
  • form = valid
  • Substance 
    1. id - active
    2. Numerator unit - true
    3. Numerator value > 0
    4. Denumerator unit - true
    5. Denumerator value > 0
    6. is active - true
  • Substance 
    1. id - active, the same
    2. Numerator unit - true
    3. Numerator value > 0
    4. Denumerator unit - true
    5. Denumerator value > 0
    6. is active - false
Response 422
  • Login as NHS Admin
  • Create innm with 2 ingredients with the same id
  •  
  • No labels