Mac OS X Reference Library Apple Developer
Search

Initial Sync Tests

The tests in this chapter cover syncing the device for the first time which is called initial sync. There are different types of initial syncs that need to be tested. These tests assume that you have iSync launched, the device is selected in the iSync window, and syncing is enabled for the device. Read “Common Steps” for set up instructions before running these tests.

In addition, you should configure the iSync preferences so an alert appears each time the device changes the state of the truth—each time the device adds, modifies, or deletes records—as follows:

Some of the following tests require records on the device before running an initial sync. Optionally, follow these steps to set up a device for these tests using iSync:

  1. Add contacts and calendars to the computer that you want to be on the device.

    Create a group in Address Book and add the contacts to that group. Create a calendar in iCal and add the events to that calendar.

  2. Launch iSync and select the device icon.

  3. Choose the Contacts group from the Synchronize pop-up menu.

  4. Select the Calendars group from the Calendars > Selected scroll view.

  5. Choose Devices > Reset Device from the iSync menu and click Reset in the alert panel.

    Wait for iSync to sync the device, which adds the selected records to the device.

  6. Click the device icon and choose Devices > Remove Device and click OK in the alert panel.

  7. Delete all the records on the computer that were added to the device.

  8. Reset the Sync Services server by launching Syncrospector, choosing Window > Show Sync Plans, and clicking the Reset Server button.

These are the common steps used in this chapter:

Merge with No Data on Device

Tests initial syncs where 0 records are on the device and some records are on the computer.

Steps

  1. Add a contact to the computer.

  2. Add an event to the computer.

  3. Add a task to the computer.

  4. Make sure there are 0 contacts and 0 events on the device.

  5. Perform an initial merge sync.

    Verify that the records on the computer are now on the device.

Merge with Data on Computer and Device

Tests initial merge syncs when records are on the device and on the computer.

Steps

  1. Add some contacts and events to the device.

  2. Add some different contacts and event to the computer.

  3. Perform an initial merge sync.

    Verify that the records on the device are now on the computer and vice-versa.

Merge with Many Records on Computer and Device

Tests syncing with many records on the device and computer.

Steps

  1. Add many contacts and events (2000 or more records) to the computer.

  2. Add many different contacts and events to the device.

  3. Perform an initial merge sync.

    Verify that the records on the device are now on the computer and vice-versa.

Erase with Data on Device

Tests initial erase sync when the device contains many records.

Steps

  1. Add many contacts and events (2000 or more records) to the device.

  2. Add a few different contacts and events to the computer.

  3. Enable Contacts and Calendars in the iSync window.

  4. Initial erase sync.

    Verify that existing records on the device are deleted and that records from the computer are added correctly.

  5. Repeat steps 1-4 for the Contacts database only and Calendars database only.

Erase with Data on Computer

Tests initial erase sync when the device contains no records and the computer contains records

Steps

  1. Add many contacts and events to the computer.

  2. Enable Contacts and Calendars in the iSync window.

  3. Initial erase sync.

    Verify that all the records on the computer are on the device.

  4. Repeat steps 1-3 for the Contacts database only and Calendars database only.




Last updated: 2007-07-11

Did this document help you? Yes It's good, but... Not helpful...