juergen     2003/10/31 05:21:53

  Modified:    
testsuite/testsuite/junit/xmltestcases/multi-user/concurrent/DifferentCollections/nonXML
                        Put10Del10.xml
  Log:
  (fga)corrected error on paths. Updated description.
  
  Revision  Changes    Path
  1.4       +30 -15    
jakarta-slide/testsuite/testsuite/junit/xmltestcases/multi-user/concurrent/DifferentCollections/nonXML/Put10Del10.xml
  
  Index: Put10Del10.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/multi-user/concurrent/DifferentCollections/nonXML/Put10Del10.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Put10Del10.xml    13 Aug 2002 12:45:04 -0000      1.3
  +++ Put10Del10.xml    31 Oct 2003 13:21:53 -0000      1.4
  @@ -2,20 +2,18 @@
   <!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
   <test>
        <specification>
  -             <abstract>n user, simultaneously, perform the same request
  -             to there own created collections.</abstract>
  -             <pre-Requisite>A collection has been created and defined in 
tprocessor.cmd.</pre-Requisite>
  +             <abstract>n user, simultaneously, perform a PUT and a DELETE on their 
own collection.</abstract>
                <description>
  -             1) Test collection for easy cleanup.
  -             2) Start 2 threads.
  -             3) User one Puts a resource.
  -             4) User two deletes the same resource.
  -             5) Delete all created collections and resources.</description>
  -             <expectedResult>User one should be able to put whilst user 2 deletes 
the newly placed resource.</expectedResult>
  +                     1) Create test collection.
  +                     2) Create a collection for each test user..
  +                     3) Start n threads, each of them making a put and then a 
delete on the same resource.
  +                     5) Delete all created collections and resources.
  +             </description>
  +             <expectedResult>operations are done without problems.</expectedResult>
        </specification>
        <step>
                <request>
  -                     <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName"> MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
  +                     <command 
varUsage="repeatCounter,globalVariableCollection,globalVariableServerName"> MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/testPut10Del10 
HTTP/1.1</command>
                        <header>Translate: f</header>
                        <header>User-Agent: Microsoft Data Access Internet Publishing 
Provider DAV</header>
                        <header>Connection: Keep-Alive</header>
  @@ -25,31 +23,48 @@
                        <header>Content-Language: en</header>
                </response>
        </step>
  +     
  +     <!-- Create a folder for each user -->
  +     <repeater varUsage="globalVariableUsers" varDefinition="userNumber" 
repeatCount="%globalVariableUsers%">
  +             <step>
  +                     <request>
  +                             <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">MKCOL 
/%globalVariableServerName%/%globalVariableCollection%/testPut10Del10/user%userNumber% 
HTTP/1.1</command>
  +                             <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>Content-Language: en</header>
  +                     </response>
  +             </step>
  +     </repeater>
  +     
        <repeater varUsage="globalVariableUsers" varDefinition="userNumber" 
repeatCount="%globalVariableUsers%">
                <thread>
                        <repeater varUsage="globalVariableIterationCount" 
repeatCount="%globalVariableIterationCount%">
                                <step>
                                        <request>
  -                                             <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PUT  
/%globalVariableServerName%/%globalVariableCollection%/test/File%userNumber%.xml 
HTTP/1.1</command>
  +                                             <command 
varUsage="globalVariableCollection,userNumber,globalVariableServerName">PUT  
/%globalVariableServerName%/%globalVariableCollection%/testPut10Del10/user%userNumber%/File%userNumber%.xml
 HTTP/1.1</command>
                                                <header>Translate: f</header>
                                                <header>User-Agent: Microsoft Data 
Access Internet Publishing Provider DAV</header>
                                                <header>Connection: Keep-Alive</header>
                                                <body 
fileReference="../../../../contentDirectory/html.html"/>
                                        </request>
                                        <response>
  -                                             <command>HTTP/1.0 (201,204,409) 
OK</command>
  +                                             <command>HTTP/1.0 (201,204) 
OK</command>
                                                <header>Content-Language: en</header>
                                        </response>
                                </step>
                                <step>
                                        <request>
  -                                             <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">DELETE   
/%globalVariableServerName%/%globalVariableCollection%/test/File%userNumber%.xml 
HTTP/1.1</command>
  +                                             <command 
varUsage="userNumber,globalVariableCollection,globalVariableServerName">DELETE   
/%globalVariableServerName%/%globalVariableCollection%/testPut10Del10/user%userNumber%/File%userNumber%.xml
 HTTP/1.1</command>
                                                <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,404,409)</command>
  +                                             <command>HTTP/1.0 (204,404)</command>
                                                <header>Content-Language: en</header>
                                        </response>
                                </step>
  @@ -59,7 +74,7 @@
        <cleanup>
                <step>
                        <request>
  -                             <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1</command>
  +                             <command 
varUsage="globalVariableCollection,globalVariableServerName"> DELETE 
/%globalVariableServerName%/%globalVariableCollection%/testPut10Del10 
HTTP/1.1</command>
                                <header>Translate: f</header>
                                <header>User-Agent: Microsoft Data Access Internet 
Publishing Provider DAV</header>
                                <header>Connection: Keep-Alive</header>
  
  
  

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

Reply via email to