WWW/2002/ws/ra/edcopies scenario.html,1.20,1.21 scenario.xml,1.20,1.21

Update of /w3ccvs/WWW/2002/ws/ra/edcopies
In directory hutz:/tmp/cvs-serv29889

Modified Files:
	scenario.html scenario.xml 
Log Message:
add some detail to the frag put tests


Index: scenario.xml
===================================================================
RCS file: /w3ccvs/WWW/2002/ws/ra/edcopies/scenario.xml,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- scenario.xml	26 Jan 2011 15:30:29 -0000	1.20
+++ scenario.xml	31 Jan 2011 19:33:55 -0000	1.21
@@ -380,7 +380,7 @@
   &lt;sce:CurrentLocation> <emph>xs:any</emph> &lt;/sce:CurrentLocation>
   &lt;sce:EPR> <emph>wsa:endpoint-reference to this Animal</emph> &lt;/sce:EPR> ?
   &lt;sce:History>
-    &lt;sce:Entry Date="<emph>xs:date</emph>"? ...> <emph>xs:string</emph> &lt;/sce:Entry> *
+    &lt;sce:Entry Date="<emph>xs:date</emph>"? Who="<emph>xs:string</emph>" ...> <emph>xs:string</emph> &lt;/sce:Entry> *
   &lt;sce:/History>
   <emph>xs:any</emph>
 &lt;/sce:Animal> </eg>
@@ -2008,7 +2008,7 @@
      current representation of an Animal/Tag. The endpoint to which
      this test is executed against may be any valid endpoint created
      during the Create test or returned from any other test described
-     in this document.
+     in this document as long as it refers to an Animal resource.
      The use of WS-MetadataExchange is recommeneded to ensure that
      the endpoint supports WS-Transfer.
     </p>
@@ -2058,7 +2058,7 @@
      current representation of an Animal/Tag. The endpoint to which
      this test is executed against may be any valid endpoint created
      during the Create test or returned from any other test described
-     in this document.
+     in this document as long as it refers to an Animal resource.
      The use of WS-MetadataExchange is recommeneded to ensure that
      the endpoint supports WS-Transfer.
     </p>
@@ -2108,7 +2108,8 @@
      This test verifies the ability of a client to update the current
      representation of an Animal/Tag. The endpoint to which this test 
      is executed against may be any valid endpoint created during the 
-     Create test or returned from any other test described in this document. 
+     Create test or returned from any other test described in this document
+     as long as it refers to an Animal resource.
      The use of WS-MetadataExchange is recommeneded to ensure that
      the endpoint supports WS-Transfer.
     </p>
@@ -2155,7 +2156,8 @@
      This test verifies the ability of a client to update a portion of the 
      current representation of an Animal/Tag. The endpoint to which this test 
      is executed against may be any valid endpoint created during the 
-     Create test or returned from any other test described in this document. 
+     Create test or returned from any other test described in this document
+     as long as it refers to an Animal resource.
      The use of WS-MetadataExchange is recommeneded to ensure that
      the endpoint supports WS-Transfer.
     </p>
@@ -2209,6 +2211,201 @@
       Animal/Tag - or with no change if the Put was rejected.
      </p>
     </div3>
+
+    <div3>
+     <head>Variations</head>
+
+     <p>
+      The following variations use this Animal representation as
+      an example guide for what each variation is expected to produce:
+     </p>
+
+     <example>
+      <eg>&lt;sce:Animal xmlns:sce="http://www.w3.org/2011/01/scenario">
+  &lt;sce:ID>http://www.ibm.com/guid/dcf7193cc0a701666e686e687be2a808&lt;/sce:ID>
+  &lt;sce:Name> ... &lt;/sce:Name>
+  &lt;sce:Birthdate> ... &lt;/sce:Birthdate>
+  &lt;sce:Gender> ... &lt;/sce:Gender>
+  &lt;sce:Family> ... &lt;/sce:Family>
+  &lt;sce:Genus> ... &lt;/sce:Genus>
+  &lt;sce:Species> ... &lt;/sce:Species>
+  &lt;sce:CurrentLocation> ... &lt;/sce:CurrentLocation>
+  &lt;sce:History>
+    &lt;sce:Entry> ... &lt;/sce:Entry>
+    &lt;sce:Entry Date="..."> ... &lt;/sce:Entry>
+  &lt;/sce:History>
+&lt;/sce:Animal></eg>
+     </example>
+
+     <p>
+      The following Fragment Put expressions/values are tested:
+     </p>
+
+     <ulist>
+      <item>
+       <p>
+        Mode: Add
+        Expression: / <phrase/>
+        Value: &lt;sce:Animal> ... &lt;/sce:Animal> <phrase/>
+        Result: a fault is generated
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Replace
+        Expression: /sce:Animal or /[0] <phrase/>
+        Value: &lt;sce:Animal> ... &lt;/sce:Animal> <phrase/>
+        Result: entire Animal is replaced
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Add
+        Expression: /*/sce:Entry[0] <phrase/>
+        Value: Date="..." <phrase/>
+        Result: first History/Entry has a Date attribute added
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Add
+        Expression: /*/sce:Entry[1] <phrase/>
+        Value: Date="..." <phrase/>
+        Result: a fault is generated
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Replace
+        Expression: /*/sce:Entry[1]/@Date <phrase/>
+        Value: Date="..." <phrase/>
+        Result: Date attribute is updated
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Replace
+        Expression: /*/sce:Entry[1]/@Date <phrase/>
+        Value: Who="..." <phrase/>
+        Result: Date attribute is erased and Who attribute is added
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Replace
+        Expression: /*/sce:Entry[0]/@Date <phrase/>
+        Value: Who="..." <phrase/>
+        Result: Who attribute is added to the Entry
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Remove
+        Expression: /*/sce:Entry[1]/@Date <phrase/>
+        Value: -
+        Result: Date attribute is removed
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Add
+        Expression: /*/sce:History <phrase/>
+        Value: &lt;sce:Entry> ... &lt;/sce:Entry> <phrase/>
+        Result: Entry is added to History array <phrase/>
+        History array needs to be empty before test starts
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Add
+        Expression: /*/sce:History <phrase/>
+        Value: &lt;sce:Entry> ... &lt;/sce:Entry> <phrase/>
+        Result: Entry is added to the end of the History array <phrase/>
+        History array needs to have atleast one Entry
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Replace
+        Expression: /*/sce:History/Entry[0] <phrase/>
+        Value: &lt;sce:Entry> ... &lt;/sce:Entry> <phrase/>
+        Result: First Entry is replaced
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Replace
+        Expression: /*/sce:Entry[0] <phrase/>
+        Value: &lt;sce:Entry> ... &lt;/sce:Entry> <phrase/>
+        Result: Entry is added to the History array <phrase/>
+        History array needs to be empty before test starts
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: InsertAfter
+        Expression: /*/sce:Entry | /*/sce:Entry[last()]<phrase/>
+        Value: &lt;sce:Entry> ... &lt;/sce:Entry> <phrase/>
+        Result: Entry is added to the end of the History array <phrase/>
+        History array needs to have atleast one Entry
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: InsertBefore
+        Expression: /*/sce:Entry | /*/sce:Entry[1]<phrase/>
+        Value: &lt;sce:Entry> ... &lt;/sce:Entry> <phrase/>
+        Result: Entry is added to the start of the History array <phrase/>
+        History array needs to have atleast one Entry
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Replace
+        Expression: /*/sce:Entry <phrase/>
+        Value: &lt;sce:Entry> ... &lt;/sce:Entry> <phrase/>
+        Result: All old Entries are replace by this one Entry <phrase/>
+        History array needs to have more than one Entry
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Replace
+        Expression: /*/sce:Entry[1] <phrase/>
+        Value: &lt;sce:Entry> ... &lt;/sce:Entry> <phrase/>
+        Result: First Entry is replaced <phrase/>
+        History array needs to have more than one Entry
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Remove
+        Expression: /*/sce:Entry <phrase/>
+        Value: -
+        Result: All Entry elements are removed <phrase/>
+        History array needs to have one Entry
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Remove
+        Expression: /*/sce:Entry <phrase/>
+        Value: -
+        Result: All Entry elements are removed <phrase/>
+        History array needs to have more than one Entry
+       </p>
+      </item>
+      <item>
+       <p>
+        Mode: Remove
+        Expression: /*/sce:Entry[1] <phrase/>
+        Value: -
+        Result: Just first Entry is removed <phrase/>
+        History array needs to have more than one Entry
+       </p>
+      </item>
+     </ulist>
+    </div3>
    </div2>
 
 
@@ -2219,7 +2416,8 @@
      This test verifies the ability of a client to delete an Animal/Tag.
      The endpoint to which this test
      is executed against may be any valid endpoint created during the
-     Create test or returned from any other test described in this document.
+     Create test or returned from any other test described in this document
+     as long as it refers to an Animal resource.
      The use of WS-MetadataExchange is recommeneded to ensure that
      the endpoint supports WS-Transfer.
     </p>

Index: scenario.html
===================================================================
RCS file: /w3ccvs/WWW/2002/ws/ra/edcopies/scenario.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- scenario.html	26 Jan 2011 15:30:29 -0000	1.20
+++ scenario.html	31 Jan 2011 19:33:55 -0000	1.21
@@ -49,58 +49,58 @@
 2 <a href="#notterms">Notations and Terminology</a><br/>
 &nbsp;&nbsp;&nbsp;2.1 <a href="#conventions">Notational Conventions</a><br/>
 3 <a href="#description">Scenario Description</a><br/>
-&nbsp;&nbsp;&nbsp;3.1 <a href="#iddiv2x1x593">Predefined Animals/Tags</a><br/>
+&nbsp;&nbsp;&nbsp;3.1 <a href="#iddiv2x1x596">Predefined Animals/Tags</a><br/>
 &nbsp;&nbsp;&nbsp;3.2 <a href="#Events">Events</a><br/>
-&nbsp;&nbsp;&nbsp;3.3 <a href="#iddiv2x1x683">Structure of Test Sections</a><br/>
-4 <a href="#iddiv1x1x701">WS-MetadataExchange Tests</a><br/>
-&nbsp;&nbsp;&nbsp;4.1 <a href="#iddiv2x1x706">GetWSDL Test</a><br/>
-&nbsp;&nbsp;&nbsp;4.2 <a href="#iddiv2x1x732">Empty GetMetadata Test</a><br/>
-&nbsp;&nbsp;&nbsp;4.3 <a href="#iddiv2x1x758">WSDL GetMetadata Test</a><br/>
[...1369 lines suppressed...]
         </p></div></div></div><div class="div1">
 <h2><a name="wsdl" id="wsdl"/>8 WSDL</h2><div class="div2">
-<h3><a name="iddiv2x1x2384" id="iddiv2x1x2384"/>8.1 Event Source WSDL</h3><p>
+<h3><a name="iddiv2x1x2544" id="iddiv2x1x2544"/>8.1 Event Source WSDL</h3><p>
      TBD
     </p></div><div class="div2">
-<h3><a name="iddiv2x1x2389" id="iddiv2x1x2389"/>8.2 Notification WSDL</h3><p>
+<h3><a name="iddiv2x1x2549" id="iddiv2x1x2549"/>8.2 Notification WSDL</h3><p>
      Available here:
     <a href="http://www.w3.org/2011/01/scenario/scenarioSink.wsdl">http://www.w3.org/2011/01/scenario/scenarioSink.wsdl</a></p></div></div><div class="div1">
 <h2><a name="evd" id="evd"/>9 EventDescriptions</h2><p>
@@ -1598,7 +1725,7 @@
      Yves Lafon (W3C/ERCIM).
    </p></div><div class="div1">
 <h2><a name="References" id="References"/>12 References</h2><div class="div2">
-<h3><a name="iddiv2x1x2428" id="iddiv2x1x2428"/>12.1 Normative References</h3><dl><dt class="label"><a name="RFC2119" id="RFC2119"/>RFC 2119</dt><dd><a href="http://www.ietf.org/rfc/rfc2119.txt"><cite>
+<h3><a name="iddiv2x1x2588" id="iddiv2x1x2588"/>12.1 Normative References</h3><dl><dt class="label"><a name="RFC2119" id="RFC2119"/>RFC 2119</dt><dd><a href="http://www.ietf.org/rfc/rfc2119.txt"><cite>
         Key words for use in RFCs to Indicate Requirement Levels
        </cite></a>
        , S. Bradner, Author.

Received on Monday, 31 January 2011 19:34:02 UTC