luetzkendorf    2004/11/16 06:30:19

  Added:       testsuite/testsuite/junit/xmltestcases/DASL/functional/where/like
                        notLike.xml prefix.xml singleAtEnd.xml
                        singleAtStart.xml singleInside.xml substring.xml
                        suffix.xml undefinedProp.xml
  Log:
  testcases for the DAV:like operator
  
  Revision  Changes    Path
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/like/notLike.xml
  
  Index: notLike.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Tests like operator. </abstract>
      <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
      <description>
                </description>
      <expectedResult>
                </expectedResult>
    </specification>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>FOOBAR</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <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:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>different value</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <d:multistatus xmlns:d="DAV">
    <d:response>
      
<d:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </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,globalVariableServerName"><![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>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:and>
          <D:not>
            <D:like>
              <D:prop>
                <D:displayname/>
              </D:prop>
              <D:literal>FOO%</D:literal>
            </D:like>
          </D:not>
          <D:not>
            <D:is-collection/>
          </D:not>
        </D:and>
      </D:where>
    </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%/test2.xml</D:href>
      <D:propstat>
        <D:prop>
          <D:displayname>different value</D:displayname>
        </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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command 
varUsage="globalVariableCollection,globalVariableServerName">DELETE 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/like/prefix.xml
  
  Index: prefix.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Tests like operator. </abstract>
      <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
      <description>
                </description>
      <expectedResult>
                </expectedResult>
    </specification>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>FOOBAR</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <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:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>different value</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <d:multistatus xmlns:d="DAV">
    <d:response>
      
<d:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </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,globalVariableServerName"><![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>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:like>
          <D:prop>
            <D:displayname/>
          </D:prop>
          <D:literal>FOO%</D:literal>
        </D:like>
      </D:where>
    </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>
      <D:propstat>
        <D:prop>
          <D:displayname>FOOBAR</D:displayname>
        </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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/like/singleAtEnd.xml
  
  Index: singleAtEnd.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Tests like operator. </abstract>
      <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
      <description>
                </description>
      <expectedResult>
                </expectedResult>
    </specification>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>FOOBAR</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <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:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>different value</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <d:multistatus xmlns:d="DAV">
    <d:response>
      
<d:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </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,globalVariableServerName"><![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>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:like>
          <D:prop>
            <D:displayname/>
          </D:prop>
          <D:literal>FOOBA_</D:literal>
        </D:like>
      </D:where>
    </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>
      <D:propstat>
        <D:prop>
          <D:displayname>FOOBAR</D:displayname>
        </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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/like/singleAtStart.xml
  
  Index: singleAtStart.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Tests like operator. </abstract>
      <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
      <description>
                </description>
      <expectedResult>
                </expectedResult>
    </specification>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>FOOBAR</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <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:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>different value</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <d:multistatus xmlns:d="DAV">
    <d:response>
      
<d:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </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,globalVariableServerName"><![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>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:like>
          <D:prop>
            <D:displayname/>
          </D:prop>
          <D:literal>_OOBAR</D:literal>
        </D:like>
      </D:where>
    </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>
      <D:propstat>
        <D:prop>
          <D:displayname>FOOBAR</D:displayname>
        </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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/like/singleInside.xml
  
  Index: singleInside.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Tests like operator. </abstract>
      <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
      <description>
                </description>
      <expectedResult>
                </expectedResult>
    </specification>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>FOOBAR</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <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:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>different value</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <d:multistatus xmlns:d="DAV">
    <d:response>
      
<d:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </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,globalVariableServerName"><![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>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:like>
          <D:prop>
            <D:displayname/>
          </D:prop>
          <D:literal>FO__AR</D:literal>
        </D:like>
      </D:where>
    </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>
      <D:propstat>
        <D:prop>
          <D:displayname>FOOBAR</D:displayname>
        </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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/like/substring.xml
  
  Index: substring.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Tests like operator. </abstract>
      <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
      <description>
                </description>
      <expectedResult>
                </expectedResult>
    </specification>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>FOOBAR</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <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:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>different value</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <d:multistatus xmlns:d="DAV">
    <d:response>
      
<d:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </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,globalVariableServerName"><![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>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:like>
          <D:prop>
            <D:displayname/>
          </D:prop>
          <D:literal>%OBA%</D:literal>
        </D:like>
      </D:where>
    </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>
      <D:propstat>
        <D:prop>
          <D:displayname>FOOBAR</D:displayname>
        </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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/like/suffix.xml
  
  Index: suffix.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Tests like operator. </abstract>
      <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
      <description>
                </description>
      <expectedResult>
                </expectedResult>
    </specification>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>FOOBAR</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <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:displayname/>
        </d:prop>
        <d:status>HTTP/1.1 200 OK</d:status>
      </d:propstat>
    </d:response>
  </d:multistatus>
  
  ]]></body>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="globalVariableCollection,globalVariableServerName">PROPPATCH 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <header>Content-Type: text/xml</header>
        <body><![CDATA[<?xml version="1.0" encoding="utf-8"?>
  <D:propertyupdate xmlns:D="DAV:">
    <D:set>
      <D:prop>
        <D:displayname>different value</D:displayname>
      </D:prop>
    </D:set>
  </D:propertyupdate>
  
  ]]></body>
      </request>
      <response>
        <command>HTTP/1.0 207 Multi-Status</command>
        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <d:multistatus xmlns:d="DAV">
    <d:response>
      
<d:href>%globalVariableServerName%/%globalVariableCollection%/test2.xml</d:href>
      <d:propstat>
        <d:prop>
          <d:displayname/>
        </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,globalVariableServerName"><![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>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:like>
          <D:prop>
            <D:displayname/>
          </D:prop>
          <D:literal>%BAR</D:literal>
        </D:like>
      </D:where>
    </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>
      <D:propstat>
        <D:prop>
          <D:displayname>FOOBAR</D:displayname>
        </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>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  
  1.1                  
jakarta-slide/testsuite/testsuite/junit/xmltestcases/DASL/functional/where/like/undefinedProp.xml
  
  Index: undefinedProp.xml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
  <test>
    <specification>
      <abstract> Tests like operator. </abstract>
      <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
      <description>
                </description>
      <expectedResult>
                </expectedResult>
    </specification>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
    <step>
      <request>
        <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">PUT 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        <body fileReference="../../../../contentDirectory/validXML.xm1" />
      </request>
      <response>
        <command>HTTP/1.0 201 Created</command>
      </response>
    </step>
  
    <step>
      <request>
        <command varUsage="globalVariableServerName">SEARCH 
%globalVariableServerName% HTTP/1.1</command>
        <body 
varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml 
version="1.0" encoding="utf-8"?>
  <searchrequest xmlns:D="DAV:" xmlns:X="XYZ">
    <D:basicsearch>
      <D:select>
        <D:prop> <D:displayname/> </D:prop>
      </D:select>
      <D:from>
        <D:scope>
          
<D:href>%globalVariableServerName%/%globalVariableCollection%/</D:href>
        </D:scope>
      </D:from>
      <D:where>
        <D:and>
          <D:not>
            <D:like>
              <D:prop>
                <X:undefined/>
              </D:prop>
              <D:literal>FOO%</D:literal>
            </D:like>
          </D:not>
          <D:not>
            <D:is-collection/>
          </D:not>
        </D:and>
      </D:where>
    </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:multistatus>
  
  ]]></body>
      </response>
    </step>
    <cleanup>
      <step>
        <request>
          <command 
varUsage="globalVariableCollection,globalVariableServerName">DELETE 
%globalVariableServerName%/%globalVariableCollection%/test.xml 
HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
      <step>
        <request>
          <command 
varUsage="globalVariableCollection,globalVariableServerName">DELETE 
%globalVariableServerName%/%globalVariableCollection%/test2.xml 
HTTP/1.1</command>
        </request>
        <response>
          <command>HTTP/1.0 204 No Content</command>
        </response>
      </step>
    </cleanup>
  </test>
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to