1213: Reject requisition endpoint should only work on authorized requsitions

1213: Reject requisition endpoint should only work on authorized requsitions

 

Test Case #:1213

 

Test Case Name: Reject requisition endpoint should only work on authorized requsitions

System: openLMIS

Subsystem: blue

Test case designed by: Lucyna Laska

Design Date:28.10.2016

Short description: Rejecting a requisition should only work, when the requisition is waiting for approval. In any other case the endpoint should not move the requisition back to initiated state

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

Step

Action

Expected system response

Comment

1

        Using demo-data, find the requisition with status AUTHORIZE and try to reject it:

Method: PUT

 

 


The requisition has been rejected successfully.

                                                                                                                            

                                                 

2

Using demo-data, find the requisition with status INITIATED and try to reject it:

Method: PUT

The requisition can not be rejected, because status is incorrect,

 

 

3

Using demo-data, find the requisition with status SUBMITTED and try to reject it:

Method: PUT

The requisition can not be rejected, because status is incorrect,

 

4

Using demo-data, find the requisition with status APPROVED and try to reject it:

Method: PUT

The requisition can not be rejected, because status is incorrect.

 

5

 

 

 

6

 

 

 

7

 

 

 

8

                                                

 

 

Post – conditions:

OpenLMIS: the global initiative for powerful LMIS software