author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 07 Jan 2010 13:38:45 +0200 | |
changeset 6 | 0173bcd7697c |
parent 2 | 4122176ea935 |
permissions | -rw-r--r-- |
0 | 1 |
// |
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
// All rights reserved. |
|
4 |
// This component and the accompanying materials are made available |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
// under the terms of "Eclipse Public License v1.0" |
0 | 6 |
// which accompanies this distribution, and is available |
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
// |
|
9 |
// Initial Contributors: |
|
10 |
// Nokia Corporation - initial contribution. |
|
11 |
// |
|
12 |
// Contributors: |
|
13 |
// |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
14 |
// Description: |
0 | 15 |
// |
16 |
//! @file |
|
17 |
//! @SYMTestSuiteName BASE-F32-RFS-Files-PublicApi-ANY |
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
19 |
//! @SYMScriptAuthor Sergei Tveritin |
|
20 |
//! @SYMScriptDescription The test script contains API files & directories related tests for RFs functions that don't depend on any special type of test drive. |
|
21 |
||
22 |
LOAD_SUITE T_Sfsrv |
|
23 |
||
24 |
||
25 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2030 |
|
26 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2030 |
|
27 |
//! @SYMAPI RFs |
|
28 |
//! @SYMCreationDate 5/10/2006 |
|
29 |
//! @SYMTestCaseDesc Function Parse(const TDesC &aName, TParse &aParse) test where name of parse is empty. |
|
30 |
//! Uses API elements: Parse(). |
|
31 |
//! @SYMTestActions 1. Call Connect() method. |
|
32 |
//! 2. Call Parse() and pass parameter "NULL" as name of parse. |
|
33 |
//! 3. Call Close() method. |
|
34 |
//! @SYMTestStatus Implemented |
|
35 |
//! @SYMTestPriority Critical |
|
36 |
//! @SYMTestExpectedResults Function Parse() return KErrNone. |
|
37 |
//! @SYMTestType CIT |
|
38 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini |
|
39 |
CREATE_OBJECT RFs RFs1 |
|
40 |
COMMAND RFs1 new |
|
41 |
COMMAND RFs1 Connect |
|
42 |
COMMAND RFs1 Parse PBASE-F32-RFS-PublicApi-2030-001-Parse_command03 |
|
43 |
COMMAND RFs1 Close |
|
44 |
COMMAND RFs1 ~ |
|
45 |
END_TEST_BLOCK |
|
46 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2030 |
|
47 |
||
48 |
||
49 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2032 |
|
50 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2032 |
|
51 |
//! @SYMAPI RFs |
|
52 |
//! @SYMCreationDate 5/10/2006 |
|
53 |
//! @SYMTestCaseDesc Function Parse(const TDesC &aName, const TDesC &aRelated, TParse &aParse) test where related name of parse is invalid. |
|
54 |
//! Uses API elements: Parse(). |
|
55 |
//! @SYMTestActions 1. Call Connect() method. |
|
56 |
//! 2. Call Parse() and pass parameter "\<>:"/|" as related. |
|
57 |
//! 3. Call Close() method. |
|
58 |
//! @SYMTestStatus Implemented |
|
59 |
//! @SYMTestPriority Critical |
|
60 |
//! @SYMTestExpectedResults Function Parse() return KErrNone. |
|
61 |
//! @SYMTestType CIT |
|
62 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini |
|
63 |
CREATE_OBJECT RFs RFs1 |
|
64 |
COMMAND RFs1 new |
|
65 |
COMMAND RFs1 Connect |
|
66 |
COMMAND RFs1 Parse PBASE-F32-RFS-PublicApi-2032-001-Parse_command03 |
|
67 |
COMMAND RFs1 Close |
|
68 |
COMMAND RFs1 ~ |
|
69 |
END_TEST_BLOCK |
|
70 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2032 |
|
71 |
||
72 |
||
73 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2033 |
|
74 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2033 |
|
75 |
//! @SYMAPI RFs |
|
76 |
//! @SYMCreationDate 5/10/2006 |
|
77 |
//! @SYMTestCaseDesc Function Parse(const TDesC &aName, TParse &aParse, TParse &aParse) test where name of parse is empty. |
|
78 |
//! Uses API elements: Parse(). |
|
79 |
//! @SYMTestActions 1. Call Connect() method. |
|
80 |
//! 2. Call Parse() and pass parameter "NULL" as name of parse. |
|
81 |
//! 3. Call Close() method. |
|
82 |
//! @SYMTestStatus Implemented |
|
83 |
//! @SYMTestPriority Critical |
|
84 |
//! @SYMTestExpectedResults Function Parse() return KErrNone. |
|
85 |
//! @SYMTestType CIT |
|
86 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini |
|
87 |
CREATE_OBJECT RFs RFs1 |
|
88 |
COMMAND RFs1 new |
|
89 |
COMMAND RFs1 Connect |
|
90 |
COMMAND RFs1 Parse PBASE-F32-RFS-PublicApi-2033-001-Parse_command03 |
|
91 |
COMMAND RFs1 Close |
|
92 |
COMMAND RFs1 ~ |
|
93 |
END_TEST_BLOCK |
|
94 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2033 |
|
95 |
||
96 |
/////////////////////////////// |
|
97 |
// |
|
98 |
// ISVALIDNAME (const TDesC &aFileName, TText &aBadChar) |
|
99 |
// |
|
100 |
/////////////////////////////// |
|
101 |
||
102 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2100 |
|
103 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2100 |
|
104 |
//! @SYMAPI RFs |
|
105 |
//! @SYMCreationDate 5/10/2006 |
|
106 |
//! @SYMTestCaseDesc Function IsValidName(const TDesC &aFileName, TText &aBadChar) test where name is invalid. |
|
107 |
//! Uses API elements: IsValidName(). |
|
108 |
//! @SYMTestActions 1. Call Connect() method. |
|
109 |
//! 2. Call IsValidName() and pass parameter "test<>:"/|.txt" as name of file and check that the result is FALSE. |
|
110 |
//! 3. Call Close() method. |
|
111 |
//! @SYMTestStatus Implemented |
|
112 |
//! @SYMTestPriority Critical |
|
113 |
//! @SYMTestExpectedResults Function IsValidName() return FALSE. |
|
114 |
//! @SYMTestType CIT |
|
115 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini |
|
116 |
CREATE_OBJECT RFs RFs1 |
|
117 |
COMMAND RFs1 new |
|
118 |
COMMAND RFs1 Connect |
|
119 |
COMMAND RFs1 IsValidName PBASE-F32-RFS-PublicApi-2100-001-IsValidName_command03 |
|
120 |
COMMAND RFs1 Close |
|
121 |
COMMAND RFs1 ~ |
|
122 |
END_TEST_BLOCK |
|
123 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2100 |
|
124 |
||
125 |
||
126 |
||
127 |
/////////////////////////////// |
|
128 |
// |
|
129 |
// SETSESSIONTOPRIVATE |
|
130 |
// |
|
131 |
/////////////////////////////// |
|
132 |
||
133 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2101 |
|
134 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2101 |
|
135 |
//! @SYMAPI RFs |
|
136 |
//! @SYMCreationDate 5/10/2006 |
|
137 |
//! @SYMTestCaseDesc Function SetSessionToPrivate() test where drive is negative. |
|
138 |
//! Uses API elements: SetSessionToPrivate(). |
|
139 |
//! @SYMTestActions 1. Call Connect() method. |
|
140 |
//! 2. Call SetSessionToPrivate() and pass parameter "-12345" as driver. |
|
141 |
//! 3. Call NotifyChange with a wildcard drive letter |
|
142 |
//! 3. Call Close() method. |
|
143 |
//! @SYMTestStatus Implemented |
|
144 |
//! @SYMTestPriority Critical |
|
145 |
//! @SYMTestExpectedResults Function NotifyChange() return KErrArgument. |
|
146 |
//! @SYMTestType CIT |
|
147 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini |
|
148 |
CREATE_OBJECT RFs RFs1 |
|
149 |
COMMAND RFs1 new |
|
150 |
COMMAND RFs1 Connect |
|
151 |
COMMAND RFs1 SetSessionToPrivate PBASE-F32-RFS-PublicApi-2101-001-SetSessionToPrivate_command03 |
|
152 |
COMMAND !AsyncError=-6 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-2101-001-NotifyChange_command04 |
|
153 |
OUTSTANDING |
|
154 |
COMMAND RFs1 Close |
|
155 |
COMMAND RFs1 ~ |
|
156 |
END_TEST_BLOCK |
|
157 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2101 |
|
158 |
||
159 |
||
160 |
/////////////////////////////// |
|
161 |
// |
|
162 |
// CREATEPRIVATEPATH |
|
163 |
// |
|
164 |
/////////////////////////////// |
|
165 |
||
166 |
||
167 |
START_TESTCASE PBASE-F32-RFS-PublicApi-2103 |
|
168 |
//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-2103 |
|
169 |
//! @SYMAPI RFs |
|
170 |
//! @SYMCreationDate 5/10/2006 |
|
171 |
//! @SYMTestCaseDesc Function CreatePrivatePath() negative test where drive is negative. |
|
172 |
//! Uses API elements: CreatePrivatePath(). |
|
173 |
//! @SYMTestActions 1. Call Connect() method. |
|
174 |
//! 2. Call CreatePrivatePath() and pass parameter "-12345" as driver. |
|
175 |
//! 3. Call Close() method. |
|
176 |
//! @SYMTestStatus Implemented |
|
177 |
//! @SYMTestPriority High |
|
178 |
//! @SYMTestExpectedResults Function CreatePrivatePath() return KErrBadName. |
|
179 |
//! @SYMTestType CIT |
|
180 |
START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Files-PublicApi-ANY.ini |
|
181 |
CREATE_OBJECT RFs RFs1 |
|
182 |
COMMAND RFs1 new |
|
183 |
COMMAND RFs1 Connect |
|
184 |
COMMAND !Error=-28 RFs1 CreatePrivatePath PBASE-F32-RFS-PublicApi-2103-001-CreatePrivatePath_command03 |
|
185 |
COMMAND RFs1 Close |
|
186 |
COMMAND RFs1 ~ |
|
187 |
END_TEST_BLOCK |
|
188 |
END_TESTCASE PBASE-F32-RFS-PublicApi-2103 |