juergen 2003/10/31 05:22:02
Modified:
testsuite/testsuite/junit/xmltestcases/multi-user/concurrent/DifferentCollections/validXML
Put10Del10.xml
Log:
(fga)corrected error on paths. Updated description.
Revision Changes Path
1.4 +28 -15
jakarta-slide/testsuite/testsuite/junit/xmltestcases/multi-user/concurrent/DifferentCollections/validXML/Put10Del10.xml
Index: Put10Del10.xml
===================================================================
RCS file:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/xmltestcases/multi-user/concurrent/DifferentCollections/validXML/Put10Del10.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Put10Del10.xml 13 Aug 2002 12:45:12 -0000 1.3
+++ Put10Del10.xml 31 Oct 2003 13:22:01 -0000 1.4
@@ -2,21 +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) Create test collection for easy cleanup.
- 2) Start threads.
- 3) Users 1-n Put files, then delete.
- 4)Delete all created collections and resources.</description>
- <expectedResult>All users should be able to successfully carry
- out a PUT command whilst other users are carrying out the same
- function on their own collections.</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>
@@ -26,25 +23,41 @@
<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/validXML.xm1"/>
</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>
@@ -60,7 +73,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]