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, geographicLevel id: "http://localhost:8080/api/geographicLevels/943585a3-6a77-4120-918a-21a306a74b57"
|
|
2 | Create geographicZone Method: POST
Example body: { "code": "zonecode", "name": "zonename",
}
| status: 201 created, geographicZone id: "http://localhost:8080/api/geographicZones/610cef4a-9178-4199-ab51-dd8cc91661f4" |
|
3 | Create FacilityType Method: POST
Example Body: { "code": "manyfacilitytypes" }
| status: 201 created, facilityType id: "http://localhost:8080/api/facilityTypes/634d8b8f-3cbd-44c0-8b70-107cea7f2759" |
|
4 | Create Facility. Method: POST
Example body: { "code": "newfacilitycode", "geographicZone": "http://localhost:8080/api/geographicZones/610cef4a-9178-4199-ab51-dd8cc91661f4", "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: { "processingPeriod": "http://localhost:8080/api/periods/b7aa89dd-7548-4196-8231-b85e85030ef0", "status": "INITIATED" } b) Example Body: { "processingPeriod": "http://localhost:8080/api/periods/ac04a37f-4e2d-465b-a709-5623670cf36b", "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