Biza Test Suite Scenarios
The following test scenarios are included when executing BTS.
See Test Coverage for mapping between endpoints and these scenarios
Headersβ
Version Tests (x-v and x-min-v)β
- If there are obsolete versions as per the CDS spec, test to validate that
4xxis returned for obsolete versions - Test if an API responds with a
2xxforx-vandx-min-vvalue within the agreeable range (inclusive) as per the CDS spec - Test if an API fails with a
4xxforx-vandx-min-voutside the range as per the CDS spec x-min-vnot a number returns400
Invalid FAPI Headersβ
- Invalid header value for
x-fapi-auth-datereturns4xx - Invalid header value for
x-fapi-interaction-idreturns4xx - Invalid header value for
x-cds-client-headersreturns4xx - Invalid header value for
x-cds-client-headersreturns4xx
Paginationβ
- API returns
2xxfor valid page-size header - [1, 25, 99, 1000] - API returns
4xxfor invalid page-size header - [-1, 0, 1001] - API returns
2xxfor valid page header - [1] - API returns
4xxfor invalid page header - [-1, 0, 26, 9999]
Payload Validationβ
Requestβ
- POST request payload with valid data returns
2xx - POST request payload with invalid data returns
4xx
Responseβ
- All the response payloads are validated for object constraints defined in Babelfish
Parameterβ
Path Variableβ
- Valid path variable returns
2xx - Invalid path variable returns
4xx
Query Parameterβ
- Query Parameter with invalid values returns
4xx - Query Parameter with valid values returns
2xx
Filtering/Rangeβ
- Query parameter that can have a range. For instance,
oldest/newestdate ormin/maxamount oropen/closed, etc returns relevant results
info
NOT all endpoints have this test implemented yet, but this is being reviewed by our internal team.