<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project activeEnvironment="Default" name="XqueryProject" resourceRoot="" soapui-version="4.0.1" xmlns:con="http://eviware.com/soapui/config">
  <con:settings/>
  <con:requirements/>
  <con:properties/>
  <con:wssContainer/>
  <con:databaseConnectionContainer/>
  <con:interface xsi:type="con:RestService" wadlVersion="http://wadl.dev.java.net/2009/02" name="GoogleMap" type="rest" basePath="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <con:settings/>
    <con:definitionCache type="TEXT" rootPart=""/>
    <con:endpoints>
      <con:endpoint>http://maps.googleapis.com</con:endpoint>
    </con:endpoints>
    <con:resource name="xmldir" path="/maps/api/directions/xml">
      <con:settings/>
      <con:parameters>
        <con:parameter>
          <con:name>origin</con:name>
          <con:value>Adelaide,SA</con:value>
          <con:style>QUERY</con:style>
          <con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type>
          <con:default>Adelaide,SA</con:default>
          <con:path xsi:nil="true"/>
          <con:description xsi:nil="true"/>
        </con:parameter>
        <con:parameter>
          <con:name>destination</con:name>
          <con:value>Adelaide,SA</con:value>
          <con:style>QUERY</con:style>
          <con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type>
          <con:default>Adelaide,SA</con:default>
          <con:path xsi:nil="true"/>
          <con:description xsi:nil="true"/>
        </con:parameter>
        <con:parameter>
          <con:name>waypoints</con:name>
          <con:value>optimize:true|Barossa Valley,SA|Clare,SA|Connawarra,SA|McLaren Vale,SA</con:value>
          <con:style>QUERY</con:style>
          <con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type>
          <con:default>optimize:true|Barossa Valley,SA|Clare,SA|Connawarra,SA|McLaren Vale,SA</con:default>
          <con:path xsi:nil="true"/>
          <con:description xsi:nil="true"/>
        </con:parameter>
        <con:parameter>
          <con:name>sensor</con:name>
          <con:value>false</con:value>
          <con:style>QUERY</con:style>
          <con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type>
          <con:default>false</con:default>
          <con:path xsi:nil="true"/>
          <con:description xsi:nil="true"/>
        </con:parameter>
      </con:parameters>
      <con:method name="Method 1" method="GET">
        <con:settings/>
        <con:parameters/>
        <con:representation type="RESPONSE">
          <con:mediaType>application/xml; charset=UTF-8</con:mediaType>
          <con:status>200</con:status>
          <con:params/>
          <con:element>DirectionsResponse</con:element>
        </con:representation>
        <con:representation type="RESPONSE">
          <con:mediaType>application/xml</con:mediaType>
          <con:status>200</con:status>
          <con:params/>
          <con:element>DirectionsResponse</con:element>
        </con:representation>
        <con:request name="Request 1" mediaType="application/xml">
          <con:settings>
            <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting>
          </con:settings>
          <con:endpoint>http://maps.googleapis.com</con:endpoint>
          <con:request/>
          <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
          <con:jmsPropertyConfig/>
          <con:parameters/>
        </con:request>
      </con:method>
    </con:resource>
  </con:interface>
  <con:testSuite name="TestSuite XML">
    <con:settings/>
    <con:runType>SEQUENTIAL</con:runType>
    <con:properties/>
    <con:reportParameters/>
    <con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="XQueryXpath" searchProperties="true" id="b8a84518-4057-4614-a3d4-d6ec3e161726">
      <con:settings/>
      <con:testStep type="restrequest" name="REST Test Request">
        <con:settings/>
        <con:config service="GoogleMap" methodName="Method 1" resourcePath="/maps/api/directions/xml" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <con:restRequest name="REST Test Request" mediaType="application/xml" accept="">
            <con:settings>
              <con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting>
              <con:setting id="com.eviware.soapui.settings.CommonSettings@entitizeProperties">true</con:setting>
            </con:settings>
            <con:encoding>UTF-8</con:encoding>
            <con:endpoint>http://maps.googleapis.com</con:endpoint>
            <con:request/>
            <con:assertion type="XPath Match" name="XPATH Check count">
              <con:configuration>
                <path>count(DirectionsResponse/route) > 10</path>
                <content>&lt;xml-fragment>true&lt;/xml-fragment></content>
                <allowWildcards>false</allowWildcards>
                <ignoreNamspaceDifferences>false</ignoreNamspaceDifferences>
                <ignoreComments>false</ignoreComments>
              </con:configuration>
            </con:assertion>
            <con:assertion type="XQuery Match" name="XQuery Match">
              <con:configuration>
                <path>count(DirectionsResponse/route) > 10</path>
                <content>&lt;xml-fragment>true&lt;/xml-fragment></content>
                <allowWildcards>false</allowWildcards>
              </con:configuration>
            </con:assertion>
            <con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
            <con:jmsPropertyConfig/>
            <con:parameters>
              <con:entry key="origin" value="Adelaide,SA"/>
              <con:entry key="destination" value="Adelaide,SA"/>
              <con:entry key="waypoints" value="optimize:true|Barossa Valley,SA|Clare,SA|Connawarra,SA|McLaren Vale,SA"/>
              <con:entry key="sensor" value="false"/>
            </con:parameters>
          </con:restRequest>
        </con:config>
      </con:testStep>
      <con:properties/>
      <con:reportParameters/>
    </con:testCase>
  </con:testSuite>
  <con:reporting>
    <con:xmlTemplates/>
    <con:parameters/>
  </con:reporting>
</con:soapui-project>