1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Test system behaviour when Write Protect switch is on |
|
15 // |
|
16 // |
|
17 |
|
18 //! @file btsdwp.script |
|
19 //! @SYMTestSuiteName basetestsd |
|
20 //! @SYMScriptTestEnvironment base |
|
21 |
|
22 LOAD_SUITE basetestsd |
|
23 |
|
24 PRINT ATTENTION: This is a manual test |
|
25 PRINT User will be prompted several times to change the SD card's Write Protect switch position |
|
26 |
|
27 START_TESTCASE PBASE-WRITEPROTECTREAD-0207 |
|
28 //! @SYMTestCaseID PBASE-WRITEPROTECTREAD-0207 |
|
29 //! @SYMTestCaseDesc Read a write-protected SD card |
|
30 //! @SYMREQ REQ0000 |
|
31 //! @SYMTestActions |
|
32 //! 1. User turns Write Protect switch off |
|
33 //! 2. Format card |
|
34 //! 3. Create a number of files and directories on the card |
|
35 //! 4. User turns Write Protect switch on |
|
36 //! 5. Read files and directories |
|
37 //! 6. Check file system for consistency |
|
38 //! @SYMTestExpectedResults |
|
39 //! All operations complete with no error |
|
40 //! @SYMTestPriority Medium |
|
41 //! @SYMTestStatus Implemented |
|
42 //! @SYMTestType CIT |
|
43 RUN_TEST_STEP -1 basetestsd DialogBox \basetest\btsd.ini WRITEPROTECT_SETWPOFF |
|
44 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini FullFormat |
|
45 RUN_TEST_STEP 500 basetestsd FileOperations1 \basetest\btsd.ini WRITEPROTECT_READ |
|
46 RUN_TEST_STEP -1 basetestsd DialogBox \basetest\btsd.ini WRITEPROTECT_SETWPON |
|
47 RUN_TEST_STEP 500 basetestsd ReadFiles1 \basetest\btsd.ini WRITEPROTECT_READ |
|
48 RUN_TEST_STEP 500 basetestsd CheckDisk \basetest\btsd.ini |
|
49 END_TESTCASE PBASE-WRITEPROTECTREAD-0207 |
|
50 |
|
51 START_TESTCASE PBASE-WRITEPROTECTWRITE-0208 |
|
52 //! @SYMTestCaseID PBASE-WRITEPROTECTWRITE-0208 |
|
53 //! @SYMTestCaseDesc Write on a write-protected SD card |
|
54 //! @SYMREQ REQ0000 |
|
55 //! @SYMTestActions |
|
56 //! 1. User turns Write Protect switch off |
|
57 //! 2. Format card |
|
58 //! 3. Create a number of files and directories on the card |
|
59 //! 4. User turns Write Protect switch on |
|
60 //! 5. Delete and create some files and directories on the card. |
|
61 //! 6. Read files and directories |
|
62 //! 7. Check file system for consistency |
|
63 //! @SYMTestExpectedResults |
|
64 //! 1. The Write Protect switch is off |
|
65 //! 2. No error |
|
66 //! 3. No error |
|
67 //! 4. Card is now locked |
|
68 //! 5. All operations fail |
|
69 //! 6. Card contents have not been altered by action 5. |
|
70 //! 7. No error |
|
71 //! @SYMTestPriority Medium |
|
72 //! @SYMTestStatus Implemented |
|
73 //! @SYMTestType CIT |
|
74 RUN_TEST_STEP -1 basetestsd DialogBox \basetest\btsd.ini WRITEPROTECT_SETWPOFF |
|
75 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini FullFormat |
|
76 RUN_TEST_STEP 500 basetestsd FileOperations1 \basetest\btsd.ini WRITEPROTECT_READ |
|
77 RUN_TEST_STEP -1 basetestsd DialogBox \basetest\btsd.ini WRITEPROTECT_SETWPON |
|
78 RUN_TEST_STEP 500 basetestsd FileOperations2 \basetest\btsd.ini WRITEPROTECT_WRITE |
|
79 RUN_TEST_STEP 500 basetestsd ReadFiles1 \basetest\btsd.ini WRITEPROTECT_READ |
|
80 RUN_TEST_STEP 500 basetestsd CheckDisk \basetest\btsd.ini |
|
81 END_TESTCASE PBASE-WRITEPROTECTWRITE-0208 |
|