Testing
The following provides details of testing Mulesoft Datascape Experience API. These should be used to validate the results
Environment
Name | Use | Addresses / Apps |
---|
Postman | This environment is available for integration to test, to ensure that calls to the API’s are technically correct and that the responses received are handled as expected. This environment is available for system, integration and user acceptance testing. | Postman Mulesoft Collection API: mdc-datascape |
MDC DEV | This environment is to test that, what is returned in POSTMAN GET is accurate in the DEV Environment | https://mdc-datascape-dev.au-s1.cloudhub.io/api |
MDC QA | This environment is to test that, what is returned in POSTMAN GETS is accurate in the QA Environment | https://mdc-datascape-qa.au-s1.cloudhub.io/api |
Datascape/Cemetery API Test Case
Positive Cases
Suggested Test Cases | Expected Result |
---|
/api/datascape/engagement/v1/cemeteries | Returns list of all cemeteries (success - 200) |
/api/datascape/engagement/v1/interments?filterByCemetery=Havelock&filterByFirstName=Richard Gilhespie&filterByYearOfBurialFrom=2018&filterByYearOfBurialTo=2018&filterByLastName=Skentelbery | Returns matching interments - all parameters (success - 200) |
/api/datascape/engagement/v1/interments?filterByFirstName=louisa mary | Returns matching interments - firstname (success - 200) |
/api/datascape/engagement/v1/interments/2560582?filterByLastName=Campbel | Returns matching interments - lastname (success - 200) |
/api/datascape/engagement/v1/interments?filterByFirstName=Louisa Mary&filterByCemetery=Picton | Returns matching interments - firstname & cemetery (success - 200) |
/api/datascape/engagement/v1/interments?filterByYearOfBurialFrom=2017&filterByYearOfBurialTo=2018 | Returns matching interments - year of burial from & year of burial to (success - 200) |
/api/datascape/engagement/v1/interments?filterByCemetery=Havelock&filterByYearOfBurialFrom=2017&filterByYearOfBurialTo=2017 | Returns matching interments - cemtery & year of burial from & year of burial to (success - 200) |
/api/datascape/engagement/v1/interments?filterByCemetery=Havelock | Returns matching cemetery interments (success - 200) |
/api/datascape/engagement/v1/interments/2560582 | Returns list of matching interments, multiple results (success - 200) |
Negative Cases
Suggested Test Cases | Expected Result |
---|
/api/datascape/engagement/v1/cemeteries (without correlationId) | No correlationId (error - 400) |
/api/datascape/engagement/v1/interments?filterByCemetery=HavelockNotExisting&filterByFirstName=Richard Gilhespie&filterByYearOfBurialFrom=2018&filterByYearOfBurialTo=2018&filterByLastName=Skentelbery | Not Found (error - 404) |
/api/datascape/engagement/v1/interments?filterByYearOfBurialFrom=2018=2017 | Bad Request (error - 400) |
/api/datascape/engagement/v1/interments/999999 | Not Found (error - 404) |
Datascape/Rates API Test Case
Positive Cases
Suggested Test Cases | Expected Result |
---|
/api/datascape/engagement/v1/streets | Returns list of all streets (success - 200) |
/datascape/engagement/v1/properties/addresses?filterByHouseNo=1568&filterByStreetName=Tumbledown Bay | Returns matching properties - all parameters (success - 200) |
/api/datascape/engagement/v1/properties/addresses?filterByStreetName=Tumbledown Bay | Returns matching properties - street name (success - 200) |
/api/datascape/engagement/v1/properties/valuation-refs?filterByAssessmentNo=20700 26300 AA | Details matching property - assessment no (success - 200) |
/api/datascape/engagement/v1/properties/132003 | Details matching property - property no (success - 200) |
Negative Cases
Suggested Test Cases | Expected Result |
---|
/api/datascape/engagement/v1/streets (without correlationId) | No correlationId (error - 400) |
/api/datascape/engagement/v1/properties/addresses?filterByHouseNo=9999&filterByStreetName=Tumbledown Bay | Not Found (error - 404) |
/api/datascape/engagement/v1/properties/valuation-refs?filterByAssessmentNo=20700 26300 AY | Not Found (error - 404) |
/api/datascape/engagement/v1/properties/999999 | Not Found (error - 404) |
Datascape/Property-files API Test Case
Positive Cases
Suggested Test Cases | Expected Result |
---|
/api/datascape/engagement/v1/property-files/container/PN174860?private=false&searchBy=propertyno&onlyCurrent=false&application=propertyfiles&company=datacom-mulesoft | Returns matching container information (success - 200) |
/api/datascape/engagement/v1/property-files/file/12260216?company=MDC&application=muleApp&searchBy=propertyno&onlyCurrent=false&private=false | Returns matching record file (success - 200) |
Negative Cases
Suggested Test Cases | Expected Result |
---|
/api/datascape/engagement/v1/property-files/container/PN174860 (without correlationId) | No correlationId (error - 400) |
/api/datascape/engagement/v1/property-files/container/AA174860?private=false&searchBy=propertyno&onlyCurrent=false&application=propertyfiles&company=datacom-mulesoft | Bad request (error - 400) |
/api/datascape/engagement/v1/property-files/container/PN999999?private=false&searchBy=propertyno&onlyCurrent=false&application=propertyfiles&company=datacom-mulesoft | Not Found (error - 404) |
/api/datascape/engagement/v1/property-files/file/99999999?company=MDC&application=muleApp&searchBy=propertyno&onlyCurrent=false&private=false | Not Found (error - 404) |