You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by wa...@apache.org on 2003/06/05 11:17:34 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/select/XPATH 30a_singleXPathNonExistentSingleWhere.xml

wam         2003/06/05 02:17:34

  Added:       testsuite/testsuite/junit/xmltestcases/DASL/functional/select/XPATH
                        30a_singleXPathNonExistentSingleWhere.xml
  Log:
  no message
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/select/XPATH/30a_singleXPathNonExistentSingleWhere.xml
  
  Index: 30a_singleXPathNonExistentSingleWhere.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Search for properties specified by an XPath query. 
  		Only one XPath query is defined. The searched for value does not exist.
  		A valid XPath is also defined within the Where elements.
  		</abstract>
      <pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
      <description>
  		1) A resource is Put on to the Server. 
  		2) A Search is performed to find the properties defined by the XPath.
  		3) The resource is deleted.
  		</description>
      <expectedResult>XPath evaluated correctly no properties returned. Where XPath evaluated correctly.
  		207 Multi-Status response code. Within the body a 200 OK response code with an empty XPath response.</expectedResult>
    </specification>
    <step>
      <request>
        <command varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
        <header>Accept-Language: en-us</header>
        <header>Translate: f</header>
        <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
        <header>Connection: Keep-Alive</header>
        <body fileReference="../../../../contentDirectory/XPath.xm1"/>
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
        <header>Date: Mon, 12 Mar 2001 17:21:35 GMT+01:00</header>
        <header>Content-Language: en</header>
        <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
      </response>
    </step>
    <step>
      <request>
        <command varUsage="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command>
        <body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  						<searchrequest xmlns:D="DAV:" xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav">
  							<D:basicsearch>
  								<D:select>
   									<D:prop>
       										<xsv:xpath name="XPathTest" plain="true">ValidXML[@name = "valid"]/nonexistent</xsv:xpath>
   									</D:prop>
  								</D:select>
  								<D:from>
    									<D:scope>
      										<D:href>/%globalVariableServerName%/%globalVariableCollection%/test.xml</D:href>
    									</D:scope>
  								</D:from>
  								<D:where>
  									<xsv:xpath name="XPathTest2">ValidXML/ValidXML3/ValidXML3Nested</xsv:xpath>
  								</D:where>
  							</D:basicsearch>
  						</searchrequest>
     				]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body varUsage="globalVariableCollection,globalVariableServerName,testresourcecontentlength"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  <D:multistatus xmlns:D="DAV:">
    <D:response>
      <D:href>/taminowebdavserver/files/test.xml</D:href>
      <D:propstat>
        <D:prop>
          <xsv:XPathTest xmlns:xsv="http://namespaces.softwareag.com/tamino/webdav"/>
        </D:prop>
        <D:status>HTTP/1.1 200 OK</D:status>
      </D:propstat>
    </D:response>
  </D:multistatus>
  			]]></body>
      </response>
    </step>
  
    <cleanup>
      <step>
        <request>
          <command varUsage="globalVariableCollection,globalVariableServerName"> DELETE /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
          <header>Accept-Language: en-us</header>
          <header>Destroy: NoUndelete</header>
          <header>Translate: f</header>
          <header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
          <header>Connection: Keep-Alive</header>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
          <header>Date: Wed, 14 Mar 2001 14:47:37 GMT+01:00</header>
          <header>Content-Language: en</header>
          <header>Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)</header>
        </response>
      </step>
    </cleanup>
  
  </test>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org