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 ju...@apache.org on 2002/06/19 08:42:41 UTC

cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV scopeServerAddress.xml scopeNotFound.xml scopeNoResource.xml scopeMoreThanOneResource.xml scopeInvalidXML.xml scopeExtraForwardSlash.xml scopeDepthInfinite.xml scopeDepth1WithMKColl.xml scopeDepth1FileUserDefinedProperty.xml scopeDepth0.xml scopeAbsoluteURI.xml scopeAbsoluteReferenceURI.xml

juergen     2002/06/18 23:42:41

  Added:       testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV
                        scopeServerAddress.xml scopeNotFound.xml
                        scopeNoResource.xml scopeMoreThanOneResource.xml
                        scopeInvalidXML.xml scopeExtraForwardSlash.xml
                        scopeDepthInfinite.xml scopeDepth1WithMKColl.xml
                        scopeDepth1FileUserDefinedProperty.xml
                        scopeDepth0.xml scopeAbsoluteURI.xml
                        scopeAbsoluteReferenceURI.xml
  Log:
  Testcases to check the 'from' element within DASL Basic Search.
  
  Revision  Changes    Path
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeServerAddress.xml
  
  Index: scopeServerAddress.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test> 
  
  
  	<specification>
  
  		<abstract> Searches for a resource defined as a server address within the scope. </abstract>
  
  		<pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  
  		<description>
  		1) A Put for the file that will be Searched
  		2) Search for the properties displayname and test(nonexistent). 
  		The HREF within the scope uses a Server Address.
  		3) Delete the resource. </description>
  
  		<expectedResult>A 502 response code should be returned by the Search.</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/validXML.xm1">
      			</body>
  		</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,globalVariableCollection">SEARCH /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command> 
     			<body><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  				<searchrequest xmlns:D="DAV:">
  					<D:basicsearch>
  						<D:select>
  							<D:prop>
  								<D:getetag/>
  								<D:test/>
  							</D:prop>
  						</D:select>
  						<D:from>
  							<D:scope>
  								<D:href>http://localhost:4000/%globalVariableServerName%/%globalVariableCollection%/test.xml</D:href>
  								<D:depth>1</D:depth>
  							</D:scope>
  						</D:from>
  					</D:basicsearch>
  				</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 502 Bad Gateway</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[
     				]]>
     			</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>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeNotFound.xml
  
  Index: scopeNotFound.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test> 
  
  
  	<specification>
  
  		<abstract> Search using a nonexistent HREF in the Scope. </abstract>
  
  		<pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  
  		<description>
  		1) Search with a nonexistent collection stated within the Scope's HREF.
  		</description>
  
  		<expectedResult>The Search should return a 404 Error, indicating the resource could not be found.</expectedResult>
  
  	</specification>
  	
  	<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command>
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  				<searchrequest xmlns:D="DAV:">
  					<D:basicsearch>
  						<D:select>
  							<D:prop>
  								<D:displayname/>
  								<D:getcontentlength/>
  								<D:getcontenttype/>
  							</D:prop>
  						</D:select>
  						<D:from>
  							<D:scope>
  								<D:href>%globalVariableCollection%/nonexistent</D:href>
  							</D:scope>
  						</D:from>
  						<D:where>
  							<D:gt>
  								<D:prop>
  									<D:getcontentlength/>
  								</D:prop>
  								<D:literal>1000</D:literal>
  							</D:gt>
  						</D:where>
  					</D:basicsearch>
  				</searchrequest>			
     				]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 400 Bad Request</command>
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<D:multistatus xmlns:D="DAV:">
     					<D:response>
     						<D:href>%globalVariableCollection%/nonexistent/</D:href>
     						<D:status>HTTP/1.1 404 Not Found</D:status>
     						<D:scopeerror />
     					</D:response>
     				</D:multistatus>
     				]]>
     			</body>
     		</response>
     	</step>
  	
  	
  	
  </test>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeNoResource.xml
  
  Index: scopeNoResource.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
  	<specification>
  		
  		<abstract> No resource is defined in the Scope. An error should occur. </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 with no resource in the Scope.
  		3) The resource is deleted.
  		</description>
  		
  		<expectedResult>The Search should result in an error, returning a 400 Bad Request response code.</expectedResult>
  		
  	</specification>
  	
  	
  	
  	<step> 
    		<request>
     			<command varUsage ="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/validXML.xm1">
      			</body>
  		</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><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  							<searchrequest xmlns:D="DAV:">
  								<D:basicsearch>
  									<D:select>
  										<D:prop>	
  											<D:displayname/>
  										</D:prop>
  									</D:select>
  									<D:from>
  										<D:scope>
  											<D:depth>0</D:depth>
  										</D:scope>
  									</D:from>
  								</D:basicsearch>
  							</searchrequest>			
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 400 Bad Request</command>
     		</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>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeMoreThanOneResource.xml
  
  Index: scopeMoreThanOneResource.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
  	<specification>
  		
  		<abstract> More than one resource is defined in the Scope. An error should occur.</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 second resource is put to the server. 
  		3) A Search is performed with more than one resource in the Scope.
  		4) The resource is deleted.</description>
  		
  		<expectedResult>The search should return a 400 Bad Request error.</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/validXML.xm1">
      			</body>
  		</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 ="userNumber,globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/test2.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/validXML.xm1">
      			</body>
  		</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>
   	
  <!-- Search giving two parameters for the scope -->
   	
   	
   	
  	<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command>
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  						<searchrequest xmlns:D="DAV:">
  							<D:basicsearch>
  								<D:select>
  									<D:prop>
  										<D:displayname/>
  										<D:displayname/>
  									</D:prop>
  								</D:select>
  								<D:from>
  									<D:scope>
  										<D:href>%globalVariableCollection%/test.xml</D:href>
  										<D:href>%globalVariableCollection%/test2.xml</D:href>
  										<D:depth>0</D:depth>
  									</D:scope>
  								</D:from>
  							</D:basicsearch>
  						</searchrequest>   			
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 400 Bad Request</command>
     		</response>
     	</step>
     	
     	
     	
  
  
  <cleanup>
      
     
      		<step>
       			<request>
        				<command varUsage="globalVariableCollection,globalVariableServerName,fileNumber"> 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>
      		
      		<step>
       			<request>
        				<command varUsage="globalVariableCollection,globalVariableServerName,fileNumber"> DELETE /%globalVariableServerName%/%globalVariableCollection%/test2.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>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeInvalidXML.xml
  
  Index: scopeInvalidXML.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test> 
  
  
  	<specification>
  
  		<abstract> The Search contains invalid XML within the HREF of the Scope. </abstract>
  
  		<pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  
  		<description>
  		1) Search for the properties displayname and test(nonexistent). 
  		The HREF within the scope has invalid XML.
  		</description>
  
  		<expectedResult>An 400 Bad Request error should occur because of the invalid XML.</expectedResult>
  
  	</specification>
  	
  	
   	
   	 	
   	 	
   		<step> 
    		<request>
     			<command varUsage ="globalVariableServerName,globalVariableCollection">SEARCH /%globalVariableServerName% HTTP/1.1</command> 
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  					<searchrequest xmlns:D="DAV:">
  						<D:basicsearch>
  							<D:select>
  								<D:prop>
  									<D:displayname/>		
  								</D:prop>
  							</D:select>
  							<D:from>
  								<D:scope>
  									<D:href>%globalVariableCollection%/ <!-- Tag missing to create invalid XML -->
  									<D:depth>1</D:depth>
  								</D:scope>
  							</D:from>
  						</D:basicsearch>
  					</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 400 Bad Request</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<D:multistatus xmlns:D="DAV:">
     					<D:response>
     						<D:href>/%globalVariableServerName%</D:href>
     						<D:status>HTTP/1.1 400 Bad Request</D:status>
     						<D:responsedescription>The element type "D:href" must be terminated by the matching end-tag "&amp;lt;/D:href&amp;gt;".</D:responsedescription>
     					</D:response>
     				</D:multistatus>
     				]]>
     			</body>
     		</response>
     	</step>
  
  
  	
  </test>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeExtraForwardSlash.xml
  
  Index: scopeExtraForwardSlash.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test> 
  
  
  	<specification>
  
  		<abstract> An extra '/' is used at the beginning of the HREF in the Scope. This means the HREF should
  		be treated as an absolute path.
  		No server exists with the name %globalVariableCollection%, however a collection does.
  		This test ensures that the beginning '/' is recognised and it is not appended to the URI in the Search command.
  		if this happens, the Search would be successful, returning the displayname of %globalVariableCollection%,
  		causing the testcase to error.
  		</abstract>
  
  		<pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  
  		<description>
  		1) Search for the properties displayname and test(nonexistent). 
  		The HREF within the scope has an additional forward slash "/" at the start.
  		</description>
  
  		<expectedResult>The Search should return a 400 Bad Request error with a 404 Not Found because 
  		the location /%globalVariableCollection%/ cannot be found.</expectedResult>
  
  	</specification>
  	
  	
   	
   	 	
   	 	
   		<step> 
    		<request>
     			<command varUsage ="globalVariableServerName,globalVariableCollection">SEARCH /%globalVariableServerName% HTTP/1.1</command> 
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  					<searchrequest xmlns:D="DAV:">
  						<D:basicsearch>
  							<D:select>
  								<D:prop>
  									<D:displayname/>		
  								</D:prop>
  							</D:select>
  							<D:from>
  								<D:scope>
  									<D:href>/%globalVariableCollection%/ </D:href>
  									<D:depth>1</D:depth>
  								</D:scope>
  							</D:from>
  						</D:basicsearch>
  					</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 400 Bad Request</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     					<D:multistatus xmlns:D="DAV:">
     						<D:response>
     							<D:href>/%globalVariableCollection%/</D:href>
     							<D:status>HTTP/1.1 404 Not Found</D:status>
     							<D:scopeerror />	
     						</D:response>
     					</D:multistatus>
     				]]>
     			</body>
     		</response>
     	</step>
  
  
  	
  </test>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeDepthInfinite.xml
  
  Index: scopeDepthInfinite.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
  	<specification>
  		
  		<abstract> A Search is performed for specified properties.
  		A collection is defined within the scope of a Search with a depth of infinity. </abstract>
  		
  		<pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  		
  		<description>
  		1) MKCol to create a 'level1' collection.
  		2) MKCol to create a 'level1/level2' collection.
  		3) MKCol to create a 'level1/level2/level3' collection. This directory structure is created to ensure that the depth element is 
  		working correctly. Only the requested properties within the specified depth should be returned by the Search.
  		4) A Search is performed against globalVariableCollection with depth set to infinity on the properties:
  		displayname and test. The first should exist, the second should not. 
  		The properties of the root, level one, level two and level three collections should be returned. 
  		5) Delete all resources.
  		</description>
  		
  		<expectedResult>The search should return a 207 Multi-Status. Within this, the resourcetype should
  		be found, returning a 200 OK. The test property should return a 404 Not Found response code.
  		This should happen for the root level, first level, second level and third level.</expectedResult>
  		
  	</specification>
  	
  	
  	
  	
  	
  	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/level1 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/level1/level2 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/level1/level2/level3 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  					<searchrequest xmlns:D="DAV:">
  						<D:basicsearch>
  							<D:select>
  								<D:prop>
  									<D:resourcetype/>
  										<D:test/>
  								</D:prop>
  							</D:select>
  							<D:from>
  								<D:scope>
  									<D:href>%globalVariableCollection%/</D:href>
  									<D:depth>Infinity</D:depth>
  								</D:scope>
  							</D:from>
  							<D:orderby> <!-- Orderby needed because the returned order cannott be guaranteed. 
     									 This means it is impossible to define an expected response. 
     									 Ordering them guarantees the returned order. -->
     								<D:order>
     									<D:prop>
     										<D:displayname/>
     									</D:prop>
     								</D:order>
     							</D:orderby>
  						</D:basicsearch>
  					</searchrequest>			
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 207 Multi-Status</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  						<D:multistatus xmlns:D="DAV:">
  							<D:response>
  								<D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
  									<propstat xmlns="DAV:">
  										<prop>
  											<resourcetype>
  												<collection />
  											</resourcetype>
  										</prop>
  										<status>HTTP/1.1 200 OK</status>
  									</propstat>
  									<propstat xmlns="DAV:">
  										<prop>
  											<test />
  										</prop>
  										<status>HTTP/1.1 404 Not Found</status>
  									</propstat>
  							</D:response>
  							<D:response>
  							
  								<D:href>/%globalVariableServerName%/%globalVariableCollection%/level1</D:href>
  									<propstat xmlns="DAV:">
  										<prop>
  											<resourcetype>
  												<collection />
  											</resourcetype>
  										</prop>
  										<status>HTTP/1.1 200 OK</status>
  									</propstat>
  									<propstat xmlns="DAV:">
  										<prop>
  											<test />
  										</prop>
  										<status>HTTP/1.1 404 Not Found</status>
  									</propstat>
  							</D:response>
  							<D:response>
  								<D:href>/%globalVariableServerName%/%globalVariableCollection%/level1/level2</D:href>
  									<propstat xmlns="DAV:">
  										<prop>
  											<resourcetype>
  												<collection />
  											</resourcetype>
  										</prop>
  										<status>HTTP/1.1 200 OK</status>
  									</propstat>
  									<propstat xmlns="DAV:">
  										<prop>
  											<test />
  										</prop>
  									<status>HTTP/1.1 404 Not Found</status>
  									</propstat>
  							</D:response>
  							<D:response>
  								<D:href>/%globalVariableServerName%/%globalVariableCollection%/level1/level2/level3</D:href>
  									<propstat xmlns="DAV:">
  										<prop>
  											<resourcetype>
  												<collection />
  											</resourcetype>
  										</prop>
  										<status>HTTP/1.1 200 OK</status>
  									</propstat>
  									<propstat xmlns="DAV:">
  										<prop>
  											<test />
  										</prop>
  										<status>HTTP/1.1 404 Not Found</status>
  									</propstat>
  							</D:response>
  							
  						</D:multistatus>
     				]]>
     			</body>
     		</response>
     	</step>
  	
  
  	
  <cleanup>
  	
   <step>
       <request>
        <command varUsage="globalVariableCollection,globalVariableServerName"> DELETE /%globalVariableServerName%/%globalVariableCollection%/level1 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>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeDepth1WithMKColl.xml
  
  Index: scopeDepth1WithMKColl.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
  	<specification>
  		
  		<abstract> A Search is performed for specified properties.
  		A collection is defined within the scope of a Search with a depth of 1. </abstract>
  		
  		<pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  		
  		<description>
  		1) MKCol to create a 'level1' collection.
  		2) MKCol to create a 'level1/level2' collection.
  		3) MKCol to create a 'level1/level2/level3' collection. This directory structure is created to ensure that the depth element is 
  		working correctly. Only the requested properties within the specified depth should be returned by the Search.
  		4) A Search is performed against globalVariableCollection with depth set to 1 on the properties:
  		displayname and test. The first should exist, the second should not. 
  		Only the properties of the root and level one collections should be returned.
  		</description>
  		
  		<expectedResult>The search should return a 207 Multi-Status. Within this, the resourcetype should
  		be found, returning a 200 OK. The test property should return a 404. This should only happen for the 
  		root level and first level.</expectedResult>
  		
  	</specification>
  	
  	
  	
  	
  	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/level1 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/level1/level2 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/level1/level2/level3 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     					<searchrequest xmlns:D="DAV:">
     						<D:basicsearch>
     							<D:select>
     								<D:prop>
     									<D:resourcetype/>
     									<D:test/>
     								</D:prop>
     							</D:select>
     							<D:from>
     								<D:scope>
     									<D:href>%globalVariableCollection%/</D:href>
     									<D:depth>1</D:depth>
     								</D:scope>
     							</D:from>
     							<D:orderby> <!-- Orderby needed because the returned order cannot be guaranteed. 
     									 This means it is impossible to define an expected response. 
     									 Ordering them guarantees the returned order. -->
     								<D:order>
     									<D:prop>
     										<D:displayname/>
     									</D:prop>
     								</D:order>
     							</D:orderby>
     						</D:basicsearch>
     					</searchrequest>			
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 207 Multi-Status</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  						<D:multistatus xmlns:D="DAV:">
  							<D:response>
  								<D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
  									<propstat xmlns="DAV:">
  										<prop>
  											<resourcetype>
  												<collection />
  											</resourcetype>
  										</prop>
  											<status>HTTP/1.1 200 OK</status>
  									</propstat>
  									<propstat xmlns="DAV:">
  										<prop>
  											<test />
  										</prop>
  										<status>HTTP/1.1 404 Not Found</status>
  									</propstat>
  							</D:response>
  							
  							<D:response>
  								<D:href>/%globalVariableServerName%/%globalVariableCollection%/level1</D:href>
  									<propstat xmlns="DAV:">
  										<prop>
  											<resourcetype>
  												<collection />
  											</resourcetype>
  										</prop>
  										<status>HTTP/1.1 200 OK</status>
  									</propstat>
  									<propstat xmlns="DAV:">
  										<prop>
  											<test />
  										</prop>
  										<status>HTTP/1.1 404 Not Found</status>
  									</propstat>
  							</D:response>
  						</D:multistatus>
  				]]>
     			</body>
     		</response>
     	</step>
  	
  
  <cleanup>
  	
   <step>
       <request>
        <command varUsage="globalVariableCollection,globalVariableServerName"> DELETE /%globalVariableServerName%/%globalVariableCollection%/level1 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>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeDepth1FileUserDefinedProperty.xml
  
  Index: scopeDepth1FileUserDefinedProperty.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
  	<specification>
  		
  		<abstract> Search for a user defined property. </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 PropPatch is performed to add a property to the resource.
  		3) Search for the defined property and a DAV property.
  		4) Delete the resource.
  		</description>
  		
  		<expectedResult>A 207 Multi-Status response code should be returned by the Search.
  		The DAV property and the newly created property should be discovered by the Search.</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/validXML.xm1">
      			</body>
  		</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="repeatCounter,globalVariableCollection,globalVariableServerName">PROPPATCH /%globalVariableServerName%/%globalVariableCollection%/test.xml HTTP/1.1</command>
     		<header>Content-Type: text/xml</header>
     		<header>User-Agent: Microsoft Data Access Internet Publishing Provider DAV</header>
     		<header>Accept-Language: en-us</header>
     		<header>Translate: f</header>
     		<header>Pragma: no-cache</header>
     		<header>Connection: close</header>
     		<body><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
  				<D:propertyupdate xmlns:D="DAV:" xmlns:R="http://www.com/">
  					<D:set>
  						<D:prop>
  							<D:test>testing</D:test>
  						</D:prop>
  					</D:set>
  				</D:propertyupdate>
  			]]>
  		</body>
    	</request>
    	<response>
    		<command>HTTP/1.0 207 Multi-Status</command>
     		<header>Date: Tue, 13 Feb 2001 12:45:26 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>
     		<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" encoding="utf-8" ?>
     				<d:multistatus xmlns:d="DAV:">
     					<d:response>
     						<d:href>/%globalVariableServerName%/%globalVariableCollection%/test.xml</d:href>
     							<d:propstat>		
     								<d:prop>
     									<D:test xmlns:D="DAV:"/>
     								</d:prop>	
     								<d:status>HTTP/1.1 200 OK</d:status>
     							</d:propstat>
     					</d:response>
     				</d:multistatus>
     		
     		]]></body>
    	</response>
   	</step>
   	
   	
   	
   	<step> 
    		<request>
     			<command varUsage ="globalVariableServerName">SEARCH /%globalVariableServerName% HTTP/1.1</command>
     			<body varUsage="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  					<searchrequest xmlns:D="DAV:">
  						<D:basicsearch>
  							<D:select>
  								<D:prop>
  									<D:displayname/>
  									<D:test/>
  								</D:prop>
  							</D:select>
  							<D:from>
  								<D:scope>
  									<D:href>%globalVariableCollection%/test.xml</D:href>
  									<D:depth>1</D:depth>
  								</D:scope>
  							</D:from>
  						</D:basicsearch>
  					</searchrequest>
  					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 207 Multi-Status</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     					<D:multistatus xmlns:D="DAV:">
     						<D:response>
     							<D:href>/%globalVariableServerName%/%globalVariableCollection%/test.xml</D:href>
     								<propstat xmlns="DAV:">
     								<prop>
     									<displayname>test.xml</displayname>
     									<test>testing</test>
     								</prop>
     								<status>HTTP/1.1 200 OK</status>
     								</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>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeDepth0.xml
  
  Index: scopeDepth0.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test>
  	<specification>
  		
  		<abstract> A Search is performed for specified properties. 
  		A collection is defined within the scope of a Search with a depth of 0. </abstract>
  		
  		<pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  		
  		<description>
  		1) MKCol to create a 'level1' collection.
  		2) MKCol to create a 'level1/level2' collection.
  		3) MKCol to create a 'level1/level2/level3' collection. This directory structure is created to ensure that the depth element is 
  		working correctly. Only the requested properties within the specified depth should be returned by the Search.
  		4) A Search is performed against globalVariableCollection, with depth set to 0, on the properties:
  		displayname and test. The first property should exist, the second should not and should be returned for the root collection ONLY.
  		</description>
  		
  		<expectedResult>The search should return a 207 Multi-Status. Within this, the displayname should
  		be found, returning a 200 OK. The test property should return a 404. Both should be found for the root collection ONLY.</expectedResult>
  		
  	</specification>
  	
  	
  	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/level1 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/level1/level2 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/level1/level2/level3 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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="globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
  					<searchrequest xmlns:D="DAV:">
  						<D:basicsearch>
  							<D:select>
  								<D:prop>
  									<D:displayname/>
  									<D:test/>
  								</D:prop>
  							</D:select>
  							<D:from>
  								<D:scope>
  									<D:href>%globalVariableCollection%/</D:href>
  									<D:depth>0</D:depth>
  								</D:scope>
  							</D:from>
  						</D:basicsearch>
  					</searchrequest>			
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 207 Multi-Status</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     					<D:multistatus xmlns:D="DAV:">
     						<D:response>
     							<D:href>/%globalVariableServerName%/%globalVariableCollection%</D:href>
     								<propstat xmlns="DAV:">
     									<prop>
     										<displayname>%globalVariableCollection%</displayname>
     									</prop>
     									<status>HTTP/1.1 200 OK</status>
     								</propstat>
     								<propstat xmlns="DAV:">
     									<prop>
     										<test />
     									</prop>
     									<status>HTTP/1.1 404 Not Found</status>
     								</propstat>
     						</D:response>
     					</D:multistatus>
     				]]>
     			</body>
     		</response>
     	</step>
  	
  	
  <cleanup>
  	
   <step>
       <request>
        <command varUsage="globalVariableCollection,globalVariableServerName"> DELETE /%globalVariableServerName%/%globalVariableCollection%/level1 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>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeAbsoluteURI.xml
  
  Index: scopeAbsoluteURI.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test> 
  
  
  	<specification>
  
  		<abstract> Search for two properties with an absoulute URI in the Search. </abstract>
  
  		<pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  
  		<description>
  		1) MKCol to create a folder for the search to reference. The file Put into this collection shouldn't be returned.
  		2) MKCol to create a folder that will be referenced within the scope.
  		3) A Put for the file that shouldn't be returned by the search.
  		4) A Put to create a resource that should be returned by the search.
  		5) Search for the defined property. The first file is used within the command line.
  		The file within the second collection is referenced within the body of the Search. 
  		The properties of the second file should be returned. 
  		6) Delete the resource.</description>
  
  		<expectedResult>A 207 Multi-Status response code should be returned by the Search.
  		The requested properties of the second file, not the first, should be discovered by the Search.</expectedResult>
  
  	</specification>
  	
  	
  	<step>
    		<request>
     			<command varUsage="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/collection_one 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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="globalVariableCollection,globalVariableServerName"> MKCOL /%globalVariableServerName%/%globalVariableCollection%/collection_two 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>
    		</request>
    		<response>
     			<command>HTTP/1.0 201 Created</command>
     			<header>Date: Wed, 21 Feb 2001 12:55:57 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 ="userNumber,globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/collection_one/shouldntfind.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/validXML.xm1">
      			</body>
  		</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 ="userNumber,globalVariableCollection,globalVariableServerName">PUT /%globalVariableServerName%/%globalVariableCollection%/collection_two/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/validXML.xm1">
      			</body>
  		</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,globalVariableCollection">SEARCH /%globalVariableServerName%/%globalVariableCollection%/collection_one/shouldntfind.xml HTTP/1.1</command> 
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     						<searchrequest xmlns:D="DAV:">
     							<D:basicsearch>
     								<D:select>
     									<D:prop>
     										<D:displayname/>
     										<D:test/>
     									</D:prop>
     								</D:select>
     								<D:from>
     								<D:scope>
     									<D:href>/%globalVariableServerName%/%globalVariableCollection%/collection_two/test.xml</D:href>
     									<D:depth>1</D:depth>
     								</D:scope>
     								</D:from>
     							</D:basicsearch>
     						</searchrequest>			
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 207 Multi-Status</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     						<D:multistatus xmlns:D="DAV:">
     							<D:response>
     								<D:href>/%globalVariableServerName%/%globalVariableCollection%/collection_two/test.xml</D:href>
     								<propstat xmlns="DAV:">
     									<prop>
     										<displayname>test.xml</displayname>
     									</prop>
     									<status>HTTP/1.1 200 OK</status>
     								</propstat>
     								<propstat xmlns="DAV:">
     									<prop>
     										<test />
     									</prop>
     									<status>HTTP/1.1 404 Not Found</status>
     								</propstat>	
     							</D:response>
     						</D:multistatus>
     				]]>
     			</body>
     		</response>
     	</step>
  
  
  <cleanup>
      <step>
       <request>
        <command varUsage="globalVariableCollection,globalVariableServerName"> DELETE /%globalVariableServerName%/%globalVariableCollection%/collection_one 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>
  
      <step>
       <request>
        <command varUsage="globalVariableCollection,globalVariableServerName"> DELETE /%globalVariableServerName%/%globalVariableCollection%/collection_two 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>
  
  
  1.1                  jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/from/DAV/scopeAbsoluteReferenceURI.xml
  
  Index: scopeAbsoluteReferenceURI.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  
  <test> 
  
  
  	<specification>
  
  		<abstract> Searches for a resource defined as an absolute URI reference within the scope. </abstract>
  
  		<pre-Requisite>A collection has been created and defined in tprocessor.cmd.</pre-Requisite>
  
  		<description>
  		1) A Put for the file that will be Searched
  		2) Search for the properties displayname and test(nonexistent). 
  		The HREF within the scope uses an absolute URI reference, meaning it should append to the URI given in the command.
  		3) Delete the resource. </description>
  
  		<expectedResult>A 207 Multi-Status response code should be returned by the Search.
  		The displayname property should be found and returned, the test property should return a 404.</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/validXML.xm1">
      			</body>
  		</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,globalVariableCollection">SEARCH /%globalVariableServerName%/%globalVariableCollection%/ HTTP/1.1</command> 
     			<body><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<searchrequest xmlns:D="DAV:">
     					<D:basicsearch>
     						<D:select>
     							<D:prop>
     								<D:displayname/>
     								<D:test/>
     							</D:prop>
     						</D:select>
     						<D:from>
     							<D:scope>
     								<D:href>test.xml</D:href>
     								<D:depth>1</D:depth>
     							</D:scope>
     						</D:from>
     					</D:basicsearch>
     				</searchrequest>	
     					]]> 			
      				</body>
  		</request>
   	
   		<response>
     			<command>HTTP/1.0 207 Multi-Status</command>
     			<body varUsage="globalVariableServerName,globalVariableCollection"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
     				<D:multistatus xmlns:D="DAV:">
     					<D:response>
     						<D:href>/%globalVariableServerName%/%globalVariableCollection%/test.xml</D:href>
     							<propstat xmlns="DAV:">
     								<prop>
     									<displayname>test.xml</displayname>
     								</prop>
     								<status>HTTP/1.1 200 OK</status>
     							</propstat>
     							<propstat xmlns="DAV:">
     								<prop>
     									<test />
     								</prop>
     									<status>HTTP/1.1 404 Not Found</status>
     							</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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>