sl@0
|
1 |
//
|
sl@0
|
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
// All rights reserved.
|
sl@0
|
4 |
// This component and the accompanying materials are made available
|
sl@0
|
5 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
// which accompanies this distribution, and is available
|
sl@0
|
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
//
|
sl@0
|
9 |
// Initial Contributors:
|
sl@0
|
10 |
// Nokia Corporation - initial contribution.
|
sl@0
|
11 |
//
|
sl@0
|
12 |
// Contributors:
|
sl@0
|
13 |
//
|
sl@0
|
14 |
// Description:
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//! @file
|
sl@0
|
17 |
//! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-any
|
sl@0
|
18 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
|
sl@0
|
19 |
//! @SYMScriptAuthor Dmitri Trofimov, Sergei Tveritin.
|
sl@0
|
20 |
//! @SYMCreationDate 11/11/2007
|
sl@0
|
21 |
//! @SYMScriptDescription The test script contains API tests for the following functions of TParsePtrC class:
|
sl@0
|
22 |
//! TParsePtrC(TDes &aName);
|
sl@0
|
23 |
//! TDes &NameBuf();
|
sl@0
|
24 |
//! const TDesC &NameBufC() const;
|
sl@0
|
25 |
|
sl@0
|
26 |
|
sl@0
|
27 |
LOAD_SUITE T_SfSrv
|
sl@0
|
28 |
//DELAY 5000
|
sl@0
|
29 |
|
sl@0
|
30 |
|
sl@0
|
31 |
START_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0047
|
sl@0
|
32 |
//! @SYMTestCaseID PBASE-F32-ParsePtrC-PublicApi-0047
|
sl@0
|
33 |
//! @SYMAPI TParsePtrC
|
sl@0
|
34 |
//! @SYMTestCaseDesc TParsePtrC() test.
|
sl@0
|
35 |
//! Uses API elements: TParsePtrC()
|
sl@0
|
36 |
//! @SYMTestActions 1. Create TParsePtrC object passing a reference to a TDes file name as a parameter.
|
sl@0
|
37 |
//! 2. Delete TParsePtrC object.
|
sl@0
|
38 |
//!
|
sl@0
|
39 |
//! @SYMTestStatus Implemented
|
sl@0
|
40 |
//! @SYMTestPriority Critical
|
sl@0
|
41 |
//! @SYMTestExpectedResults Function does not leave nor panic.
|
sl@0
|
42 |
//! @SYMTestType CIT
|
sl@0
|
43 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-ParsePtrC-PublicApi.ini
|
sl@0
|
44 |
CREATE_OBJECT TParsePtrC TParsePtrC1
|
sl@0
|
45 |
COMMAND TParsePtrC1 new PBASE-F32-ParsePtrC-PublicApi-0001command1new
|
sl@0
|
46 |
COMMAND TParsePtrC1 ~
|
sl@0
|
47 |
END_TEST_BLOCK
|
sl@0
|
48 |
END_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0047
|
sl@0
|
49 |
|
sl@0
|
50 |
|
sl@0
|
51 |
START_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0048
|
sl@0
|
52 |
//! @SYMTestCaseID PBASE-F32-ParsePtrC-PublicApi-0048
|
sl@0
|
53 |
//! @SYMAPI TParsePtrC
|
sl@0
|
54 |
//! @SYMTestCaseDesc TParsePtrC() test, where name passed in constructor are NUUL.
|
sl@0
|
55 |
//! Uses API elements: TParsePtrC()
|
sl@0
|
56 |
//! @SYMTestActions 1. Create TParsePtrC object passing "0" as parameter.
|
sl@0
|
57 |
//! 2. Delete TParsePtrC object.
|
sl@0
|
58 |
//!
|
sl@0
|
59 |
//! @SYMTestStatus Implemented
|
sl@0
|
60 |
//! @SYMTestPriority Critical
|
sl@0
|
61 |
//! @SYMTestExpectedResults Function does not leave nor panic.
|
sl@0
|
62 |
//! @SYMTestType CIT
|
sl@0
|
63 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-ParsePtrC-PublicApi.ini
|
sl@0
|
64 |
CREATE_OBJECT TParsePtrC TParsePtrC1
|
sl@0
|
65 |
COMMAND TParsePtrC1 new PBASE-F32-ParsePtrC-PublicApi-0002command1new
|
sl@0
|
66 |
COMMAND TParsePtrC1 ~
|
sl@0
|
67 |
END_TEST_BLOCK
|
sl@0
|
68 |
END_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0048
|
sl@0
|
69 |
|
sl@0
|
70 |
|
sl@0
|
71 |
START_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0049
|
sl@0
|
72 |
//! @SYMTestCaseID PBASE-F32-ParsePtrC-PublicApi-0049
|
sl@0
|
73 |
//! @SYMAPI TParsePtrC
|
sl@0
|
74 |
//! @SYMTestCaseDesc TParsePtrC() negative test, where name passed in constructor contain illegal path construction.
|
sl@0
|
75 |
//! Uses API elements: TParsePtrC()
|
sl@0
|
76 |
//! @SYMTestActions 1. Create TParsePtrC object passing "c::\file.ext" as parameter.
|
sl@0
|
77 |
//! 2. Delete TParsePtrC object.
|
sl@0
|
78 |
//!
|
sl@0
|
79 |
//! @SYMTestStatus Implemented
|
sl@0
|
80 |
//! @SYMTestPriority Critical
|
sl@0
|
81 |
//! @SYMTestExpectedResults Function return panic code FSCLIENT=24.
|
sl@0
|
82 |
//! @SYMTestType CIT
|
sl@0
|
83 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-ParsePtrC-PublicApi.ini
|
sl@0
|
84 |
CREATE_OBJECT TParsePtrC TParsePtrC1
|
sl@0
|
85 |
COMMAND TParsePtrC1 new PBASE-F32-ParsePtrC-PublicApi-0003command1new
|
sl@0
|
86 |
COMMAND TParsePtrC1 ~
|
sl@0
|
87 |
END_TEST_BLOCK !PanicCode=24 !PanicString="FSCLIENT panic"
|
sl@0
|
88 |
END_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0049
|
sl@0
|
89 |
|
sl@0
|
90 |
|
sl@0
|
91 |
START_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0050
|
sl@0
|
92 |
//! @SYMTestCaseID PBASE-F32-ParsePtrC-PublicApi-0050
|
sl@0
|
93 |
//! @SYMAPI TParsePtrC
|
sl@0
|
94 |
//! @SYMTestCaseDesc TParsePtrC() test, where name passed in constructor contain wildcards.
|
sl@0
|
95 |
//! Uses API elements: TParsePtrC()
|
sl@0
|
96 |
//! @SYMTestActions 1. Create TParsePtrC object passing "c:\file?.*" as parameter.
|
sl@0
|
97 |
//! 2. Delete TParsePtrC object.
|
sl@0
|
98 |
//!
|
sl@0
|
99 |
//! @SYMTestStatus Implemented
|
sl@0
|
100 |
//! @SYMTestPriority Critical
|
sl@0
|
101 |
//! @SYMTestExpectedResults Function does not leave nor panic.
|
sl@0
|
102 |
//! @SYMTestType CIT
|
sl@0
|
103 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-ParsePtrC-PublicApi.ini
|
sl@0
|
104 |
CREATE_OBJECT TParsePtrC TParsePtrC1
|
sl@0
|
105 |
COMMAND TParsePtrC1 new PBASE-F32-ParsePtrC-PublicApi-0004command1new
|
sl@0
|
106 |
COMMAND TParsePtrC1 ~
|
sl@0
|
107 |
END_TEST_BLOCK
|
sl@0
|
108 |
END_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0050
|
sl@0
|
109 |
|
sl@0
|
110 |
|
sl@0
|
111 |
START_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0051
|
sl@0
|
112 |
//! @SYMTestCaseID PBASE-F32-ParsePtrC-PublicApi-0051
|
sl@0
|
113 |
//! @SYMAPI TParsePtrC
|
sl@0
|
114 |
//! @SYMTestCaseDesc TParsePtrC() negative test, where calls the function of base class AddDir().
|
sl@0
|
115 |
//! Uses API elements: TParsePtrC()
|
sl@0
|
116 |
//! @SYMTestActions 1. Create TParsePtrC object passing "c:\file.txt" as parameter.
|
sl@0
|
117 |
//! 2. Call AddDir() and passsing "dir" as name of directory to be added.
|
sl@0
|
118 |
//! 3. Delete TParsePtrC object.
|
sl@0
|
119 |
//!
|
sl@0
|
120 |
//! @SYMTestStatus Implemented
|
sl@0
|
121 |
//! @SYMTestPriority Critical
|
sl@0
|
122 |
//! @SYMTestExpectedResults Function return FSCLIENT panic Code = 26.
|
sl@0
|
123 |
//! @SYMTestType CIT
|
sl@0
|
124 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-ParsePtrC-PublicApi.ini
|
sl@0
|
125 |
CREATE_OBJECT TParsePtrC TParsePtrC1
|
sl@0
|
126 |
COMMAND TParsePtrC1 new PBASE-F32-ParsePtrC-PublicApi-0005command1new
|
sl@0
|
127 |
COMMAND TParsePtrC1 AddDir PBASE-F32-ParsePtrC-PublicApi-0005command2AddDir
|
sl@0
|
128 |
COMMAND TParsePtrC1 ~
|
sl@0
|
129 |
END_TEST_BLOCK !PanicCode=26 !PanicString="FSCLIENT panic"
|
sl@0
|
130 |
END_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0051
|
sl@0
|
131 |
|
sl@0
|
132 |
START_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0052
|
sl@0
|
133 |
//! @SYMTestCaseID PBASE-F32-ParsePtrC-PublicApi-0052
|
sl@0
|
134 |
//! @SYMAPI TParsePtrC
|
sl@0
|
135 |
//! @SYMTestCaseDesc TParsePtrC() negative test, where calls the function of base class AddDir() and pass empty parameter.
|
sl@0
|
136 |
//! Uses API elements: TParsePtrC()
|
sl@0
|
137 |
//! @SYMTestActions 1. Create TParsePtrC object passing "c:\file.txt" as parameter.
|
sl@0
|
138 |
//! 2. Call AddDir() and passsing empty string as name of directory to be added.
|
sl@0
|
139 |
//! 3. Delete TParsePtrC object.
|
sl@0
|
140 |
//!
|
sl@0
|
141 |
//! @SYMTestStatus Implemented
|
sl@0
|
142 |
//! @SYMTestPriority Critical
|
sl@0
|
143 |
//! @SYMTestExpectedResults Function does not leave nor panic.
|
sl@0
|
144 |
//! @SYMTestType CIT
|
sl@0
|
145 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-ParsePtrC-PublicApi.ini
|
sl@0
|
146 |
CREATE_OBJECT TParsePtrC TParsePtrC1
|
sl@0
|
147 |
COMMAND TParsePtrC1 new PBASE-F32-ParsePtrC-PublicApi-0006command1new
|
sl@0
|
148 |
COMMAND TParsePtrC1 AddDir PBASE-F32-ParsePtrC-PublicApi-0006command2AddDir
|
sl@0
|
149 |
COMMAND TParsePtrC1 ~
|
sl@0
|
150 |
END_TEST_BLOCK
|
sl@0
|
151 |
END_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0052
|
sl@0
|
152 |
|
sl@0
|
153 |
START_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0053
|
sl@0
|
154 |
//! @SYMTestCaseID PBASE-F32-ParsePtrC-PublicApi-0053
|
sl@0
|
155 |
//! @SYMAPI TParsePtrC
|
sl@0
|
156 |
//! @SYMTestCaseDesc TParsePtrC() negative test, where calls the function of base class AddDir() and pass illegal characters.
|
sl@0
|
157 |
//! Uses API elements: TParsePtrC()
|
sl@0
|
158 |
//! @SYMTestActions 1. Create TParsePtrC object passing "c:\file.txt" as parameter.
|
sl@0
|
159 |
//! 2. Call AddDir() and passsing "$%#" as name of directory to be added.
|
sl@0
|
160 |
//! 3. Delete TParsePtrC object.
|
sl@0
|
161 |
//!
|
sl@0
|
162 |
//! @SYMTestStatus Implemented
|
sl@0
|
163 |
//! @SYMTestPriority Critical
|
sl@0
|
164 |
//! @SYMTestExpectedResults Function return FSCLIENT panic Code = 26.
|
sl@0
|
165 |
//! @SYMTestType CIT
|
sl@0
|
166 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-ParsePtrC-PublicApi.ini
|
sl@0
|
167 |
CREATE_OBJECT TParsePtrC TParsePtrC1
|
sl@0
|
168 |
COMMAND TParsePtrC1 new PBASE-F32-ParsePtrC-PublicApi-0007command1new
|
sl@0
|
169 |
COMMAND TParsePtrC1 AddDir PBASE-F32-ParsePtrC-PublicApi-0007command2AddDir
|
sl@0
|
170 |
COMMAND TParsePtrC1 ~
|
sl@0
|
171 |
END_TEST_BLOCK !PanicCode=26 !PanicString="FSCLIENT panic"
|
sl@0
|
172 |
END_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0053
|
sl@0
|
173 |
|
sl@0
|
174 |
START_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0054
|
sl@0
|
175 |
//! @SYMTestCaseID PBASE-F32-ParsePtrC-PublicApi-0054
|
sl@0
|
176 |
//! @SYMAPI TParsePtrC
|
sl@0
|
177 |
//! @SYMTestCaseDesc TParsePtrC() negative test, where calls the function of base class PopDir(), where filename contains only root directory.
|
sl@0
|
178 |
//! Uses API elements: TParsePtrC()
|
sl@0
|
179 |
//! @SYMTestActions 1. Create TParsePtrC object passing "c:\file.txt" as parameter.
|
sl@0
|
180 |
//! 2. Call PopDir().
|
sl@0
|
181 |
//! 3. Delete TParsePtrC object.
|
sl@0
|
182 |
//!
|
sl@0
|
183 |
//! @SYMTestStatus Implemented
|
sl@0
|
184 |
//! @SYMTestPriority Critical
|
sl@0
|
185 |
//! @SYMTestExpectedResults Function PopDir() return error code KErrGeneral.
|
sl@0
|
186 |
//! @SYMTestType CIT
|
sl@0
|
187 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-ParsePtrC-PublicApi.ini
|
sl@0
|
188 |
CREATE_OBJECT TParsePtrC TParsePtrC1
|
sl@0
|
189 |
COMMAND TParsePtrC1 new PBASE-F32-ParsePtrC-PublicApi-0008command1new
|
sl@0
|
190 |
COMMAND !Error=-2 TParsePtrC1 PopDir
|
sl@0
|
191 |
COMMAND TParsePtrC1 ~
|
sl@0
|
192 |
END_TEST_BLOCK
|
sl@0
|
193 |
END_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0054
|
sl@0
|
194 |
|
sl@0
|
195 |
START_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0055
|
sl@0
|
196 |
//! @SYMTestCaseID PBASE-F32-ParsePtrC-PublicApi-0055
|
sl@0
|
197 |
//! @SYMAPI TParsePtrC
|
sl@0
|
198 |
//! @SYMTestCaseDesc TParsePtrC() negative test, where calls the function of base class PopDir(), where filename contains subdirectory.
|
sl@0
|
199 |
//! Uses API elements: TParsePtrC()
|
sl@0
|
200 |
//! @SYMTestActions 1. Create TParsePtrC object passing "c:\base\file.txt" as parameter.
|
sl@0
|
201 |
//! 2. Call PopDir().
|
sl@0
|
202 |
//! 3. Delete TParsePtrC object.
|
sl@0
|
203 |
//!
|
sl@0
|
204 |
//! @SYMTestStatus Implemented
|
sl@0
|
205 |
//! @SYMTestPriority Critical
|
sl@0
|
206 |
//! @SYMTestExpectedResults Function PopDir() FSCLIENT panic Code = 26.
|
sl@0
|
207 |
//! @SYMTestType CIT
|
sl@0
|
208 |
START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-ParsePtrC-PublicApi.ini
|
sl@0
|
209 |
CREATE_OBJECT TParsePtrC TParsePtrC1
|
sl@0
|
210 |
COMMAND TParsePtrC1 new PBASE-F32-ParsePtrC-PublicApi-0009command1new
|
sl@0
|
211 |
COMMAND TParsePtrC1 PopDir
|
sl@0
|
212 |
COMMAND TParsePtrC1 ~
|
sl@0
|
213 |
END_TEST_BLOCK !PanicCode=26 !PanicString="FSCLIENT panic"
|
sl@0
|
214 |
END_TESTCASE PBASE-F32-ParsePtrC-PublicApi-0055 |