Stress Tests

Tests in this chapter involve hardware states such as power loss and the computer going to sleep. Read Common Steps for how to turn on data change alerts before running these tests.

Device Loses Power

Tests syncing while the device is low on power.

Steps

  1. Add contacts and events in the computer.

  2. Start a sync.

  3. During sync, power off device (turn off the device or remove the battery).

  4. After iSync reports a failed sync due to connection loss or not being able to connect, turn device on.

  5. Sync.

    Verify that the new contacts and events are on the device.

Computer Goes to Sleep

Tests syncing when the computer goes to sleep.

Steps

  1. Sync.

  2. Put computer to sleep while syncing.

  3. Wake up computer.

  4. Sync.

    Verify that the device recovers from the lost connection and syncs correctly.

Sync to Device with Low Memory

Tests syncing when the device is low on memory.

Steps

  1. Fill up the memory on the device to it’s capacity.

    It should have no space for additional contacts or events.

  2. Add contacts and events to the computer that exceeds the available memory on the device.

  3. Sync.

    iSync should report that the device is out of memory. If it fails to do so, it probably means that the device did not acknowledge the changes coming from the computer with the appropriate SyncML status code.

Device Out of Bluetooth Range

Tests syncing when the device is moved out of Bluetooth range.

Steps

  1. Add contacts and events to the computer.

  2. Start a sync.

  3. During the sync, move the device out of Bluetooth range.

    Verify that iSync displays an alert panel saying the device is out of Bluetooth range.

  4. After a few moments, bring the device into Bluetooth range.

  5. Sync.

    Verify that the device recovers from the lost connection and syncs correctly.