845: Change value of cascade parameter in ManyToOne annotations

845: Change value of cascade parameter in ManyToOne annotations

Test Case #:845

 

Test Case Name: Change value of cascade parameter in ManyToOne annotations

System: OpenLMIS

Subsystem: requisition

Test case designed by: Lucyna Kwidzińska

Design Date:26.07.2016

Short description

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

 

 

Step

Action

Expected system response

Comment

1

                                                         

Create geographicLevel

Method: POST

 

Example Body:

{

"code": "levelcode",

"levelNumber": "14"

}

                                                                                                              

  status: 201 created,

                  

                                                 

2

Create geographicZone

Method: POST

 

Example body:

{

"code": "zonecode",

"name": "zonename",

 

}

 

  status: 201 created, 

 

3

Create FacilityType

Method: POST

 

Example Body:

{

"code": "manyfacilitytypes"

}

 

status: 201 created,

 

4

Create Facility.

Method: POST

 

Example body:

{

"code": "newfacilitycode",

"active": "true",

"enabled": "true"

}

 

 status: 201 created,

 

5

Create program (two times with different values → like example below)

Method: POST

Example body:

{

"code": "oneprogram",

"periodsSkippable": "true"

}

 

status: 201 created,

a) program I,

b) program II,

 

6

Create schedule (two times with different values → like example below)

Method: POST

 

Example body:

{

"code": "onecode01",

"name": "onename01"

}

 

status: 201 created,

a) schedule I,

b) schedule II,

 

7

Create period (two times with different values → like example below)

Method: POST

 

Example Body:

{

"processingSchedule": {

"id": "b34deff6-33b3-4247-9a0e-372cc57ce58e",

"code": "onecode01",

"name": "onename01"

},

"name": "onenameperiod",

"startDate": "2016-07-30",

"endDate": "2016-08-01"

}

status: 201 created,

a) period I:

b) period II,

 

8

Verify if it's a possibility to create the requisitions with the same facility.  

Method: POST

a)

Example body:

{

"status": "INITIATED"

}

b)

Example Body:

{

"status": "INITIATED"

 

}

a) status: 201 created,

 

 

b) status: 201 created,

 

Two requisitions was created with the same facility. Values for program and processingPeriod are different.

 

 

Post – conditions:

OpenLMIS: the global initiative for powerful LMIS software