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(org.testng.ITestContext testContext)
Finds the GET method endpoint 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(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 |
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 |
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 URL-encoded term that occurs in at least one catalog record.
|
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(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 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.Copyright © 2018 Open Geospatial Consortium. All rights reserved.