Skip to content

Instantly share code, notes, and snippets.

@agtokty
Created September 18, 2015 11:17
Show Gist options
  • Save agtokty/46abffa2bf0ac0261556 to your computer and use it in GitHub Desktop.
Save agtokty/46abffa2bf0ac0261556 to your computer and use it in GitHub Desktop.
Test sos:GRRequestNulloffering_resultRetrieval type Mandatory default result Passed (s0001/d804e2570_1/d804e42496_1)
Assertion: Send a request with null parameter "offering",and the response must be a valid exception with code "MissingParameterValue" and locator "offering".
Request d804e43982_1:
Method: post
URL: http://91.93.170.242:49685/Swe.svc/
Body:
<sos:GetResult xmlns:ctl="http://www.occamlab.com/ctl" xmlns:fes="http://www.opengis.net/fes/2.0"
xmlns:gen="java:com.occamlab.te.Generator"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:om="http://www.opengis.net/om/2.0"
xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:owsTests="http://www.opengis.net/ows/1.1"
xmlns:parsers="http://www.occamlab.com/te/parsers"
xmlns:saxon="http://saxon.sf.net/"
xmlns:sml="http://www.opengis.net/sensorML/1.0.1"
xmlns:soap11="http://schemas.xmlsoap.org/soap/"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"
xmlns:sos="http://www.opengis.net/sos/2.0"
xmlns:sosFunctions="http://www.opengis.net/sos/2.0"
xmlns:swe="http://www.opengis.net/swe/2.0"
xmlns:swes="http://www.opengis.net/swes/2.0"
xmlns:te="http://www.occamlab.com/te"
xmlns:tec="java:com.occamlab.te.TECore"
xmlns:tems="java:com.occamlab.te.web.MonitorServlet"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
service="SOS"
version="2.0.0"
xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sos/2.0 http://schemas.opengis.net/sos/2.0/sos.xsd">
<sos:offering>OFFERING_1</sos:offering>
<sos:observedProperty/>
</sos:GetResult>
Response from parser parsers:XMLValidatingParser:
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.0.0">
<ows:Exception exceptionCode="MissingParameterValue" locator="observedProperty">
<ows:ExceptionText>The value for the parameter 'observedProperty' is missing in the request!</ows:ExceptionText>
</ows:Exception>
<!--Response received in [17526] milliseconds--></ows:ExceptionReport>
Message d804e44032_1:
The response was: Exception Report (exceptionCode, locator): MissingParameterValue,observedProperty
Message d804e44037_1:
Checking the validity of the response to a GetResult request with invalid offering parameter.
Message d804e44054_1:
The validity check returned: false
Message d804e44061_1:
FAILURE: The server did not return the expected exception report response to a GetResult request with null offering parameter specified.
Message d804e44064_1:
The response was expected to be an ExceptionReport with an exceptionCode of "MissingParameterValue" and a locator of "offering".
Result: Failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment