public class BasicGetRecordsTests extends CommonFixture
GetRecords request using the
KVP syntax.
The KVP syntax must be supported; this encoding is generally used with the GET method but may also be used with the POST method; however a POST method binding is very unusual and will be advertised in the capabilities document as an operational constraint as indicated below. The media type of a KVP request entity is "application/x-www-form-urlencoded".
atomSchema, client, cswCapabilities, cswSchema, request, response, ROOT_PKG_PATH, SCHEMATRON_ATOM| Constructor and Description |
|---|
BasicGetRecordsTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
elementSetAndElementName()
[Test] Submits a GetRecords request that contains both the
ElementName and ElementSetName parameters. |
void |
findRequestEndpoints(org.testng.ITestContext testContext)
Finds the GET and POST method endpoints for the GetRecords request in the
capabilities document.
|
void |
getBriefRecordsWithNamespaceBinding()
[Test] Submits a GetRecords request with no search criteria.
|
void |
getDatasetInfo(org.testng.ITestContext testContext)
Gets information about the sample data obtained from the IUT, including:
its total geographic extent; a collection of record titles; and a set of
record identifiers.
|
void |
getPartialResults()
[Test] Submits a GetRecords request where the
startPosition
and maxRecords parameters have non-default values. |
void |
getPartialResultsAsAtomFeed()
[Test] Submits a GetRecords request where the
startPosition
and maxRecords parameters have non-default values. |
void |
getRecordsInUnsupportedOutputFormat()
[Test] Submits a GetRecords request that specifies an unsupported output
format (
text/example) as the value of the outputFormat
parameter. |
void |
getRecordsWithUnknownTypeName()
[Test] Submits a GetRecords request that specifies an unknown
typeName parameter value. |
void |
getRecordsWithUnsupportedSchema()
[Test] Submits a GetRecords request that specifies an unsupported output
schema ("urn:uuid:6a29d2a8-9651-47a6-9b14-f05d2b5644f0").
|
void |
getSummaryRecordsInAtomFeed()
[Test] Submits a GetRecords request with no search criteria.
|
void |
getSummaryRecordsInDefaultRepresentation()
[Test] Submits a GetRecords request with no search criteria.
|
void |
presentTitleProperty()
[Test] Submits a GetRecords request where the 'elementName' parameter
value identifies a single element from the output schema (dc:title).
|
void |
presentUnknownRecordProperty()
[Test] Submits a GetRecords request that specifies an element name not
declared in the output schema.
|
(package private) void |
setGetEndpoint(URI uri) |
void |
unknownElementSetName()
[Test] Submits a GetRecords request that specifies an unknown
elementSetName parameter value. |
buildGetRequest, clearMessages, getResponseEntityAsDocument, initCommonFixturevoid setGetEndpoint(URI uri)
public void findRequestEndpoints(org.testng.ITestContext testContext)
testContext - The test context containing various suite attributes.public void getDatasetInfo(org.testng.ITestContext testContext)
testContext - The test context containing various suite attributes.public void getBriefRecordsWithNamespaceBinding()
namespace parameter declares a namespace binding for the
common type name (tns:Record). The results must contain one or more
csw:BriefRecord elements.
Sources
public void getSummaryRecordsInDefaultRepresentation()
public void getSummaryRecordsInAtomFeed()
Sources
public void getRecordsInUnsupportedOutputFormat()
text/example) as the value of the outputFormat
parameter. An exception report is expected in response with HTTP status
code 400 and exception code
""InvalidParameterValue"".public void getRecordsWithUnknownTypeName()
typeName parameter value. Since the type does not belong to
any supported information model, an exception report is expected in
response with HTTP status code 400 and exception code
""InvalidParameterValue"".public void unknownElementSetName()
elementSetName parameter value. An exception report is
expected in response with HTTP status code 400 and exception code
""InvalidParameterValue"".public void getRecordsWithUnsupportedSchema()
public void presentTitleProperty()
public void presentUnknownRecordProperty()
public void elementSetAndElementName()
ElementName and ElementSetName parameters.
Since these parameters are mutually exclusive, an exception report is
expected in response with HTTP status code 400 and exception code
""NoApplicableCode"".public void getPartialResults()
startPosition
and maxRecords parameters have non-default values. The
csw:SearchResults element in the response entity must present the correct
"slice" of the result set.public void getPartialResultsAsAtomFeed()
startPosition
and maxRecords parameters have non-default values. The
atom:feed element in the response entity must present the correct "slice"
of the result set.Copyright © 2018 Open Geospatial Consortium. All rights reserved.