public class BasicSearchTests extends CommonFixture
Filter-FES-KVP
conformance class. The following basic search capabilities must be
implemented:
atomSchema, client, cswCapabilities, cswSchema, request, response, ROOT_PKG_PATH, SCHEMATRON_ATOM| Constructor and Description |
|---|
BasicSearchTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
findRequestEndpoints(ITestContext testContext)
Finds the GET and POST method endpoints for the GetRecords request in the
capabilities document.
|
void |
getBriefRecordsByBBOX()
[Test] Submits a GetRecords request with a BBOX parameter that includes a
supported CRS reference.
|
void |
getDatasetInfo(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 |
getMultipleRecordsById()
[Test] Submits a GetRecords request with a 'recordIds' parameter that
contains a (comma-separated) list of two record identifiers.
|
void |
getRecordsByBBOXAndTitle()
[Test] Submits a GetRecords request containing the
bbox and
q parameters, where the latter matches one or more record
titles. |
void |
getRecordsByBBOXWithUnsupportedCRS()
[Test] Submits a GetRecords request with a BBOX parameter that includes
an invalid CRS reference ("urn:ogc:def:crs:EPSG::0000").
|
void |
getRecordsBySubjectWithoutResults()
[Test] Submits a GetRecords request where the
q parameter
contains a subject word and the maxRecords parameter value
has the value "0" (zero). |
void |
getSummaryRecordsByWGS84BBOX()
[Test] Submits a GetRecords request with a 'bbox' parameter that uses the
default CRS ("urn:ogc:def:crs:OGC:1.3:CRS84").
|
void |
getUnlimitedBriefRecordsByBBOX()
[Test] Submits a GetRecords request containing the
bbox
parameter. |
void |
multipleTermTextSearch()
[Test] This test submits a GetRecords request where the 'q' parameter
value contains two terms.
|
(package private) void |
setExtent(org.opengis.geometry.Envelope extent) |
(package private) void |
setGetEndpoint(URI uri) |
void |
singleTermTextSearch()
[Test] Submits a GetRecords request where the 'q' parameter value is a
single term that occurs in at least one catalog record; case is not
significant.
|
void |
textSearchProducesEmptyResultSet()
[Test] Submits a GetRecords request where the 'q' parameter value is
randomly generated text.
|
buildGetRequest, clearMessages, getResponseEntityAsDocument, initCommonFixturevoid setExtent(org.opengis.geometry.Envelope extent)
void setGetEndpoint(URI uri)
public void findRequestEndpoints(ITestContext testContext)
testContext - The test context containing various suite attributes.public void getDatasetInfo(ITestContext testContext)
testContext - The test context containing various suite attributes.public void getRecordsByBBOXWithUnsupportedCRS()
Sources
public void getBriefRecordsByBBOX()
Sources
public void getSummaryRecordsByWGS84BBOX()
Sources
public void getMultipleRecordsById()
public void singleTermTextSearch()
Note: According to Table 4 in OGC OpenSearch Geo and Time Extensions (OGC 10-032r8), the domain of keyword matching should include the record elements indicated below.
| csw:Record | atom:entry |
|---|---|
|
|
Sources
public void getRecordsBySubjectWithoutResults()
q parameter
contains a subject word and the maxRecords parameter value
has the value "0" (zero). The csw:SearchResults element in the response
must be empty.public void textSearchProducesEmptyResultSet()
public void multipleTermTextSearch()
public void getRecordsByBBOXAndTitle()
bbox and
q parameters, where the latter matches one or more record
titles. The response must include all records that satisfy both search
criteria.public void getUnlimitedBriefRecordsByBBOX()
bbox
parameter. The maxRecords parameter has the value
"unlimited". The response must include all records that satisfy the
search criteria, such that:
numberOfRecordsMatched = numberOfRecordsReturned
Copyright © 2015 Open Geospatial Consortium. All rights reserved.