Class GetRecords
java.lang.Object
org.opengis.cite.cat20.dgiwg10.CommonFixture
org.opengis.cite.cat20.dgiwg10.getrecords.GetRecords
A.1.2 GetRecord for DGIWG Basic CSW
a) Test Purpose: Verify that the server implements DGIWG the following DGIWG
requirements (Requirement 6, Requirement 7, Requirement 8, Requirement 9)
b) Test Method:
- Ensure that the CSW is loaded with metadata which supports all of the queriables and
returnables described in table 5, 6, 8, 9 and 10.
- Issue a number of HTTP POST GetRecords requests with return types of both csw:Record
and gmd:MD_Metadata using all of the queriables in Tables 5 and 6. Verify that a valid
result is obtained (Requirements 6, 7).
- Verify that all metadata returnables are present in the result (Requirement 8)
- Verify that the gmd:MD_Metadata record returned is compliant with the DMF
specification (Requirement 11) and with ISO19139 (Requirement 12). Returnables shall be
mapped to the DMF using tables 5,6,8,9 and 10 (Requirement 8) and additional items in
table 9 (Requirement 14).
c) References: Sections 7.3, 7.4, 7.5, 7.6.2, 7.7.1, 7.7.3,
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
void
issueGetRecords_DublinCore
(String queryable, Element filter) Issue an HTTP GetRecords request with csw:Record.void
issueGetRecords_Iso
(String queryable, Element filter) Issue an HTTP GetRecords request with gmd:MD_Metadata.void
issueGetRecords_Returnables_DublinCore
(String queryable) Verify that all metadata returnables are present in the result (csw:Record).void
issueGetRecords_Returnables_Iso
(String queryable) Verify that all metadata returnables are present in the result (gmd:MD_Metadata).void
retrieveDataSampler
(org.testng.ITestContext testContext) Methods inherited from class org.opengis.cite.cat20.dgiwg10.CommonFixture
buildGetRequest, clearMessages, getResponseEntityAsDocument, initCommonFixture
-
Constructor Details
-
GetRecords
public GetRecords()
-
-
Method Details
-
retrieveDataSampler
@BeforeClass public void retrieveDataSampler(org.testng.ITestContext testContext) - Parameters:
testContext
- the test context
-
buildValidators
@BeforeClass public void buildValidators() -
queryables
-
queryableAndFilter
-
issueGetRecords_DublinCore
Issue an HTTP GetRecords request with csw:Record.- Parameters:
queryable
- the queryable to testfilter
- the filter used in the request
-
issueGetRecords_Iso
Issue an HTTP GetRecords request with gmd:MD_Metadata.- Parameters:
queryable
- the queryable to testfilter
- the filter used in the request
-
issueGetRecords_Returnables_DublinCore
public void issueGetRecords_Returnables_DublinCore(String queryable) throws XPathExpressionException Verify that all metadata returnables are present in the result (csw:Record).- Parameters:
queryable
- the queryable to test- Throws:
XPathExpressionException
- should never happen
-
issueGetRecords_Returnables_Iso
Verify that all metadata returnables are present in the result (gmd:MD_Metadata).- Parameters:
queryable
- the queryable to test- Throws:
XPathExpressionException
- should never happen
-