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 oz...@apache.org on 2004/11/24 00:28:40 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/extra/multi-user/getPut getPutFolder.xml
ozeigermann 2004/11/23 15:28:40
Added: testsuite/testsuite/junit/xmltestcases/functional/extra/multi-user/getPut
getPutFolder.xml
Log:
Added testcase that imitates uploading and deleting in a folder while
generting HTML representation with a GET of that folder
Revision Changes Path
1.1 jakarta-slide/testsuite/testsuite/junit/xmltestcases/functional/extra/multi-user/getPut/getPutFolder.xml
Index: getPutFolder.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: puts and deletes in a that folder to modify it
4)thread 2: gets an HTML representation of that folder to read while writing
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">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">DELETE %globalVariableServerName%/%globalVariableCollection%/testcoll/allclasses-frame.html HTTP/1.1</command>
</request>
<response>
<command>HTTP/1.0 (201,204,404,409)</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 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 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: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org