Skip to main content

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)​

  1. If there are obsolete versions as per the CDS spec, test to validate that 4xx is returned for obsolete versions
  2. Test if an API responds with a 2xx for x-v and x-min-v value within the agreeable range (inclusive) as per the CDS spec
  3. Test if an API fails with a 4xx for x-v and x-min-v outside the range as per the CDS spec
  4. x-min-v not a number returns 400

Invalid FAPI Headers​

  1. Invalid header value for x-fapi-auth-date returns 4xx
  2. Invalid header value for x-fapi-interaction-id returns 4xx
  3. Invalid header value for x-cds-client-headers returns 4xx
  4. Invalid header value for x-cds-client-headers returns 4xx

Pagination​

  1. API returns 2xx for valid page-size header - [1, 25, 99, 1000]
  2. API returns 4xx for invalid page-size header - [-1, 0, 1001]
  3. API returns 2xx for valid page header - [1]
  4. API returns 4xx for invalid page header - [-1, 0, 26, 9999]

Payload Validation​

Request​

  1. POST request payload with valid data returns 2xx
  2. POST request payload with invalid data returns 4xx

Response​

  1. All the response payloads are validated for object constraints defined in Babelfish

Parameter​

Path Variable​

  1. Valid path variable returns 2xx
  2. Invalid path variable returns 4xx

Query Parameter​

  1. Query Parameter with invalid values returns 4xx
  2. Query Parameter with valid values returns 2xx

Filtering/Range​

  1. Query parameter that can have a range. For instance, oldest/newest date or min/max amount or open/closed, etc returns relevant results
info

NOT all endpoints have this test implemented yet, but this is being reviewed by our internal team.