OLMIS-605 : View Approved Orders.

Test Case #605

Test Case Name: View Approved Orders.

System: OpenLMIS

Subsystem:Requisition

Test case designed by: Piotr Żurawski

Design Date:25.07.2016

Short description: Check possibility to view approved orders.

                                                                                                                                                   

Pre – conditions:

  1. Create Program

    URL: http://localhost:8080/api/programs

    Method: POST

    Request:

    {

    "code":"programCodee"

    }

  2. Create geographic Levels by Postman.

    URL: http://localhost:8080/api/geographicLevels

    Method: POST

    Request:

    {

    "code":"geoLevelCode",

    "levelNumber":200

    }

  3. Create geographic Zones by Postman.

    URL: http://localhost:8080/api/geographicZones

    Method: POST

    Request:

    {

    "code":"geoZonesLeve;",

    "level":"http://localhost:8080/api/geographicLevels/77632169-52ce-4af5-8536-903e9ec4ebd3"

    }

  4. Create facility Types by Postman.

    URL: http://localhost:8080/api/facilityTypes

    Method: POST

    Request:

    {

    "code":"facilityTypeCode"

    }

  5. Create facilities by Postman.

    URL: http://localhost:8080/api/facilities

    Method: POST

    Request:

    {

    "code":"facilityCodee",

    "geographicZone":"http://localhost:8080/api/geographicZones/120f87cd-cd0f-4359-9c10-62a2a49b91cc",

    "type":"http://localhost:8080/api/facilityTypes/08554454-da09-44bc-ad03-44f5886a3637",

    "active":false,

    "enabled":false

    }

  6. Create user by Postman.

    URL: http://localhost:8080/api/users

    Method: POST

    Request:

    {

    "username":"usernamee",

    "password":"passsword",

    "firstName":"userFirstName",

    "lastName":userLastName"

    }

  7. Create orders by Postman.

    URL: http://localhost:8080/api/orders

    Method: POST

    Request:

    {

    "createdBy":"http://localhost:8080/api/users/1a750a52-f9bc-4f62-8250-733485fd1236",

    "program":"http://localhost:8080/api/programs/a1ca984c-03c1-4300-818c-23b1e0cb3116",

    "requestingFacility":"http://localhost:8080/api/facilities/74338235-6d80-4f49-a6a6-457b0ac3b27d",

    "receivingFacility":"http://localhost:8080/api/facilities/74338235-6d80-4f49-a6a6-457b0ac3b27d",

    "supplyingFacility":"http://localhost:8080/api/facilities/74338235-6d80-4f49-a6a6-457b0ac3b27d",

    "orderCode":"order_code",

    "status":"ORDERED",

    "quotedCost":"51"

    }

 

 

Post – conditions:        

OpenLMIS: the global initiative for powerful LMIS software