Class BasicTests

java.lang.Object
org.opengis.cite.wps20.CommonFixture
org.opengis.cite.wps20.basictests.BasicTests

public class BasicTests extends CommonFixture

BasicTests class.

  • Constructor Details

    • BasicTests

      public BasicTests()
  • Method Details

    • ValidEchoProcess

      public void ValidEchoProcess() throws Exception
      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 class CommonFixture
      Parameters:
      templatePath - a String object
      processId - a String object
      inputId - a String object
      outputId - a String object
      Returns:
      a Document object
      Throws:
      URISyntaxException - if any.
      SAXException - if any.
      IOException - if any.
    • ValidGetCapabilitiesViaPOSTXML

      public void ValidGetCapabilitiesViaPOSTXML() throws IOException, URISyntaxException, SAXException
      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.
      Throws:
      IOException
      URISyntaxException
      SAXException
    • ValidDescribeProcessViaPOSTXML

      public void ValidDescribeProcessViaPOSTXML() throws IOException, URISyntaxException, SAXException
      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.
      Throws:
      IOException
      URISyntaxException
      SAXException
    • ValidAsyncExcecuteViaPOSTXML

      public void ValidAsyncExcecuteViaPOSTXML() throws Exception
      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

      public void ValidAutoExcecuteViaPOSTXML() throws Exception
      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.

      Parameters:
      SERVICE_URL - a String object
      literalDocument - a Document object
      message - a String object
      Throws:
      Exception - if any.