public class ApiDefinition extends CommonFixture
requestLoggingFilter, responseLoggingFilter, rootUri
Constructor and Description |
---|
ApiDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
apiDefinitionValidation(org.testng.ITestContext testContext)
Abstract Test 6: /ats/core/api-definition-success
Test Purpose: Validate that the API Definition complies with the required structure and contents.
|
void |
openapiDocumentRetrieval()
Abstract Test 5: /ats/core/api-definition-op
Test Purpose: Validate that the API Definition document can be retrieved from the expected location.
|
void |
retrieveApiUrl() |
clearMessages, getRequest, getResponse, init, initCommonFixture
public void retrieveApiUrl()
public void openapiDocumentRetrieval()
Abstract Test 5: /ats/core/api-definition-op Test Purpose: Validate that the API Definition document can be retrieved from the expected location. Requirement: /req/core/api-definition-op Test Method 1. Construct a path for each API Definition link on the landing page 2. Issue a HTTP GET request on each path 3. Validate that a document was returned with a status code 200 4. Validate the contents of the returned document using test /ats/core/api-definition-success.
public void apiDefinitionValidation(org.testng.ITestContext testContext) throws MalformedURLException
Abstract Test 6: /ats/core/api-definition-success Test Purpose: Validate that the API Definition complies with the required structure and contents. Requirement: /req/core/api-definition-success Test Method: Validate the API Definition document against an appropriate schema document.
testContext
- never null
MalformedURLException
- if the apiUrl is malformedCopyright © 2024 Open Geospatial Consortium. All rights reserved.