public class GetCapabilities extends CommonFixture
a) Test Purpose: Verify that the server implements DGIWG the following DGIWG requirements (Requirement 1, Requirement 2, Requirement 3, Requirement 4, Requirement 5, Requirement 6 , Requirement 7, Requirement 8, Requirement 9, Requirement 10, Requirement 11 ).
b) Test Method:
- Issue an HTTP GET capabilities request.
- Verify that the service responds without error to the request with a Capabilities document (Requirement 1 and Requirement 3 ).
- Verify that the response indicates support for ‘English’ for queriables and returnables . (Requirement 2)
- Verify that the response metadata link includes the profile text described in requirement 4 .
- Verify that the XML response indicates support for csw:Record and gmd:MD_Metadata return types for the GetRecords operation . (Requirement 6 ).
- Verify that the reported queriables and returnables for the GetRecords operation. at least include those defined in section s 7.1.1 and 7.1.3 . (Requirements 5 , 8 ).
- Verify that the XML response indicates support for csw:Record and gmd:MD_Metadata return types for the GetRecord ById operation. (Requirement 11 ).
- Verify that the reported queriables and returnables for the GetRecord ById operation. at least include those defined in section s 7.1.1 and 7.1.3 . (Requirement 10 ).
c) References: Sections 7.3, 7.4, 7.5, 7.6.1
d) Test Type: Capability
capabilitiesDoc, cswClient, requestDocument, response, responseDocument, ROOT_PKG_PATH| Constructor and Description |
|---|
GetCapabilities() |
| Modifier and Type | Method and Description |
|---|---|
void |
issueGetCapabilities()
Issue an HTTP GET capabilities request.
|
(package private) void |
setResponseDocument(Document rspDocument)
For testing purposes only!
|
void |
verifyGetRecordByIdQueryables()
Verify that the reported queriables and returnables for the GetRecordById operation.
|
void |
verifyGetRecordsQueryables()
Verify that the reported queriables and returnables for the GetRecords operation.
|
void |
verifyMetadataLink()
Verify that the response metadata link includes the profile text described in requirement 4.
|
void |
verifyNoError()
Verify that the service responds without error to the request with a Capabilities document (Requirement 1 and
Requirement 3).
|
void |
verifySupportGetRecordByIdReturnType()
Verify that the XML response indicates support for csw:Record and gmd:MD_Metadata return types for the
GetRecordById operation.
|
void |
verifySupportGetRecordsReturnType()
Verify that the XML response indicates support for csw:Record and gmd:MD_Metadata return types for the GetRecords
operation.
|
buildGetRequest, clearMessages, getResponseEntityAsDocument, initCommonFixturepublic void issueGetCapabilities()
public void verifyNoError()
public void verifyMetadataLink()
public void verifySupportGetRecordsReturnType()
public void verifyGetRecordsQueryables()
public void verifySupportGetRecordByIdReturnType()
public void verifyGetRecordByIdQueryables()
void setResponseDocument(Document rspDocument)
rspDocument - never nullCopyright © 2018 Open Geospatial Consortium. All rights reserved.