[CalendarServer-changes] [10176] CalDAVTester/trunk/README.txt

source_changes at macosforge.org source_changes at macosforge.org
Mon Dec 17 09:33:35 PST 2012


Revision: 10176
          http://trac.calendarserver.org//changeset/10176
Author:   cdaboo at apple.com
Date:     2012-12-17 09:33:34 -0800 (Mon, 17 Dec 2012)
Log Message:
-----------
Update documentation to account for recent changes.

Modified Paths:
--------------
    CalDAVTester/trunk/README.txt

Modified: CalDAVTester/trunk/README.txt
===================================================================
--- CalDAVTester/trunk/README.txt	2012-12-14 18:54:09 UTC (rev 10175)
+++ CalDAVTester/trunk/README.txt	2012-12-17 17:33:34 UTC (rev 10176)
@@ -327,8 +327,21 @@
 			if present, this stores the text representation of an XML
 			element extracted from the response body in a named variable
 			which can be used in subsequent requests.
+			
+		ELEMENT <grabcalproperty>
+			if present, this stores a calendar property value in a named
+			variable which can be used in subsequent request. The syntax for
+			<name> element is component/propname (e.g. "VEVENT/SUMMARY").
 
+		ELEMENT <grabcalparameter>
+			if present, this stores a calendar parameter value in a named
+			variable which can be used in subsequent request. The syntax for
+			<name> element is component/propname/paramname$propvalue where
+			the option $propvalue allows a specific property to be selected 
+			(e.g. "VEVENT/DTSTART/TZID", or
+			"VEVENT/ATTENDEE/PARTSTAT$mailto:user01 at example.com").
 
+
 VERIFICATION Methods
 
 acltems:
@@ -481,6 +494,41 @@
 		</arg>
 	</verify>
 	
+jsonPointerMatch:
+	Compares the response with a JSON pointer and returns TRUE if there
+	is a match, otherwise False.
+	The pointer is the absolute pointer from the root down. A JSON object's
+	string value can be checked by append "~$" and the string value to test
+	to the JSON pointer value. A single "." can be used as a reference-token
+	in the JSON pointer to match against any member or array item at that
+	poisition in the document.
+	
+	Argument: 'exists'
+		JSON pointer for a JSON item to check the presence of
+		in the response.
+	
+	Argument: 'notexists'
+		JSON pointer for a JSON item to check the absence of
+		in the response.
+	
+	Example:
+	
+	<verify>
+		<callback>jsonPointerMatch</callback>
+		<arg>
+			<name>exists</name>
+			<value>/responses/response</value>
+		</arg>
+		<arg>
+			<name>notexists</name>
+			<value>/responses/response/name~$ABC</value>
+		</arg>
+		<arg>
+			<name>exists</name>
+			<value>/responses/./name~$XYZ</value>
+		</arg>
+	</verify>
+	
 multistatusItems:
 	Performs a check of multi-status response body and checks to see
 	what hrefs were returned and whether those had a good (2xx) or bad
@@ -691,7 +739,7 @@
 	</verify>
 	
 xmlElementMatch:
-	Compares the response with an XML data file and returns TRUE if there
+	Compares the response with an XML path and returns TRUE if there
 	is a match, otherwise False.
 	The path is the absolute xpath from the root element down. Attribute, attribute-value
 	and text contents tests of the matched element can be done using:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20121217/1eddca10/attachment.html>


More information about the calendarserver-changes mailing list