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 pn...@apache.org on 2003/09/15 16:25:01 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/multi-user BindUnbindDiffSource.xml BindUnbindSameSource.xml RebindDiffSource.xml RebindSameSource.xml
pnever 2003/09/15 07:25:01
Added: testsuite/testsuite/junit/xmltestcases/BIND/multi-user
BindUnbindDiffSource.xml BindUnbindSameSource.xml
RebindDiffSource.xml RebindSameSource.xml
Log:
MU testcases for BIND
Revision Changes Path
1.1 jakarta-slide/testsuite/testsuite/junit/xmltestcases/BIND/multi-user/BindUnbindDiffSource.xml
Index: BindUnbindDiffSource.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Multiple threads, simultaneously, perform the same requests.</abstract>
<pre-Requisite/>
<description>
1) Start N threads
2) Create root collection test
2) Create shared collection test/main
3) Create per-thread collections test/user_*
4) Each thread performs M times a sequence of BIND/UNBIND operations on same collection
but with different binding names and source collections.
So, for each thread n:
- BIND test/main (name_n -> test/user_n)
- UNBIND test/main (name_n)
5) Clean-up.
</description>
<expectedResult/>
</specification>
<!-- Prepare -->
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/main HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<repeater varUsage="globalVariableUsers" varDefinition="userNumber" repeatCount="%globalVariableUsers%">
<step>
<request>
<command varUsage="userNumber,globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/user_%userNumber% HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
</repeater>
<!-- Run -->
<repeater varUsage="globalVariableUsers" varDefinition="userNumber" repeatCount="%globalVariableUsers%">
<thread>
<repeater varUsage="globalVariableIterationCount" repeatCount="%globalVariableIterationCount%">
<step>
<request>
<command varUsage="userNumber,globalVariableCollection,globalVariableServerName">
BIND /%globalVariableServerName%/%globalVariableCollection%/test/main HTTP/1.1
</command>
<header>Overwrite: T</header>
<body varUsage="userNumber,globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
<bind>
<segment>name_%userNumber%</segment>
<href>/%globalVariableServerName%/%globalVariableCollection%/test/user_%userNumber%</href>
</bind>
]]></body>
</request>
<response>
<command>HTTP/1.1 (201,204,409)</command>
</response>
</step>
<step>
<request>
<command varUsage="userNumber,globalVariableCollection,globalVariableServerName">
UNBIND /%globalVariableServerName%/%globalVariableCollection%/test/main HTTP/1.1
</command>
<body varUsage="userNumber,globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
<unbind>
<segment>name_%userNumber%</segment>
</unbind>
]]></body>
</request>
<response>
<command>HTTP/1.1 (200,409)</command>
</response>
</step>
</repeater>
</thread>
</repeater>
<cleanup>
<step>
<request>
<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">
DELETE /%globalVariableServerName%/%globalVariableCollection%/test 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/BIND/multi-user/BindUnbindSameSource.xml
Index: BindUnbindSameSource.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Multiple threads, simultaneously, perform the same requests.</abstract>
<pre-Requisite/>
<description>
1) Start N threads
2) Create root collection test
2) Create shared collection test/main
3) Create shared source collection test/shared
4) Each thread performs M times a sequence of BIND/UNBIND operations on same collection
and with same binding names and source collections.
So, for each thread n:
- BIND test/main (name -> test/shared)
- UNBIND test/main (name)
5) Clean-up.
</description>
<expectedResult/>
</specification>
<!-- Prepare -->
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/main HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/shared HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<!-- Run -->
<repeater varUsage="globalVariableUsers" repeatCount="%globalVariableUsers%">
<thread>
<repeater varUsage="globalVariableIterationCount" repeatCount="%globalVariableIterationCount%">
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
BIND /%globalVariableServerName%/%globalVariableCollection%/test/main HTTP/1.1
</command>
<header>Overwrite: T</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
<bind>
<segment>name</segment>
<href>/%globalVariableServerName%/%globalVariableCollection%/test/shared</href>
</bind>
]]></body>
</request>
<response>
<command>HTTP/1.1 (201,204,409)</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
UNBIND /%globalVariableServerName%/%globalVariableCollection%/test/main HTTP/1.1
</command>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
<unbind>
<segment>name</segment>
</unbind>
]]></body>
</request>
<response>
<command>HTTP/1.1 (200,404,409)</command>
</response>
</step>
</repeater>
</thread>
</repeater>
<cleanup>
<step>
<request>
<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">
DELETE /%globalVariableServerName%/%globalVariableCollection%/test 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/BIND/multi-user/RebindDiffSource.xml
Index: RebindDiffSource.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Multiple threads, simultaneously, perform the same requests.</abstract>
<pre-Requisite/>
<description>
1) Start N threads
2) Create root collection test
2) Create shared collections test/left and test/right
3) Create per-thread collections test/left/user_*
4) Each thread performs M times a sequence of REBIND/REBIND operations on same collection
but with different binding names and source collections.
So, for each thread n:
- REBIND test/right (user_n -> test/left/user_n)
- REBIND test/left (user_n -> test/right/user_n)
5) Clean-up.
</description>
<expectedResult/>
</specification>
<!-- Prepare -->
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/left HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/right HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<repeater varUsage="globalVariableUsers" varDefinition="userNumber" repeatCount="%globalVariableUsers%">
<step>
<request>
<command varUsage="userNumber,globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/left/user_%userNumber% HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.1 201 Created</command>
</response>
</step>
</repeater>
<!-- Run -->
<repeater varUsage="globalVariableUsers" varDefinition="userNumber" repeatCount="%globalVariableUsers%">
<thread>
<repeater varUsage="globalVariableIterationCount" repeatCount="%globalVariableIterationCount%">
<step>
<request>
<command varUsage="userNumber,globalVariableCollection,globalVariableServerName">
REBIND /%globalVariableServerName%/%globalVariableCollection%/test/right HTTP/1.1
</command>
<header>Overwrite: T</header>
<body varUsage="userNumber,globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
<rebind>
<segment>user_%userNumber%</segment>
<href>/%globalVariableServerName%/%globalVariableCollection%/test/left/user_%userNumber%</href>
</rebind>
]]></body>
</request>
<response>
<command>HTTP/1.1 (201,204,409)</command>
</response>
</step>
<step>
<request>
<command varUsage="userNumber,globalVariableCollection,globalVariableServerName">
REBIND /%globalVariableServerName%/%globalVariableCollection%/test/left HTTP/1.1
</command>
<header>Overwrite: T</header>
<body varUsage="userNumber,globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
<rebind>
<segment>user_%userNumber%</segment>
<href>/%globalVariableServerName%/%globalVariableCollection%/test/right/user_%userNumber%</href>
</rebind>
]]></body>
</request>
<response>
<command>HTTP/1.1 (201,204,409)</command>
</response>
</step>
</repeater>
</thread>
</repeater>
<cleanup>
<step>
<request>
<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">
DELETE /%globalVariableServerName%/%globalVariableCollection%/test 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/BIND/multi-user/RebindSameSource.xml
Index: RebindSameSource.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test SYSTEM "../../../Tprocessor.dtd">
<test>
<specification>
<abstract>Multiple threads, simultaneously, perform the same requests.</abstract>
<pre-Requisite/>
<description>
1) Start N threads
2) Create root collection test
2) Create shared collections test/left and test/right
3) Create shared collection test/left/shared
4) Each thread performs M times a sequence of REBIND/REBIND operations on same collection
and source collection.
So, for each thread n:
- REBIND test/right (shared -> test/left/shared)
- REBIND test/left (shared -> test/right/shared)
5) Clean-up.
</description>
<expectedResult/>
</specification>
<!-- Prepare -->
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/left HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/right HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
MKCOL /%globalVariableServerName%/%globalVariableCollection%/test/left/shared HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 201 Created</command>
</response>
</step>
<!-- Run -->
<repeater varUsage="globalVariableUsers" repeatCount="%globalVariableUsers%">
<thread>
<repeater varUsage="globalVariableIterationCount" repeatCount="%globalVariableIterationCount%">
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
REBIND /%globalVariableServerName%/%globalVariableCollection%/test/right HTTP/1.1
</command>
<header>Overwrite: T</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
<rebind>
<segment>shared</segment>
<href>/%globalVariableServerName%/%globalVariableCollection%/test/left/shared</href>
</rebind>
]]></body>
</request>
<response>
<command>HTTP/1.1 (201,204,404,409)</command>
</response>
</step>
<step>
<request>
<command varUsage="globalVariableCollection,globalVariableServerName">
REBIND /%globalVariableServerName%/%globalVariableCollection%/test/left HTTP/1.1
</command>
<header>Overwrite: T</header>
<body varUsage="globalVariableCollection,globalVariableServerName"><![CDATA[<?xml version="1.0" ?>
<rebind>
<segment>shared</segment>
<href>/%globalVariableServerName%/%globalVariableCollection%/test/right/shared</href>
</rebind>
]]></body>
</request>
<response>
<command>HTTP/1.1 (201,204,404,409)</command>
</response>
</step>
</repeater>
</thread>
</repeater>
<cleanup>
<step>
<request>
<command varUsage="repeatCounter,globalVariableCollection,globalVariableServerName">
DELETE /%globalVariableServerName%/%globalVariableCollection%/test HTTP/1.1
</command>
</request>
<response>
<command>HTTP/1.0 204 No Content</command>
</response>
</step>
</cleanup>
</test>