Skip to content

Commit

Permalink
Revert "Test 2 to solve the issue 29"
Browse files Browse the repository at this point in the history
This reverts commit 8bd1be7.
  • Loading branch information
inakidiazdecerio committed Apr 10, 2019
1 parent 55fdf8b commit 7607113
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions service/ds-wfs-pre-defined-soapui-project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2393,8 +2393,6 @@ public class OutputFormat {
outputFormat.indexOf("gml")!=-1)
{
type=FormatType.XML;
}else if(outputFormat.indexOf("json")!=-1) {
type=FormatType.JSON;
}else if(outputFormat.indexOf("text")!=-1) {
type=FormatType.TEXT;
}
Expand Down Expand Up @@ -2578,14 +2576,10 @@ if(schemaLocations!=null) {
}
</scriptText></con:configuration></con:assertion><con:assertion type="OwsExceptionReportAssertion" id="68356fb5-21db-4fa1-9112-6c36d9d5e24f" name="Fail if service returns OWS Exception Report"/><con:assertion type="Response SLA Assertion" id="38e12665-b4f9-4257-8770-3b7f2f6ad2e7" name="30 seconds timeout"><con:configuration><SLA>30000</SLA></con:configuration></con:assertion><con:assertion type="Valid HTTP Status Codes" id="99b08bb7-0b84-446c-a885-0e4f354657ce" name="HTTP status code is 200"><con:configuration><codes>200</codes></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" id="5f792684-1937-44ed-ba8e-144a69f19af4" name="Root element is schema"><con:configuration><scriptText>import de.interactive_instruments.etf.suim.*
Assert a = new Assert(messageExchange, context, log, Assert.INSPIRE_DS_NS);
a.exists("/*:schema", "TR.missingSchemaRootElement");</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters><con:parameter><con:name>service</con:name><con:value>${#TestSuite#service}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>version</con:name><con:value>${#TestSuite#version}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>request</con:name><con:value>DescribeFeatureType</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>OUTPUTFORMAT</con:name><con:value>${Transfer_Properties#outputFormat}</con:value><con:style>QUERY</con:style></con:parameter></con:parameters></con:config></con:testStep>
<!--
<con:testStep type="httprequest" name="Get number of Features in DB" id="23e123ef-8675-41ee-9639-154c555c1c03"><con:settings/><con:config method="GET" xsi:type="con:HttpRequest" name="Get number of Features in DB" id="9fde9996-0ec5-4840-b817-4209bc39fae0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:description>Get the number of available Feature Types with a GetFeature request with RESULTTYPE=hits. Called by 'Analyze WFS Capabilities'.</con:description><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>${#Project#endpt.GetFeature.Get}</con:endpoint><con:request/><con:assertion type="XPath Match" name="Expect no Exception" id="2b311676-82bb-48e9-b655-c7ae550565e6"><con:configuration><path>exists(/*:ServiceExceptionReport) or (/*:ExceptionReport)</path><content>false</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreOrder>false</ignoreOrder><acceptValidXPath>false</acceptValidXPath></con:configuration></con:assertion><con:assertion type="Valid HTTP Status Codes" id="da2dbe1b-9c02-4a3d-b534-64b3418e2d2c" name="HTTP status code is 200"><con:configuration><codes>200</codes></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" id="c069d70e-f813-4363-b3c5-8a4056a08fe2" name="30 seconds timeout"><con:configuration><SLA>30000</SLA></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" id="ae2f5738-cd76-4ebc-aea6-d5485d7142f3" name="Root element is FeatureCollection"><con:configuration><scriptText>import de.interactive_instruments.etf.suim.*
a.exists("/*:schema", "TR.missingSchemaRootElement");</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters><con:parameter><con:name>service</con:name><con:value>${#TestSuite#service}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>version</con:name><con:value>${#TestSuite#version}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>request</con:name><con:value>DescribeFeatureType</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>OUTPUTFORMAT</con:name><con:value>${Transfer_Properties#outputFormat}</con:value><con:style>QUERY</con:style></con:parameter></con:parameters></con:config></con:testStep><con:testStep type="httprequest" name="Get number of Features in DB" id="23e123ef-8675-41ee-9639-154c555c1c03"><con:settings/><con:config method="GET" xsi:type="con:HttpRequest" name="Get number of Features in DB" id="9fde9996-0ec5-4840-b817-4209bc39fae0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:description>Get the number of available Feature Types with a GetFeature request with RESULTTYPE=hits. Called by 'Analyze WFS Capabilities'.</con:description><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>${#Project#endpt.GetFeature.Get}</con:endpoint><con:request/><con:assertion type="XPath Match" name="Expect no Exception" id="2b311676-82bb-48e9-b655-c7ae550565e6"><con:configuration><path>exists(/*:ServiceExceptionReport) or (/*:ExceptionReport)</path><content>false</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreOrder>false</ignoreOrder><acceptValidXPath>false</acceptValidXPath></con:configuration></con:assertion><con:assertion type="Valid HTTP Status Codes" id="da2dbe1b-9c02-4a3d-b534-64b3418e2d2c" name="HTTP status code is 200"><con:configuration><codes>200</codes></con:configuration></con:assertion><con:assertion type="Response SLA Assertion" id="c069d70e-f813-4363-b3c5-8a4056a08fe2" name="30 seconds timeout"><con:configuration><SLA>30000</SLA></con:configuration></con:assertion><con:assertion type="GroovyScriptAssertion" id="ae2f5738-cd76-4ebc-aea6-d5485d7142f3" name="Root element is FeatureCollection"><con:configuration><scriptText>import de.interactive_instruments.etf.suim.*

Assert a = new Assert(messageExchange, context, log, Assert.INSPIRE_DS_NS);
a.exists("/wfs:FeatureCollection", "TR.missingFeatureCollectionRootElement");</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters><con:parameter><con:name>SERVICE</con:name><con:value>${#TestSuite#service}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>VERSION</con:name><con:value>${#TestSuite#version}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>REQUEST</con:name><con:value>GetFeature</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>RESULTTYPE</con:name><con:value>hits</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>TYPENAMES</con:name><con:value>${Transfer_Properties#featureTypeName}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>OUTPUTFORMAT</con:name><con:value>${Transfer_Properties#outputFormat}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>NAMESPACES</con:name><con:value>${Transfer_Properties#featureTypeNamespaceWfs2}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>#Project#endpt.GetFeature.Get</con:name><con:value>#Project#endpt.GetFeature.Get</con:value><con:style>TEMPLATE</con:style><con:default>#Project#endpt.GetFeature.Get</con:default></con:parameter></con:parameters></con:config></con:testStep>
-->
<con:reportParameters/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="ObjectSaver" searchProperties="true" disabled="true" id="b96012ae-5290-49ca-9b50-81cfcff113fb">
a.exists("/wfs:FeatureCollection", "TR.missingFeatureCollectionRootElement");</scriptText></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters><con:parameter><con:name>SERVICE</con:name><con:value>${#TestSuite#service}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>VERSION</con:name><con:value>${#TestSuite#version}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>REQUEST</con:name><con:value>GetFeature</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>RESULTTYPE</con:name><con:value>hits</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>TYPENAMES</con:name><con:value>${Transfer_Properties#featureTypeName}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>OUTPUTFORMAT</con:name><con:value>${Transfer_Properties#outputFormat}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>NAMESPACES</con:name><con:value>${Transfer_Properties#featureTypeNamespaceWfs2}</con:value><con:style>QUERY</con:style></con:parameter><con:parameter><con:name>#Project#endpt.GetFeature.Get</con:name><con:value>#Project#endpt.GetFeature.Get</con:value><con:style>TEMPLATE</con:style><con:default>#Project#endpt.GetFeature.Get</con:default></con:parameter></con:parameters></con:config></con:testStep><con:reportParameters/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="ObjectSaver" searchProperties="true" disabled="true" id="b96012ae-5290-49ca-9b50-81cfcff113fb">
<con:description>Dieser Testfall wird lediglich für die Persistierung von XTF-OWSGTL Objekten genutzt und ist deaktiviert.</con:description><con:settings/>

<con:testStep type="properties" name="TransientObjects" id="a0446417-ebf9-4b9d-81d2-2b8cf9919263"><con:description>This test step stores objects that can be accessed via the de.interactive_instruments.ObjectSaver class.</con:description><con:settings/><con:config xsi:type="con:PropertiesStep" saveFirst="true" discardValuesOnSave="true" createMissingOnLoad="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:properties><con:property><con:name>de.interactive_instruments.xtf.wfs.Capabilities</con:name><con:value xsi:nil="true"/></con:property></con:properties></con:config></con:testStep><con:testStep type="properties" name="PersistentObjects" id="eaf53743-36e5-42ff-a6c6-5926d645b6ce"><con:description>This test step stores objects that can be accessed via the de.interactive_instruments.ObjectSaver class.</con:description><con:settings/><con:config xsi:type="con:PropertiesStep" saveFirst="true" discardValuesOnSave="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:properties/></con:config></con:testStep><con:properties><con:property><con:name>qaf.ShortDescription</con:name><con:value/></con:property><con:property><con:name>qaf.Author</con:name><con:value>herrmann</con:value></con:property><con:property><con:name>qaf.CreationDate</con:name><con:value>2014-01-13T12:24:44.132+01:00</con:value></con:property><con:property><con:name>qaf.Version</con:name><con:value>1.0.0</con:value></con:property><con:property><con:name>qaf.AssociatedRequirements</con:name><con:value/></con:property><con:property><con:name>qaf.ExpectedResults</con:name><con:value/></con:property><con:property><con:name>qaf.Status</con:name><con:value>IMPLEMENTED</con:value></con:property><con:property><con:name>qaf.LastUpdateDate</con:name><con:value>2014-01-13T14:10:42.868+01:00</con:value></con:property><con:property><con:name>etf.technicalStep</con:name><con:value>true</con:value></con:property></con:properties><con:reportParameters/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Basic checks passed and Capabilities still accessible" searchProperties="true" id="96964cba-9ef1-4188-9e87-47bca74559d4"><con:description>Check if the service is available and the Test initialisation phase has been completed successfully.</con:description><con:settings/><con:testStep name="GetCapabilities" type="httprequest" id="edfeb63b-e812-42fe-944e-f4be20f1c2a4">
Expand Down

0 comments on commit 7607113

Please sign in to comment.