Class BasicTests
java.lang.Object
org.opengis.cite.wps20.CommonFixture
org.opengis.cite.wps20.basictests.BasicTests
BasicTests class.
-
Field Summary
Fields inherited from class org.opengis.cite.wps20.CommonFixture
client, COMPLEX_INPUT_ID, COMPLEX_OUTPUT_ID, COMPLEX_REQUEST_TEMPLATE_PATH, DESCRIBE_PROCESS_REQUEST_TEMPLATE_PATH, EchoProcessId, GET_CAPABILITIES_REQUEST_TEMPLATE_PATH, GET_RESULT_TEMPLATE_PATH, GET_STATUS_TEMPLATE_PATH, INPUT_REFERENCE_TRANSMISSION_TEMPLATE_PATH, INPUT_VALUE_TRANSMISSION_TEMPLATE_PATH, LITERAL_INPUT_ID, LITERAL_OUTPUT_ID, LITERAL_REQUEST_TEMPLATE_PATH, OUTPUT_REFERENCE_TRANSMISSION_TEMPLATE_PATH, OUTPUT_VALUE_TRANSMISSION_TEMPLATE_PATH, request, response, ROOT_PKG_PATH, ServiceUrl, UNIQUE_JOB_IDS_TEMPLATE_PATH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetDocumentTemplate
(String templatePath, String processId, String inputId, String outputId) GetDocumentTemplate.void
TestPostWithDocumentAndAssertMessage
(String SERVICE_URL, Document literalDocument, String message) TestPostWithDocumentAndAssertMessage.void
A.5.12.void
A.5.13.void
A.5.10.void
Precondition.void
A.5.9.Methods inherited from class org.opengis.cite.wps20.CommonFixture
buildGetRequest, clearMessages, GetConnection, GetContentFromGETKVPRequest, GetContentFromPOSTXMLRequest, GetEchoProcessInputIdAndOutputId, getResponseEntityAsDocument, initCommonFixture, prettyPrint, TransformXMLDocumentToXMLString, TransformXMLFileToXMLDocument, TransformXMLStringToXMLDocument
-
Constructor Details
-
BasicTests
public BasicTests()
-
-
Method Details
-
ValidEchoProcess
Precondition. Verify that the server can handle echo process Flow of Test Description - Step 1: Send a valid DescribeProcess request to the server under test, setting the identifier to the echo process id. Verify that the server offers an echo process. Flow of Test Description - Step 2: Send a valid Execute request to the server under test, setting the identifier to the echo process id. Verify that the server can handle echo process.- Throws:
Exception
- if any.
-
GetDocumentTemplate
public Document GetDocumentTemplate(String templatePath, String processId, String inputId, String outputId) throws URISyntaxException, SAXException, IOException GetDocumentTemplate.
- Overrides:
GetDocumentTemplate
in classCommonFixture
- Parameters:
templatePath
- aString
objectprocessId
- aString
objectinputId
- aString
objectoutputId
- aString
object- Returns:
- a
Document
object - Throws:
URISyntaxException
- if any.SAXException
- if any.IOException
- if any.
-
ValidGetCapabilitiesViaPOSTXML
A.5.9. Verify that the server can handle GetCapabilities requests via POST/XML Flow of Test Description: Send a valid GetCapabilities request to the server under test. Test passes if a valid document of the type wps:Capabilities is returned. -
ValidDescribeProcessViaPOSTXML
A.5.10. Verify that the server can handle DescribeProcess requests via POST/XML Flow of Test Description: Send a valid DescribeProcess request to the server under test. Test passes if a valid document of the type wps:ProcessOfferings is returned. -
ValidAsyncExcecuteViaPOSTXML
A.5.12. Verify that the server can handle the execution mode 'asynchronous' requested via POST/XML Flow of Test Description: Flow of Test Description: Send a valid XML Execute request to the server under test, setting the “mode” attribute to “async”. Verify that a valid Execute wps:Result is returned.- Throws:
Exception
-
ValidAutoExcecuteViaPOSTXML
A.5.13. Verify that the server can handle the execution mode 'auto' requested via POST/XML Flow of Test Description: Flow of Test Description: Send a valid XML Execute request to the server under test, setting the “mode” attribute to “auto”. Verify that a valid Execute wps:Result is returned.- Throws:
Exception
-
TestPostWithDocumentAndAssertMessage
public void TestPostWithDocumentAndAssertMessage(String SERVICE_URL, Document literalDocument, String message) throws Exception TestPostWithDocumentAndAssertMessage.
-