240: Confirm Fill Quantities (Finalize Order)

240: Confirm Fill Quantities (Finalize Order)

Test Case #:240

 

Test Case Name:Confirm Fill Quantities (Finalize Order)

System: OpenLMIS

Subsystem: requisition

Test case designed by: Lucyna Kwidzińska

Design Date:25.07.2016

Short description: Possibility to update my fill quantities, expiry date, and VVM status based on having physically located the stock to be shipped so that I can confirm I have the physical inventory to fill the order prior to shipping the commodities

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

 

 

Step

Action

Expected system response

Comment

 

Note: Remember to generate token for authentication using some rest client.

 

Copy the token from response (e.g. {"access_token":"121d02ed-b6b4-4233-9566-cac2b8a3aec9"...).

The token will expire after 1 hour. Then, it's necessary to generate the new one.

1

                                                        

Create User.

URL:

Method: POST

 

Example Body:

{

"username": "userLucy01",

"firstName": "nameLucy",

"lastName": "lastNameLucy01",

"verified": "true",

"active": "true"

}

                                                                                                               

          status: 201 created,          

                                                 

2

Create Program.

URL:

Method: POST

 

Example Body:

{

"code": "programnew01",

"name": "namenew",

"periodsSkippable": "true"

}

 

 status: 201 created,

program id:

 

 

3

Create geographicLevel.

URL:

Method: POST

Example Body:

{

"code": "geolevelnew01",

"levelNumber": "10"

}

 

status: 201 created,

geographicLevel id:

 

4

Create geographicZone.

Method: POST

 

Example Body:

{

"code": "testowyc01",

 

}

 

 status: 201 created,

geographicZone id:

 

5

Create FacilityType.

URL:

Method: POST

 

Example Body:

{

"code": "facilitytype01",

"name": "name011"

}

 

status: 201 created,

facilityType id:

 

 

6

Create facility.

Method: Body

 

Example Body:

{

"code": "facilcodenew01",

"active": "true",

"enabled": "true"

}


 

 

status: 201 created,

facility id:

 

7

Create Order.

Method: POST

 

Example Body:

{

"orderCode": "ordertesty101",

"status": "ORDERED",

"quotedCost": "98.444"

 

}

status: 201 created,

order id:

 

 

8

Change the status of the order to SHIPPED (request will be executed successfully if the order was created properly).

Example body:

 

status: 200 OK,

 

 

9

Verify if the status of the order was changed.

Method: GET

 

 

 

 

Post – conditions:

OpenLMIS: the global initiative for powerful LMIS software