Class GetCapabilities
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
- Author:
- Lyn Goltz
-
Field Summary
Fields inherited from class org.opengis.cite.cat20.dgiwg10.CommonFixture
capabilitiesDoc, cswClient, requestDocument, response, responseDocument, ROOT_PKG_PATH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Issue an HTTP GET capabilities request.(package private) void
setResponseDocument
(Document rspDocument) For testing purposes only!void
Verify that the reported queriables and returnables for the GetRecords operation.void
Verify that the response metadata link includes the profile text described in requirement 4.void
Verify that the service responds without error to the request with a Capabilities document (Requirement 1 and Requirement 3).void
Verify that the XML response indicates support for csw:Record and gmd:MD_Metadata return types for the GetRecords operation.Methods inherited from class org.opengis.cite.cat20.dgiwg10.CommonFixture
buildGetRequest, clearMessages, getResponseEntityAsDocument, initCommonFixture
-
Constructor Details
-
GetCapabilities
public GetCapabilities()
-
-
Method Details
-
issueGetCapabilities
public void issueGetCapabilities()Issue an HTTP GET capabilities request. -
verifyNoError
public void verifyNoError()Verify that the service responds without error to the request with a Capabilities document (Requirement 1 and Requirement 3). -
verifyMetadataLink
public void verifyMetadataLink()Verify that the response metadata link includes the profile text described in requirement 4. -
verifySupportGetRecordsReturnType
public void verifySupportGetRecordsReturnType()Verify that the XML response indicates support for csw:Record and gmd:MD_Metadata return types for the GetRecords operation. (Requirement 6). -
verifyGetRecordsQueryables
public void verifyGetRecordsQueryables()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). Requirement 5 is tested here for queryables. -
setResponseDocument
For testing purposes only!- Parameters:
rspDocument
- nevernull
-