[cvs] [Wiki] changed: SyncMLTestCases

Karsten Fourmont karsten at horde.org
Tue Jan 2 11:24:22 PST 2007


karsten  Tue, 02 Jan 2007 11:24:22 -0800

Modified page: http://wiki.horde.org/SyncMLTestCases
New Revision:  1.2
Change log:  improve description

@@ -7,41 +7,42 @@
  Here's how to create a test case:
  
  * Preparations in Horde:
   * create a user "syncmltest" with password "syncmltest" in horde. If the user's already there first delete and then recreate to get a fresh start.
- * create at least one test entry in the app you want to test (kronolith|nag|mnemo|turba). The entry should be named like "server1" and the description should contain an umlaut for charset testing. If your creating a test case for the calendar, you should create at least two: one with an all day event and one with a normal (like 2hour) event.
+ * create at least one test entry in the app you want to test (kronolith|nag|mnemo|turba). The entry should be named like "server..." (e.g. server1) and the description should contain an umlaut for charset testing. If your creating a test case for the calendar, you should create at least two: one with an all day event and one with a normal (like 2hour) event.
  
  * Preparations in the Client (PDA/Outlook/whatever)
- * Create at least one testentry named "client1". The database must only contain this single entry (so you might need to do a backup of your phone first). Other than that the same information as for the test entries in horde above apply (umlauts, all day events).
+ * Create at least one testentry named "client...". The database must only contain this single entry (so you might need to do a backup of your phone first). Other than that the same information as for the test entries in horde above apply (umlauts, all day events).
  
  * Clean /tmp/sync: {{rm/tmp/sync/}}
  
-* Clean Horde !SyncML Data. Login as user syncmltest and go to {{http:[yourinstall]/horde/services/portal/syncml.php}}. Use the button "Delete all !SyncML Data" to delete all data for the syncmltest user. If no such button is there there's no !SyncML data and so no need for deletion. That's fine too of course.
+* Clean Horde !SyncML Data. Login as user syncmltest and go to {{http:[yourinstall]/horde/services/portal/syncml.php}}. Use the button "Delete all !SyncML Data" to delete all data for the syncmltest user. 
  
  * Do a first sync run
  
-* In Horde: rename the "client1" entry to "client1s1" and create a new simple entry named "server2"
+* In Horde: rename the "client..." entry to "client...s1" and create a new simple entry like "server_2"
  
-* In the client: rename "server1" to "server1c1" and create a new simple  entry named "client2"
+* In the client: rename "server..." to "server...c1" and create a new simple  entry named "client_2"
  
  * Do second sync run
  
  * Do a third sync run. This should do nothing
  
-* In the client, delete server2
+* In the client, delete server_2
  
-* in the server, delete client2
+* in the server, delete client_2
  
  * do a fourth sync run
  
  * do a fifth sync run. This should do nothing.
  
-* The test itself is now finished. The database should now have two entries: client1s1 and server1c1
+* The test itself is now finished. Create an archive of all the stuff in /tmp/sync and mail it to karsten --at-- horde.org to verify the testcase and addition to cvs.
  
-* If your phone uses wbxml this must be converted to xml first: in /tmp/sync do a  {{for a in *.wbxml; do wbxml2xml -m 0 -o `basename $a .wbxml`.xml $a; done }}
+For developers:
  
-* copy all *.xml in /tmp/sync into a directory under framework/syncml/tests with name testcase_[descriptionoftestcase]
+* If the phone uses wbxml this must be converted to xml first: {{for a in *.wbxml; do wbxml2xml -m 0 -o `basename $a .wbxml`.xml $a; done }}
  
-* in framework/syncml/tests do a {{./testsync.php --dir=testcase_[descriptionoftestcase]}} to run the test. If it's not directly working, please notify the mailing list so we can make tha appropriate fixed for your phone.
+* all *.xml go into a directory under framework/syncml/tests with name testcase_[descriptionoftestcase]
  
+* in framework/syncml/tests do a {{./testsync.php --dir=testcase_[descriptionoftestcase]}} to run the test. 
  
  


More information about the cvs mailing list