[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] syncml test/head_pre.php test/pre_group15.php t...
From: |
Johan Gunnarsson |
Subject: |
[Phpgroupware-cvs] syncml test/head_pre.php test/pre_group15.php t... |
Date: |
Mon, 20 Aug 2007 18:51:57 +0000 |
CVSROOT: /sources/phpgroupware
Module name: syncml
Changes by: Johan Gunnarsson <johang> 07/08/20 18:51:57
Modified files:
test : head_pre.php pre_group15.php pre_group2.php
pre_group3.php pre_group4.php pre_group5.php
Added files:
docs : README.txt TODO.txt
syncml-oma-scts-test-report.html
Removed files:
test : all_tests.php
Log message:
Some updates to the test pre-conditions files and added README, TODO
and a test report showing all tests passed.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/syncml/docs/README.txt?cvsroot=phpgroupware&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/syncml/docs/TODO.txt?cvsroot=phpgroupware&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/syncml/docs/syncml-oma-scts-test-report.html?cvsroot=phpgroupware&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/syncml/test/head_pre.php?cvsroot=phpgroupware&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/syncml/test/pre_group15.php?cvsroot=phpgroupware&r1=1.1.1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/syncml/test/pre_group2.php?cvsroot=phpgroupware&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/syncml/test/pre_group3.php?cvsroot=phpgroupware&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/syncml/test/pre_group4.php?cvsroot=phpgroupware&r1=1.1.1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/syncml/test/pre_group5.php?cvsroot=phpgroupware&r1=1.1.1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/syncml/test/all_tests.php?cvsroot=phpgroupware&r1=1.1.1.1&r2=0
Patches:
Index: test/head_pre.php
===================================================================
RCS file: /sources/phpgroupware/syncml/test/head_pre.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- test/head_pre.php 30 Jul 2007 21:07:50 -0000 1.2
+++ test/head_pre.php 20 Aug 2007 18:51:57 -0000 1.3
@@ -15,7 +15,8 @@
$ipc_manager = CreateObject('phpgwapi.ipc_manager');
- $ipc = $ipc_manager->getipc('notes');
+ $ipc_notes = $ipc_manager->getipc('notes');
+ $ipc_addressbook = $ipc_manager->getipc('addressbook');
$somappings = new syncml_somappings();
?>
Index: test/pre_group15.php
===================================================================
RCS file: /sources/phpgroupware/syncml/test/pre_group15.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -b -r1.1.1.1 -r1.2
--- test/pre_group15.php 30 Jul 2007 13:04:38 -0000 1.1.1.1
+++ test/pre_group15.php 20 Aug 2007 18:51:57 -0000 1.2
@@ -1,9 +1,9 @@
<?php
require 'head_pre.php';
+ // add a large object
$ipc->adddata(
- str_repeat('0123456789', ceil($_SERVER['argv'][1]/10)),
- 'text/plain');
+ str_repeat('0123456789', ceil($_SERVER['argv'][1]/10)),
'text/plain');
?>
It is safe to igore above errors.
Index: test/pre_group2.php
===================================================================
RCS file: /sources/phpgroupware/syncml/test/pre_group2.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- test/pre_group2.php 19 Aug 2007 14:10:10 -0000 1.2
+++ test/pre_group2.php 20 Aug 2007 18:51:57 -0000 1.3
@@ -5,7 +5,16 @@
$somappings->delete_mapping(NULL, NULL, NULL, NULL);
// empty database
- $GLOBALS['phpgw']->db->query('TRUNCATE TABLE phpgw_notes');
+
+ foreach($ipc_notes->getidlist() as $id)
+ {
+ $ipc_notes->removedata($id);
+ }
+
+ foreach($ipc_addressbook->getidlist() as $id)
+ {
+ $ipc_addressbook->removedata($id);
+ }
?>
It is safe to igore above errors.
Index: test/pre_group3.php
===================================================================
RCS file: /sources/phpgroupware/syncml/test/pre_group3.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- test/pre_group3.php 19 Aug 2007 14:10:10 -0000 1.2
+++ test/pre_group3.php 20 Aug 2007 18:51:57 -0000 1.3
@@ -5,7 +5,16 @@
$somappings->delete_mapping(NULL, NULL, NULL, NULL);
// empty database
- $GLOBALS['phpgw']->db->query('TRUNCATE TABLE phpgw_notes');
+
+ foreach($ipc_notes->getidlist() as $id)
+ {
+ $ipc_notes->removedata($id);
+ }
+
+ foreach($ipc_addressbook->getidlist() as $id)
+ {
+ $ipc_addressbook->removedata($id);
+ }
?>
It is safe to igore above errors.
Index: test/pre_group4.php
===================================================================
RCS file: /sources/phpgroupware/syncml/test/pre_group4.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -b -r1.1.1.1 -r1.2
--- test/pre_group4.php 30 Jul 2007 13:04:38 -0000 1.1.1.1
+++ test/pre_group4.php 20 Aug 2007 18:51:57 -0000 1.2
@@ -5,19 +5,21 @@
$somappings->update_mapping(NULL, $_SERVER['argv'][1], NULL, 1);
// delete item
+
$mappings_to_be_deleted = $somappings->get_mapping(
NULL, $_SERVER['argv'][2], NULL, NULL);
+
foreach($mappings_to_be_deleted as $x)
{
- $ipc->removedata($x['guid']);
+ $ipc_notes->removedata($x['guid']);
}
- // $somappings->delete_mapping(NULL, $_SERVER['argv'][2], NULL);
// add 4 items
- $ipc->adddata('dummy 1', 'text/plain');
- $ipc->adddata('dummy 2', 'text/plain');
- $ipc->adddata('dummy 3', 'text/plain');
- $ipc->adddata('dummy 4', 'text/plain');
+
+ $ipc_notes->adddata('dummy 1', 'text/plain');
+ $ipc_notes->adddata('dummy 2', 'text/plain');
+ $ipc_notes->adddata('dummy 3', 'text/plain');
+ $ipc_notes->adddata('dummy 4', 'text/plain');
?>
-It is safe to igore above errors.
+It is safe to igore above errors
Index: test/pre_group5.php
===================================================================
RCS file: /sources/phpgroupware/syncml/test/pre_group5.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -b -r1.1.1.1 -r1.2
--- test/pre_group5.php 30 Jul 2007 13:04:38 -0000 1.1.1.1
+++ test/pre_group5.php 20 Aug 2007 18:51:57 -0000 1.2
@@ -5,18 +5,14 @@
$somappings->update_mapping(NULL, $_SERVER['argv'][1], NULL, 1);
// delete item
+
$mappings_to_be_deleted = $somappings->get_mapping(
NULL, $_SERVER['argv'][2], NULL, NULL);
+
foreach($mappings_to_be_deleted as $x)
{
- $ipc->removedata($x['guid']);
+ $ipc_notes->removedata($x['guid']);
}
- // $somappings->delete_mapping(NULL, $_SERVER['argv'][2], NULL);
-
- $ipc->adddata('X: ' . rand(), 'text/plain');
- $ipc->adddata('X: ' . rand(), 'text/plain');
- $ipc->adddata('X: ' . rand(), 'text/plain');
- $ipc->adddata('X: ' . rand(), 'text/plain');
?>
It is safe to igore above errors.
Index: docs/README.txt
===================================================================
RCS file: docs/README.txt
diff -N docs/README.txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ docs/README.txt 20 Aug 2007 18:51:56 -0000 1.1
@@ -0,0 +1,107 @@
+OVERVIEW
+
+This module allows users of phpGroupware to access their data using the SyncML
+protocol developed by Open Mobile Alliance. Its main purpose is to enable users
+to keep copies of a data set synchronized on multiple devices.
+
+This module is the result of Johan Gunnarsson's participation in Google Summer
+of Code(tm) 2007 under the mentorship of Dave Hall.
+
+GLOSSARY
+
+Source
+ A phpGroupware module with a compatible IPC interface.
+
+Database
+ A user<->source relation. Must have a unique name ("uri"). Each user
+ must have one database per source her/she wants to be able to
synchronize.
+
+Channel
+ A client<->database relation. Each client synchronizing a database gets
+ its own channel.
+
+SETUP MODULE
+
+Run the regular phpGroupware Application Setup to setup database tables.
+
+SETUP SOURCES
+
+Source modules must have a compatible IPC class. The required methods are:
+
+* addData
+* getData
+* getIdList
+* removeData
+* replaceData
+
+Every method must function as described in class.ipc_.inc.php.
+
+To make the SyncML module aware of the source, insert a row looking something
+like this in the syncml_sources table.
+
+-- SQL query --
+INSERT INTO `phpgw_syncml_sources` ( `name` , `modulename` , `mimetype`,
+ `mimeversion` )
+VALUES ( 'the notes app', 'notes', 'text/plain', '');
+---------------
+
+Field Description
+----- -----------
+modulename Name of module, for example "notes" if you want to add the notes
+ module as source.
+name Descriptive name of the source to be displayed in UIs and similar.
+mimetype The perfered mime type to be used when exporting data from the
+ application. Must be supported by IPC interface.
+mimeversion The perfered mime type verision to be used when exporting data from
+ the application. Must be supported by IPC interface. Leave blank
+ it not supply version.
+
+The only modules known to work correctly as sources (as of Aug 20) is Notes
+and Addressbook.
+
+SETUP DATABASES
+
+Each user must have its own databases connected to the source. It's done by
+inserting a rows in syncml_databases.
+
+-- SQL query --
+INSERT INTO `phpgw_syncml_databases` ( `database_uri`,
+ `source_id`, `credential_required`, `credential_hash`, `account_id`)
+VALUES('my-notes-collection', 1, 0, '', 3);
+---------------
+
+Field Description
+----- -----------
+database_uri Name of the database clients use to identify it.
+source_id ID of source to connect this database to. Sources are
+ specificed in syncml_sources table.
+credential_required Integer indicating if this database requires credentials.
+ This is not supported yet.
+credential_hash Hash of credentials used to authenticate users if this
+ database requires credentials. Value of this field is
+ calculated using base64(md5(username ":" password)).
+account_id ID of user account this database is connected to.
+
+RUN
+
+When it's propely setup (see sections above) it should run. It supports SyncML
+versions up to 1.1.2. Support for SyncML 1.2 is planned but not yet
+implemented.
+
+There is no support for WBXML right now. This is also planned.
+
+URI to SyncML server is http://host/path/to/phpgw/syncml/syncml.php.
+
+TIPS
+
+* When using addressbook as source application error level NOTICE has to be
+ off.
+
+AUTHOR
+
+Johan Gunnarsson <address@hidden>
+
+CREDTIS
+
+Thanks to my mentor Dave Hall and Google.
+
Index: docs/TODO.txt
===================================================================
RCS file: docs/TODO.txt
diff -N docs/TODO.txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ docs/TODO.txt 20 Aug 2007 18:51:56 -0000 1.1
@@ -0,0 +1,16 @@
+TODO
+
+Stuff to do in the SyncML module.
+
+* WBXML support.
+* SyncML 1.2 support.
+* Per-database authentication.
+* Logging and debugging tools.
+* HTML UI.
+ * Add, remove, edit sources.
+ * Add, remove, edit databases.
+ * Handle conflicts.
+* Better conflict handling
+ * Merging.
+ * HTML UI.
+
Index: docs/syncml-oma-scts-test-report.html
===================================================================
RCS file: docs/syncml-oma-scts-test-report.html
diff -N docs/syncml-oma-scts-test-report.html
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ docs/syncml-oma-scts-test-report.html 20 Aug 2007 18:51:56 -0000
1.1
@@ -0,0 +1 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="SyncML"> <META NAME="GENERATOR"
CONTENT="Mozilla/4.07 [en] (WinNT; I) [Netscape]">
<TITLE>Report</TITLE></HEAD><BODY><B><FONT SIZE=+2><FONT
FACE="Arial,Helvetica">SyncML Conformance Test Suite
Report</FONT></FONT></B><BR><FONT FACE="Arial,Helvetica"></FONT> <TABLE
WIDTH="80%" ><TR><TD WIDTH="20%"><B><FONT FACE="Arial,Helvetica">SCTS
Version</FONT></B></TD><TD><FONT
FACE="Arial,Helvetica">3.1.2</FONT></TD></TR><TR><TD><B><FONT
FACE="Arial,Helvetica">Report Date</FONT></B></TD><TD><FONT
FACE="Arial,Helvetica">08/20/07 20:49:23</FONT></TD></TR></TABLE><FONT
FACE="Arial,Helvetica"></FONT><B><FONT
FACE="Arial,Helvetica"></FONT></B><P><B><FONT FACE="Arial,Helvetica"><FONT
SIZE=+1>Test Object Details</FONT></FONT></B><BR><FONT
FACE="Arial,Helvetica"></FONT> <TABLE WIDTH="80%" ><TR><TD
WIDTH="20%"><B><FONT FACE="Arial,Helvetica">Type</FONT></B></TD><TD><FONT
FACE="Arial,Helvetica">Server</FONT></TD></TR><TR><TD WIDTH="20%"><B><FONT
FACE="Arial,Helvetica">Manufacturer</FONT></B></TD><TD><FONT
FACE="Arial,Helvetica"></FONT></TD></TR><TR><TD><B><FONT
FACE="Arial,Helvetica">Product Name</FONT></B></TD><TD><FONT
FACE="Arial,Helvetica">phpGroupware SyncML module,
0.9.17.002</FONT></TD></TR><TR><TD><B><FONT FACE="Arial,Helvetica">Contact
Person</FONT></B></TD><TD><FONT FACE="Arial,Helvetica">Johan Gunnarsson,
address@hidden</FONT></TD></TR></TABLE><BR><P><B><FONT
FACE="Arial,Helvetica"><FONT SIZE=+1>Test Results</FONT></FONT></B><BR><FONT
FACE="Arial,Helvetica"></FONT> <TABLE BORDER WIDTH="80%" ><TR><TD
WIDTH="15%"><B><FONT FACE="Arial,Helvetica">Test Case ID</FONT></B></TD><TD
WIDTH="15%"><B><FONT FACE="Arial,Helvetica">Seq. Time</FONT></B></TD><TD
WIDTH="12%"><B><FONT FACE="Arial,Helvetica">Transport</FONT></B></TD><TD
WIDTH="12%"><B><FONT FACE="Arial,Helvetica">Protocol</FONT></B></TD><TD
ALIGN=LEFT><B><FONT FACE="Arial,Helvetica">Description</FONT></B></TD><TD
WIDTH="13%"><B><FONT FACE="Arial,Helvetica">Result</FONT></B></TD></TR><TR><TD
WIDTH="15%"><FONT FACE="Arial,Helvetica">0101S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object implements 'Server Layer
Authentication'. SCTS sends SyncHdr with wrong credentials.</FONT></TD><TD
WIDTH="13%"><FONT FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD
WIDTH="15%"><FONT FACE="Arial,Helvetica">0201S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184828Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object implements 'Server Layer
Authentication'. SCTS sends SyncHdr with no credentials.</FONT></TD><TD
WIDTH="13%"><FONT FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD
WIDTH="15%"><FONT FACE="Arial,Helvetica">0202S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184828Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object accepts the credentials sent
and proceeds with the Sync Session.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0203S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184828Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object responds with Results for a
Get on device information.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0204S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184828Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object responds with Alerts for all
the databases alerted by SCTS.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0205S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184828Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object sends valid Sync
Tags.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0301S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object's and SCTS' Sync Anchors
match by sending/receiving Alerts for normal two way sync.</FONT></TD><TD
WIDTH="13%"><FONT FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD
WIDTH="15%"><FONT FACE="Arial,Helvetica">0302S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object handles Adds
correctly.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0401S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object sends valid
Adds.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0402S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object handles a Replace on a data
item added by SCTS.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0403S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object sends a valid Replace on a
data item added by SCTS.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0404S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object handles a Delete on a data
item added by SCTS.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0405S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object sends a valid Delete on a
data item added by SCTS.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0501S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object handles a Replace on a data
item added by it.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0502S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object sends a valid Replace on a
data item added by it.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0503S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object handles a Delete on a data
item added by it.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0504S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object sends a valid Delete on a
data item added by it.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0505S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object handles a Replace on a
non-existant data item as an Add.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0601S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the databases are in Sync by forcing a slow
sync(SCTS does not send any modifications).</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0701S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object responds with an appropriate
status code for a Delete with a nonexistent target/source.</FONT></TD><TD
WIDTH="13%"><FONT FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD
WIDTH="15%"><FONT FACE="Arial,Helvetica">0801S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object handles sync without
seperate intialization.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0901S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object can handle an Add with
multiple items.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0902S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object can handle a Replace with
multiple items.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0903S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object can handle a Delete with
multiple items.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">0904S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object responds with individual
'Status' for each item in a Replace (One item is non-existant).</FONT></TD><TD
WIDTH="13%"><FONT FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD
WIDTH="15%"><FONT FACE="Arial,Helvetica">0905S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object responds with individual
'Status' for each item in a Delete (One item is non-existant).</FONT></TD><TD
WIDTH="13%"><FONT FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD
WIDTH="15%"><FONT FACE="Arial,Helvetica">1001S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object can handle multiple
messages.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">1101S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object determines from the DevInfo
whether or not NumberOfChanges is supported, and if it sends proper
NumberOfChanges information to SCTS.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">1201S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184445Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object determines from the DevInfo
whether or not NumberOfChanges is supported, and if it sends proper
NumberOfChanges information to SCTS.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">1301S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184852Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object determines from the DevInfo
whether or not Large Objects are supported, and if it properly declares the
MaxObjSize and can properly receive Large Objects.</FONT></TD><TD
WIDTH="13%"><FONT FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD
WIDTH="15%"><FONT FACE="Arial,Helvetica">1401S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184852Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object determines from the DevInfo
whether or not Large Objects are supported.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">1501S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184852Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object determines from the DevInfo
whether or not Large Objects are supported, and if it properly declares the
MaxObjSize and can properly send Large Objects.</FONT></TD><TD
WIDTH="13%"><FONT FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD
WIDTH="15%"><FONT FACE="Arial,Helvetica">1601S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184852Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object correctly handles Large
Objects with incorrect size.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">1602S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184852Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object correctly handles large
objects that are not completely sent.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR><TR><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">1701S</FONT></TD><TD WIDTH="15%"><FONT
FACE="Arial,Helvetica">20070820T184852Z</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">HTTP</FONT></TD><TD WIDTH="12%"><FONT
FACE="Arial,Helvetica">Sync 1.1.1</FONT></TD><TD ALIGN=LEFT><FONT
FACE="Arial,Helvetica">To check if the Test Object did not commit the Large
Object with incorrect size and the incomplete Large Object sent in the last
session.</FONT></TD><TD WIDTH="13%"><FONT
FACE="Arial,Helvetica">Passed</FONT></TD></TR></TABLE><FONT
FACE="Arial,Helvetica"></FONT></BODY></HTML><!-- aOeGJYZAvm3N4n8GJ6R/xg== -->
\ No newline at end of file
Index: test/all_tests.php
===================================================================
RCS file: test/all_tests.php
diff -N test/all_tests.php
--- test/all_tests.php 30 Jul 2007 13:04:38 -0000 1.1.1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,48 +0,0 @@
-<?php
- /**
- * phpGroupWare (http://phpgroupware.org/)
- * SyncML interface
- *
- * @author Johan Gunnarsson <address@hidden>
- * @copyright Copyright (c) 2007 Free Software Foundation, Inc.
- * @license GNU General Public License
- * @package syncml
- * @version $Id: all_tests.php,v 1.1.1.1 2007/07/30 13:04:38 johang
Exp $
- */
-
- /*
- run this file from within the syncml/ directory.
-
- $ php test/all_tests.php
- */
-
- $phpgw_info = array();
-
- $GLOBALS['phpgw_info']['flags'] = array(
- 'disable_template_class' => True,
- 'currentapp' => 'login',
- 'noheader' => True
- );
-
- require_once 'simpletest/reporter.php';
-
- require_once("../header.inc.php");
-
- //error_reporting(0);
-
- foreach(glob("test/*_test.php") as $n)
- {
- require_once($n);
- }
-
- $group = new GroupTest('XML tests');
- $group->addTestCase(new syncml_mapper_test());
- $group->run(new TextReporter());
-
- $group = new GroupTest('SyncML tests');
- $group->addTestCase(new syncml_session_test());
- $group->addTestCase(new syncml_auth_test());
- // $group->addTestCase(new syncml_alert_test());
- $group->addTestCase(new syncml_command_test());
- $group->run(new TextReporter());
-?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] syncml test/head_pre.php test/pre_group15.php t...,
Johan Gunnarsson <=