# Qtopia/Security

## Test cases

### Power-on protection

Test Purpose | Verify that qtopia can be protected by a passcode at power-on

Test Description

1. Click Set Code and enter a passcode "1234". Click OK
2. Repeat the code 1234 and click OK again.
3. Make sure that Require at power-on is checked and click OK
4. Power down the device
5. Power up the device and verify that the Enter passcode dialog appears.
6. Try to enter invalid values first: an empty string, "1", "123", "12345", "4321", "1234567890" each attempt followed by OK
7. Finally try "1234" and enter OK
8. Verify that you get access to the device.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Remote sync protection

Test Purpose | Verify that a Qtopia desktop user can only sync to the device if he has been granted syncing rights.

Test Description

1. Set the Accept sync from network to "None" and click OK
2. Press the sync button on the cradle (assuming the device is in the cradle).
3. Verify that the sync is refused.
4. Click Sync All on the desktop.
5. Verify that the sync is refused.
6. Set the Accept sync from network to the previous setting and click OK
7. Verify that a sync can be done both from the cradle and from the desktop.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Passcode editing

Test Purpose | Verify that entering a passcode is safe and that a passcode protected Security app can only be accessed with the passcode.

Test Description

1. Click the Change Code button and enter 1234. Click OK
2. Re-enter 1234 to verify. Click OK
3. Verify that the Clear code button and Require at power-on checkbox are enabled.
4. Close Security using OK
5. Re-start Security and verify that you have to enter a passcode.
6. Try using a false code, e.g. 123 and click OK
7. Verify that you get an error dialog reporting an invalid code and don't get access to the app.
8. Retry again for an empty passcode, for 12345 and for a very long passcode e.g. 12345678.
9. Verify that there is no way to get in.
10. Restart Security again and this time try to get access by clicking on the x in the passcode entry dialog.
11. Verify that you can't get access.
12. Restart Security again and this time enter 1234 + OK.
13. Verify that you get access.
14. Click the Change Code button and click OK e.g. no passcode entered.
15. Verify that you get an error message and the passcode is not accepted.
16. Try to enter a long password (> 8 characters) and verify that the max length is limited to 8 characters. Click x to cancel this entry.
17. Restart Security again and verify that the password is still the same (e.g. 1234)
18. Press Clear Code.
19. Verify that the Clear Code button and Require at power-on checkbox are disabled.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test