ozeigermann 2004/11/20 07:13:31
Added:
testsuite/testsuite/junit/xmltestcases/functional/extra/multi-user/getPut
getPutSame.xml
Log:
Added testcase that imitates random get,put,delete access to one and the same
resource
Revision Changes Path
1.1
jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/extra/multi-user/getPut/getPutSame.xml
Index: getPutSame.xml
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test SYSTEM "../../../../../Tprocessor.dtd">
<test>
<specification>
<abstract>n user, simultaneously, perform the same request
to their own created collections. Most requests are reads which
simulates a real life scenario</abstract>
<pre-Requisite>A collection has been created and defined in
tprocessor.cmd.</pre-Requisite>
<description>
1)Create a collection called Test.
2)Start 2 threads for user 1..n
2)thread 1: gets,puts,gets,deletes, and gets a files in a
directory
4)thread 2: gets,puts, ans gets a files in a directory
5)Delete all created collections and resources.
</description>
<expectedResult>Status code returned by Copy Method (in each thread) must
be 201 Created </expectedResult>
</specification>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">MKCOL
%globalVariableServerName%/%globalVariableCollection%/testcoll
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<repeater varUsage="globalVariableUsers" varDefinition="userNumber"
repeatCount="%globalVariableUsers%">
<thread>
<repeater varUsage="globalVariableIterationCount"
repeatCount="%globalVariableIterationCount%">
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">GET
%globalVariableServerName%/%globalVariableCollection%/testcoll/allclasses-frame.html
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 (200,404)</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">PUT
%globalVariableServerName%/%globalVariableCollection%/testcoll/allclasses-frame.html
HTTP/1.1</command>
<body fileReference="../../../../contentDirectory/html.html" />
</request>
<response>
<command>HTTP/1.0 (201,204,404,409)</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">GET
%globalVariableServerName%/%globalVariableCollection%/testcoll/allclasses-frame.html
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 (200,404)</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">DELETE
%globalVariableServerName%/%globalVariableCollection%/testcoll/allclasses-frame.html
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 (201,204,404,409)</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">GET
%globalVariableServerName%/%globalVariableCollection%/testcoll/allclasses-frame.html
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 (200,404)</command>
</response>
</step>
</repeater>
</thread>
</repeater>
<repeater varUsage="globalVariableUsers" varDefinition="userNumber"
repeatCount="%globalVariableUsers%">
<thread>
<repeater varUsage="globalVariableIterationCount"
repeatCount="%globalVariableIterationCount%">
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">GET
%globalVariableServerName%/%globalVariableCollection%/testcoll/allclasses-frame.html
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 (200,404)</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">PUT
%globalVariableServerName%/%globalVariableCollection%/testcoll/allclasses-frame.html
HTTP/1.1</command>
<body fileReference="../../../../contentDirectory/html.html" />
</request>
<response>
<command>HTTP/1.0 (201,204,404,409)</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">GET
%globalVariableServerName%/%globalVariableCollection%/testcoll/allclasses-frame.html
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 (200,404)</command>
</response>
</step>
</repeater>
</thread>
</repeater>
<cleanup>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">DELETE
%globalVariableServerName%/%globalVariableCollection%/testcoll/allclasses-frame.html
HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 404</command>
</response>
</step>
<step>
<request>
<command
varUsage="globalVariableCollection,globalVariableServerName">DELETE
%globalVariableServerName%/%globalVariableCollection%/testcoll
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]