sl@0
|
1 |
//
|
sl@0
|
2 |
// Copyright (c) 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 |
//Script file for running File URI Tests
|
sl@0
|
17 |
|
sl@0
|
18 |
PRINT Running_FileURI_Test
|
sl@0
|
19 |
|
sl@0
|
20 |
// Load the test
|
sl@0
|
21 |
LOAD_SUITE TestFileUriServer
|
sl@0
|
22 |
|
sl@0
|
23 |
|
sl@0
|
24 |
// Create file URI from File Name
|
sl@0
|
25 |
|
sl@0
|
26 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.1-0001
|
sl@0
|
27 |
//CreateUri_Internal_Public_8
|
sl@0
|
28 |
|
sl@0
|
29 |
//! @file TestFileUriSuite.script
|
sl@0
|
30 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.1-0001
|
sl@0
|
31 |
//! @SYMTestCaseDesc Generate an 8-bit file URI from a fully qualified file name for a file that resides in a local non-private directory.
|
sl@0
|
32 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.2
|
sl@0
|
33 |
//! @SYMTestStatus Implemented
|
sl@0
|
34 |
//! @SYMTestPriority High
|
sl@0
|
35 |
//! @SYMTestActions 1. Call CUri8::CreateFileUriL passing a fully qualified filename of a file that resides in a local non-private directory.
|
sl@0
|
36 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
37 |
//! @SYMTestType Integration
|
sl@0
|
38 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Internal_Public_8
|
sl@0
|
39 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.1-0001
|
sl@0
|
40 |
|
sl@0
|
41 |
|
sl@0
|
42 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.2-0001
|
sl@0
|
43 |
//CreateUri_Internal_Public_16
|
sl@0
|
44 |
|
sl@0
|
45 |
//! @file TestFileUriSuite.script
|
sl@0
|
46 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.2-0001
|
sl@0
|
47 |
//! @SYMTestCaseDesc Generate a 16-bit file URI from a fully qualified file name for a file that resides in a local non-private directory.
|
sl@0
|
48 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.2
|
sl@0
|
49 |
//! @SYMTestStatus Implemented
|
sl@0
|
50 |
//! @SYMTestPriority High
|
sl@0
|
51 |
//! @SYMTestActions 1. Call CUri16::CreateFileUriL passing a fully qualified filename of a file that resides in a local non-private directory.
|
sl@0
|
52 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
53 |
//! @SYMTestType Integration
|
sl@0
|
54 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Internal_Public_16
|
sl@0
|
55 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.2-0001
|
sl@0
|
56 |
|
sl@0
|
57 |
|
sl@0
|
58 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.3-0001
|
sl@0
|
59 |
//CreateUri_Removable_Public_8
|
sl@0
|
60 |
|
sl@0
|
61 |
//! @file TestFileUriSuite.script
|
sl@0
|
62 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.3-0001
|
sl@0
|
63 |
//! @SYMTestCaseDesc Generate an 8-bit file URI from a fully qualified file name for a non-private file that resides in an external media.
|
sl@0
|
64 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.4
|
sl@0
|
65 |
//! @SYMTestStatus Implemented
|
sl@0
|
66 |
//! @SYMTestPriority High
|
sl@0
|
67 |
//! @SYMTestActions 1. Call CUri8::CreateFileUriL passing a fully qualified filename of a file that resides in a non-private directory on a removable media
|
sl@0
|
68 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
69 |
//! @SYMTestType Integration
|
sl@0
|
70 |
// Testing 8-bit CreateFileUri for a public file on drives that are suspected to be removable ones
|
sl@0
|
71 |
// If they are not removable, the CreateFileUri API should still return a valid URI and the tests should pass
|
sl@0
|
72 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_PublicX_8
|
sl@0
|
73 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_PublicD_8
|
sl@0
|
74 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_PublicE_8
|
sl@0
|
75 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.3-0001
|
sl@0
|
76 |
|
sl@0
|
77 |
|
sl@0
|
78 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.4-0001
|
sl@0
|
79 |
//CreateUri_Removable_Public_16
|
sl@0
|
80 |
|
sl@0
|
81 |
//! @file TestFileUriSuite.script
|
sl@0
|
82 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.4-0001
|
sl@0
|
83 |
//! @SYMTestCaseDesc Generate a 16-bit file URI from a fully qualified file name for a non-private file that resides in an external media.
|
sl@0
|
84 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.4
|
sl@0
|
85 |
//! @SYMTestStatus Implemented
|
sl@0
|
86 |
//! @SYMTestPriority High
|
sl@0
|
87 |
//! @SYMTestActions 1. Call CUri16::CreateFileUriL passing a fully qualified filename of a file that resides in a non-private directory on a removable media
|
sl@0
|
88 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
89 |
//! @SYMTestType Integration
|
sl@0
|
90 |
// Testing 16-bit CreateFileUri for a public file on drives that are suspected to be removable ones.
|
sl@0
|
91 |
// If they are removable, then the expected URI will be considered to be of the form file:///ext-media...
|
sl@0
|
92 |
// If they are not removable, the CreateFileUri API should still return a valid URI and the tests should pass
|
sl@0
|
93 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_PublicX_16
|
sl@0
|
94 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_PublicD_16
|
sl@0
|
95 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_PublicE_16
|
sl@0
|
96 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.4-0001
|
sl@0
|
97 |
|
sl@0
|
98 |
|
sl@0
|
99 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.5-0001
|
sl@0
|
100 |
//CreateUri_Internal_Private_Relative
|
sl@0
|
101 |
|
sl@0
|
102 |
//! @file TestFileUriSuite.script
|
sl@0
|
103 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.5-0001
|
sl@0
|
104 |
//! @SYMTestCaseDesc Generate an 8-bit file URI from a relative file path for a private file that resides on a fixed drive.
|
sl@0
|
105 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.6
|
sl@0
|
106 |
//! @SYMTestStatus Implemented
|
sl@0
|
107 |
//! @SYMTestPriority High
|
sl@0
|
108 |
//! @SYMTestActions 1. Call CUri8::CreatePrivateFileUriL passing a relative path and filename of a file that resides in a private directory on a fixed drive
|
sl@0
|
109 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
110 |
//! @SYMTestType Integration
|
sl@0
|
111 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Internal_Private_Relative_8_1
|
sl@0
|
112 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Internal_Private_Relative_8_2
|
sl@0
|
113 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Internal_Private_Relative_8_3
|
sl@0
|
114 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.5-0001
|
sl@0
|
115 |
|
sl@0
|
116 |
|
sl@0
|
117 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.6-0001
|
sl@0
|
118 |
//CreateUri_Internal_Private_FullPath_8
|
sl@0
|
119 |
|
sl@0
|
120 |
//! @file TestFileUriSuite.script
|
sl@0
|
121 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.6-0001
|
sl@0
|
122 |
//! @SYMTestCaseDesc Generate an 8-bit file URI from a fully qualified file name for a private file that resides on a fixed drive.
|
sl@0
|
123 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.6
|
sl@0
|
124 |
//! @SYMTestStatus Implemented
|
sl@0
|
125 |
//! @SYMTestPriority High
|
sl@0
|
126 |
//! @SYMTestActions 1. Call CUri8::CreateFileUriL passing the fully qualified filename of a file that resides in a private directory on a fixed drive
|
sl@0
|
127 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
128 |
//! @SYMTestType Integration
|
sl@0
|
129 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Internal_Private_FullPath_8
|
sl@0
|
130 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.6-0001
|
sl@0
|
131 |
|
sl@0
|
132 |
|
sl@0
|
133 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.7-0001
|
sl@0
|
134 |
//CreateUri_Internal_Private_Relative_16
|
sl@0
|
135 |
|
sl@0
|
136 |
//! @file TestFileUriSuite.script
|
sl@0
|
137 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.7-0001
|
sl@0
|
138 |
//! @SYMTestCaseDesc Generate a 16-bit file URI from a relative path for a private file that resides on a fixed drive.
|
sl@0
|
139 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.6
|
sl@0
|
140 |
//! @SYMTestStatus Implemented
|
sl@0
|
141 |
//! @SYMTestPriority High
|
sl@0
|
142 |
//! @SYMTestActions 1. Call CUri16::CreatePrivateFileUriL passing a relative path and filename of a file that resides in a private directory on a fixed drive
|
sl@0
|
143 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
144 |
//! @SYMTestType Integration
|
sl@0
|
145 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Internal_Private_Relative_16_1
|
sl@0
|
146 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Internal_Private_Relative_16_2
|
sl@0
|
147 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Internal_Private_Relative_16_3
|
sl@0
|
148 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.7-0001
|
sl@0
|
149 |
|
sl@0
|
150 |
|
sl@0
|
151 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.8-0001
|
sl@0
|
152 |
//CreateUri_Internal_Private_FullPath_16
|
sl@0
|
153 |
|
sl@0
|
154 |
//! @file TestFileUriSuite.script
|
sl@0
|
155 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.8-0001
|
sl@0
|
156 |
//! @SYMTestCaseDesc Generate a 16-bit file URI from a fully qualified file name for a private file that resides on a fixed drive.
|
sl@0
|
157 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.6
|
sl@0
|
158 |
//! @SYMTestStatus Implemented
|
sl@0
|
159 |
//! @SYMTestPriority High
|
sl@0
|
160 |
//! @SYMTestActions 1. Call CUri16::CreateFileUriL passing the fully qualified filename of a file that resides in a private directory on a fixed drive
|
sl@0
|
161 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
162 |
//! @SYMTestType Integration
|
sl@0
|
163 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Internal_Private_FullPath_16
|
sl@0
|
164 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.8-0001
|
sl@0
|
165 |
|
sl@0
|
166 |
|
sl@0
|
167 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.9-0001
|
sl@0
|
168 |
//CreateUri_Removable_Private_Relative_8
|
sl@0
|
169 |
|
sl@0
|
170 |
//! @file TestFileUriSuite.script
|
sl@0
|
171 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.9-0001
|
sl@0
|
172 |
//! @SYMTestCaseDesc Generate an 8-bit file URI from a relative file path for a private file that resides on a removable drive.
|
sl@0
|
173 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.6, <Application-Protocols>/<InetProtUtil>/FILEURI.4
|
sl@0
|
174 |
//! @SYMTestStatus Implemented
|
sl@0
|
175 |
//! @SYMTestPriority High
|
sl@0
|
176 |
//! @SYMTestActions 1. Call CUri8::CreatePrivateFileUriL passing the relative path and filename of a file that resides in a private directory on a removable drive
|
sl@0
|
177 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
178 |
//! @SYMTestType Integration
|
sl@0
|
179 |
// Similar to IWS-PREQ171-URI-CIT4.1.4-0001, testing on suspected removable drives
|
sl@0
|
180 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeX_8_1
|
sl@0
|
181 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeD_8_1
|
sl@0
|
182 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeE_8_1
|
sl@0
|
183 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeX_8_2
|
sl@0
|
184 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeD_8_2
|
sl@0
|
185 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeE_8_2
|
sl@0
|
186 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeX_8_3
|
sl@0
|
187 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeD_8_3
|
sl@0
|
188 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeE_8_3
|
sl@0
|
189 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.9-0001
|
sl@0
|
190 |
|
sl@0
|
191 |
|
sl@0
|
192 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.10-0001
|
sl@0
|
193 |
//CreateUri_Removable_Private_FullPath_8
|
sl@0
|
194 |
|
sl@0
|
195 |
//! @file TestFileUriSuite.script
|
sl@0
|
196 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.10-0001
|
sl@0
|
197 |
//! @SYMTestCaseDesc Generate an 8-bit file URI from a fully qualified file name for a private file that resides on a removable drive.
|
sl@0
|
198 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.6, <Application-Protocols>/<InetProtUtil>/FILEURI.4
|
sl@0
|
199 |
//! @SYMTestStatus Implemented
|
sl@0
|
200 |
//! @SYMTestPriority High
|
sl@0
|
201 |
//! @SYMTestActions 1. Call CUri8::CreateFileUriL passing the fully qualified filename of a file that resides in a private directory on a removable drive
|
sl@0
|
202 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
203 |
//! @SYMTestType Integration
|
sl@0
|
204 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_FullPathX_8
|
sl@0
|
205 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_FullPathD_8
|
sl@0
|
206 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_FullPathE_8
|
sl@0
|
207 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.10-0001
|
sl@0
|
208 |
|
sl@0
|
209 |
|
sl@0
|
210 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.11-0001
|
sl@0
|
211 |
//CreateUri_Removable_Private_Relative_16
|
sl@0
|
212 |
|
sl@0
|
213 |
//! @file TestFileUriSuite.script
|
sl@0
|
214 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.11-0001
|
sl@0
|
215 |
//! @SYMTestCaseDesc Generate a 16-bit file URI from a relative file path for a private file that resides on a removable drive.
|
sl@0
|
216 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.6, <Application-Protocols>/<InetProtUtil>/FILEURI.4
|
sl@0
|
217 |
//! @SYMTestStatus Implemented
|
sl@0
|
218 |
//! @SYMTestPriority High
|
sl@0
|
219 |
//! @SYMTestActions 1. Call CUri16::CreatePrivateFileUriL passing the relative path and filename of a file that resides in a private directory on a removable drive
|
sl@0
|
220 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
221 |
//! @SYMTestType Integration
|
sl@0
|
222 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeX_16_1
|
sl@0
|
223 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeD_16_1
|
sl@0
|
224 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeE_16_1
|
sl@0
|
225 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeX_16_2
|
sl@0
|
226 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeD_16_2
|
sl@0
|
227 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeE_16_2
|
sl@0
|
228 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeX_16_3
|
sl@0
|
229 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeD_16_3
|
sl@0
|
230 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_RelativeE_16_3
|
sl@0
|
231 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.11-0001
|
sl@0
|
232 |
|
sl@0
|
233 |
|
sl@0
|
234 |
START_TESTCASE IWS-PREQ171-URI-CIT4.1.12-0001
|
sl@0
|
235 |
//CreateUri_Removable_Private_FullPath_16
|
sl@0
|
236 |
|
sl@0
|
237 |
//! @file TestFileUriSuite.script
|
sl@0
|
238 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.1.12-0001
|
sl@0
|
239 |
//! @SYMTestCaseDesc Generate a 16-bit file URI from a fully qualified file name for a private file that resides on a removable drive.
|
sl@0
|
240 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.6, <Application-Protocols>/<InetProtUtil>/FILEURI.4
|
sl@0
|
241 |
//! @SYMTestStatus Implemented
|
sl@0
|
242 |
//! @SYMTestPriority High
|
sl@0
|
243 |
//! @SYMTestActions 1. Call CUri16::CreateFileUriL passing the fully qualified filename of a file that resides in a private directory on a removable drive
|
sl@0
|
244 |
//! @SYMTestExpectedResults The URI is created as expected.
|
sl@0
|
245 |
//! @SYMTestType Integration
|
sl@0
|
246 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_FullPathX_16
|
sl@0
|
247 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_FullPathD_16
|
sl@0
|
248 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Removable_Private_FullPathE_16
|
sl@0
|
249 |
END_TESTCASE IWS-PREQ171-URI-CIT4.1.12-0001
|
sl@0
|
250 |
|
sl@0
|
251 |
|
sl@0
|
252 |
// Get File Name from URI
|
sl@0
|
253 |
|
sl@0
|
254 |
START_TESTCASE IWS-PREQ171-URI-CIT4.2.1-0001
|
sl@0
|
255 |
//GetFileName_Internal_Public_8
|
sl@0
|
256 |
|
sl@0
|
257 |
//! @file TestFileUriSuite.script
|
sl@0
|
258 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.2.1-0001
|
sl@0
|
259 |
//! @SYMTestCaseDesc Generate fully qualified file name from an 8-bit file URI for a file that resides in a local non-private directory.
|
sl@0
|
260 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.1
|
sl@0
|
261 |
//! @SYMTestStatus Implemented
|
sl@0
|
262 |
//! @SYMTestPriority High
|
sl@0
|
263 |
//! @SYMTestActions 1. Call TUriC8::GetFileNameL passing an 8-bit file URI for a file that resides in a local non-private directory.
|
sl@0
|
264 |
//! @SYMTestExpectedResults The file name is generated as expected.
|
sl@0
|
265 |
//! @SYMTestType Integration
|
sl@0
|
266 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Internal_Public_8
|
sl@0
|
267 |
END_TESTCASE IWS-PREQ171-URI-CIT4.2.1-0001
|
sl@0
|
268 |
|
sl@0
|
269 |
|
sl@0
|
270 |
START_TESTCASE IWS-PREQ171-URI-CIT4.2.2-0001
|
sl@0
|
271 |
//GetFileName_Internal_Public_16
|
sl@0
|
272 |
|
sl@0
|
273 |
//! @file TestFileUriSuite.script
|
sl@0
|
274 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.2.2-0001
|
sl@0
|
275 |
//! @SYMTestCaseDesc Generate fully qualified file name from a 16-bit file URI for a file that resides in a local non-private directory.
|
sl@0
|
276 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.1
|
sl@0
|
277 |
//! @SYMTestStatus Implemented
|
sl@0
|
278 |
//! @SYMTestPriority High
|
sl@0
|
279 |
//! @SYMTestActions 1. Call TUriC16::GetFileNameL passing a 16-bit file URI for a file that resides in a local non-private directory.
|
sl@0
|
280 |
//! @SYMTestExpectedResults The file name is generated as expected.
|
sl@0
|
281 |
//! @SYMTestType Integration
|
sl@0
|
282 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Internal_Public_16
|
sl@0
|
283 |
END_TESTCASE IWS-PREQ171-URI-CIT4.2.2-0001
|
sl@0
|
284 |
|
sl@0
|
285 |
|
sl@0
|
286 |
START_TESTCASE IWS-PREQ171-URI-CIT4.2.3-0001
|
sl@0
|
287 |
//GetFileName_Removable_Public_8
|
sl@0
|
288 |
|
sl@0
|
289 |
//! @file TestFileUriSuite.script
|
sl@0
|
290 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.2.3-0001
|
sl@0
|
291 |
//! @SYMTestCaseDesc Generate fully qualified file name from an 8-bit file URI for a non-private file that resides in an external media.
|
sl@0
|
292 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.3
|
sl@0
|
293 |
//! @SYMTestStatus Implemented
|
sl@0
|
294 |
//! @SYMTestPriority High
|
sl@0
|
295 |
//! @SYMTestActions 1. Call TUriC8::GetFileNameL passing an 8-bit file URI for a non-private file that resides in an external media.
|
sl@0
|
296 |
//! @SYMTestExpectedResults The file name is generated as expected.
|
sl@0
|
297 |
//! @SYMTestType Integration
|
sl@0
|
298 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileX
|
sl@0
|
299 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileD
|
sl@0
|
300 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileE
|
sl@0
|
301 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PublicX_8
|
sl@0
|
302 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PublicD_8
|
sl@0
|
303 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PublicE_8
|
sl@0
|
304 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileX
|
sl@0
|
305 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileD
|
sl@0
|
306 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileE
|
sl@0
|
307 |
END_TESTCASE IWS-PREQ171-URI-CIT4.2.3-0001
|
sl@0
|
308 |
|
sl@0
|
309 |
|
sl@0
|
310 |
START_TESTCASE IWS-PREQ171-URI-CIT4.2.4-0001
|
sl@0
|
311 |
//GetFileName_Removable_Public_16
|
sl@0
|
312 |
|
sl@0
|
313 |
//! @file TestFileUriSuite.script
|
sl@0
|
314 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.2.4-0001
|
sl@0
|
315 |
//! @SYMTestCaseDesc Generate fully qualified file name from a 16-bit file URI for a non-private file that resides in an external media.
|
sl@0
|
316 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.3
|
sl@0
|
317 |
//! @SYMTestStatus Implemented
|
sl@0
|
318 |
//! @SYMTestPriority High
|
sl@0
|
319 |
//! @SYMTestActions 1. Call TUriC16::GetFileNameL passing a 16-bit file URI for a non-private file that resides in an external media.
|
sl@0
|
320 |
//! @SYMTestExpectedResults The file name is generated as expected.
|
sl@0
|
321 |
//! @SYMTestType Integration
|
sl@0
|
322 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileX
|
sl@0
|
323 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileD
|
sl@0
|
324 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileE
|
sl@0
|
325 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PublicX_16
|
sl@0
|
326 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PublicD_16
|
sl@0
|
327 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PublicE_16
|
sl@0
|
328 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileX
|
sl@0
|
329 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileD
|
sl@0
|
330 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Public_FileE
|
sl@0
|
331 |
END_TESTCASE IWS-PREQ171-URI-CIT4.2.4-0001
|
sl@0
|
332 |
|
sl@0
|
333 |
|
sl@0
|
334 |
START_TESTCASE IWS-PREQ171-URI-CIT4.2.5-0001
|
sl@0
|
335 |
//GetFileName_Internal_Private_8
|
sl@0
|
336 |
|
sl@0
|
337 |
//! @file TestFileUriSuite.script
|
sl@0
|
338 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.2.5-0001
|
sl@0
|
339 |
//! @SYMTestCaseDesc Generate fully qualified file name from an 8-bit file URI for a private file that resides on a fixed drive.
|
sl@0
|
340 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.5
|
sl@0
|
341 |
//! @SYMTestStatus Implemented
|
sl@0
|
342 |
//! @SYMTestPriority High
|
sl@0
|
343 |
//! @SYMTestActions 1. Call TUriC8::GetFileNameL passing an 8-bit file URI for a private file that resides on a fixed drive.
|
sl@0
|
344 |
//! @SYMTestExpectedResults The file name is generated as expected.
|
sl@0
|
345 |
//! @SYMTestType Integration
|
sl@0
|
346 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Internal_Private_8
|
sl@0
|
347 |
END_TESTCASE IWS-PREQ171-URI-CIT4.2.5-0001
|
sl@0
|
348 |
|
sl@0
|
349 |
|
sl@0
|
350 |
START_TESTCASE IWS-PREQ171-URI-CIT4.2.6-0001
|
sl@0
|
351 |
//GetFileName_Internal_Private_16
|
sl@0
|
352 |
|
sl@0
|
353 |
//! @file TestFileUriSuite.script
|
sl@0
|
354 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.2.6-0001
|
sl@0
|
355 |
//! @SYMTestCaseDesc Generate fully qualified file name from a 16-bit file URI for a private file that resides on a fixed drive.
|
sl@0
|
356 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.5
|
sl@0
|
357 |
//! @SYMTestStatus Implemented
|
sl@0
|
358 |
//! @SYMTestPriority High
|
sl@0
|
359 |
//! @SYMTestActions 1. Call TUriC16::GetFileNameL passing a 16-bit file URI for a private file that resides on a fixed drive.
|
sl@0
|
360 |
//! @SYMTestExpectedResults The file name is generated as expected.
|
sl@0
|
361 |
//! @SYMTestType Integration
|
sl@0
|
362 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Internal_Private_16
|
sl@0
|
363 |
END_TESTCASE IWS-PREQ171-URI-CIT4.2.6-0001
|
sl@0
|
364 |
|
sl@0
|
365 |
|
sl@0
|
366 |
START_TESTCASE IWS-PREQ171-URI-CIT4.2.7-0001
|
sl@0
|
367 |
//GetFileName_Removable_Private_8
|
sl@0
|
368 |
|
sl@0
|
369 |
//! @file TestFileUriSuite.script
|
sl@0
|
370 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.2.7-0001
|
sl@0
|
371 |
//! @SYMTestCaseDesc Generate fully qualified file name from an 8-bit file URI for a private file that resides on a removable drive.
|
sl@0
|
372 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.5, <Application-Protocols>/<InetProtUtil>/FILEURI.3
|
sl@0
|
373 |
//! @SYMTestStatus Implemented
|
sl@0
|
374 |
//! @SYMTestPriority High
|
sl@0
|
375 |
//! @SYMTestActions 1. Call TUriC8::GetFileNameL passing an 8-bit file URI for a private file that resides on a removable drive.
|
sl@0
|
376 |
//! @SYMTestExpectedResults The file name is generated as expected.
|
sl@0
|
377 |
//! @SYMTestType Integration
|
sl@0
|
378 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileX
|
sl@0
|
379 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileD
|
sl@0
|
380 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileE
|
sl@0
|
381 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PrivateX_8
|
sl@0
|
382 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PrivateD_8
|
sl@0
|
383 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PrivateE_8
|
sl@0
|
384 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileX
|
sl@0
|
385 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileD
|
sl@0
|
386 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileE
|
sl@0
|
387 |
END_TESTCASE IWS-PREQ171-URI-CIT4.2.7-0001
|
sl@0
|
388 |
|
sl@0
|
389 |
|
sl@0
|
390 |
START_TESTCASE IWS-PREQ171-URI-CIT4.2.8-0001
|
sl@0
|
391 |
//GetFileName_Removable_Private_16
|
sl@0
|
392 |
|
sl@0
|
393 |
//! @file TestFileUriSuite.script
|
sl@0
|
394 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.2.8-0001
|
sl@0
|
395 |
//! @SYMTestCaseDesc Generate fully qualified file name from a 16-bit file URI for a private file that resides on a removable drive.
|
sl@0
|
396 |
//! @SYMFssID <Application-Protocols>/<InetProtUtil>/FILEURI.5, <Application-Protocols>/<InetProtUtil>/FILEURI.3
|
sl@0
|
397 |
//! @SYMTestStatus Implemented
|
sl@0
|
398 |
//! @SYMTestPriority High
|
sl@0
|
399 |
//! @SYMTestActions 1. Call TUriC16::GetFileNameL passing a 16-bit file URI for a private file that resides on a removable drive.
|
sl@0
|
400 |
//! @SYMTestExpectedResults The file name is generated as expected.
|
sl@0
|
401 |
//! @SYMTestType Integration
|
sl@0
|
402 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileX
|
sl@0
|
403 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileD
|
sl@0
|
404 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileE
|
sl@0
|
405 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PrivateX_16
|
sl@0
|
406 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PrivateD_16
|
sl@0
|
407 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Removable_PrivateE_16
|
sl@0
|
408 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileX
|
sl@0
|
409 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileD
|
sl@0
|
410 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini Removable_Private_FileE
|
sl@0
|
411 |
END_TESTCASE IWS-PREQ171-URI-CIT4.2.8-0001
|
sl@0
|
412 |
|
sl@0
|
413 |
|
sl@0
|
414 |
START_TESTCASE IWS-PREQ171-URI-CIT4.3.1-0001
|
sl@0
|
415 |
//UnusualUrisAndFileNames
|
sl@0
|
416 |
|
sl@0
|
417 |
//! @file TestFileUriSuite.script
|
sl@0
|
418 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.3.1-0001
|
sl@0
|
419 |
//! @SYMTestCaseDesc Test the creation of URIs from filenames and extraction of filenames from URIs with some unusual but possible paths and filenames.
|
sl@0
|
420 |
//! @SYMFssID
|
sl@0
|
421 |
//! @SYMTestStatus Implemented
|
sl@0
|
422 |
//! @SYMTestPriority High
|
sl@0
|
423 |
//! @SYMTestActions 1. Call CUri8::CreateFileUriL and TUriC::GetFileNameL passing unusual but possible paths and filenames
|
sl@0
|
424 |
//! @SYMTestExpectedResults These unusual filenames and uris must be consistently handled by the File URI API and appropriate URIs or filenames must be returned
|
sl@0
|
425 |
//! @SYMTestType Integration
|
sl@0
|
426 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Unusual1_8
|
sl@0
|
427 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Unusual1_16
|
sl@0
|
428 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Unusual2_8
|
sl@0
|
429 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Unusual2_16
|
sl@0
|
430 |
|
sl@0
|
431 |
|
sl@0
|
432 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual1_8
|
sl@0
|
433 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual1_16
|
sl@0
|
434 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual2_8
|
sl@0
|
435 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual2_16
|
sl@0
|
436 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual3_8
|
sl@0
|
437 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual3_16
|
sl@0
|
438 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual4_8
|
sl@0
|
439 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual4_16
|
sl@0
|
440 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual5_8
|
sl@0
|
441 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual5_16
|
sl@0
|
442 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual6_8
|
sl@0
|
443 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual6_16
|
sl@0
|
444 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual7_8
|
sl@0
|
445 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual7_16
|
sl@0
|
446 |
|
sl@0
|
447 |
// A not-so-frequent situation on removable drive - a public file in a directory named private on a removable drive.
|
sl@0
|
448 |
// If the file exists, a valid filename should be returned
|
sl@0
|
449 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini File_Unusual_X
|
sl@0
|
450 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini File_Unusual_D
|
sl@0
|
451 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite.ini File_Unusual_E
|
sl@0
|
452 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_X_8
|
sl@0
|
453 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_X_16
|
sl@0
|
454 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_D_8
|
sl@0
|
455 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_D_16
|
sl@0
|
456 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_E_8
|
sl@0
|
457 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_E_16
|
sl@0
|
458 |
|
sl@0
|
459 |
// Where the file does not exist, KErrNotFound should be returned, in case of a removable drive. In case
|
sl@0
|
460 |
// of other drives a valid filename should be returned.
|
sl@0
|
461 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini File_Unusual_X
|
sl@0
|
462 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini File_Unusual_D
|
sl@0
|
463 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini File_Unusual_E
|
sl@0
|
464 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_X_8
|
sl@0
|
465 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_X_16
|
sl@0
|
466 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_D_8
|
sl@0
|
467 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_D_16
|
sl@0
|
468 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_E_8
|
sl@0
|
469 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Unusual8_E_16
|
sl@0
|
470 |
|
sl@0
|
471 |
END_TESTCASE IWS-PREQ171-URI-CIT4.3.1-0001
|
sl@0
|
472 |
|
sl@0
|
473 |
|
sl@0
|
474 |
START_TESTCASE IWS-PREQ171-URI-CIT4.3.2-0001
|
sl@0
|
475 |
//BadUrisAndFileNames
|
sl@0
|
476 |
|
sl@0
|
477 |
//! @file TestFileUriSuite.script
|
sl@0
|
478 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.3.2-0001
|
sl@0
|
479 |
//! @SYMTestCaseDesc Test that the File URI handler handles incorrect URIs properly.
|
sl@0
|
480 |
//! @SYMFssID
|
sl@0
|
481 |
//! @SYMTestStatus Implemented
|
sl@0
|
482 |
//! @SYMTestPriority High
|
sl@0
|
483 |
//! @SYMTestActions 1. Call CUri8::CreateFileUriL and TUriC::GetFileNameL passing erroneous filenames and URIs
|
sl@0
|
484 |
//! @SYMTestExpectedResults The File URI APIs must leave with KErrBadName when such erroneous filenames and URIs are passed
|
sl@0
|
485 |
//! @SYMTestType Integration
|
sl@0
|
486 |
// Bad Filenames and URIs for which an error is expected
|
sl@0
|
487 |
RUN_TEST_STEP !Error=-28 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Bad1_8
|
sl@0
|
488 |
RUN_TEST_STEP !Error=-28 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Bad1_16
|
sl@0
|
489 |
RUN_TEST_STEP !Error=-28 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Bad2_8
|
sl@0
|
490 |
RUN_TEST_STEP !Error=-28 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Bad2_16
|
sl@0
|
491 |
RUN_TEST_STEP !Error=-28 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Bad5_8
|
sl@0
|
492 |
RUN_TEST_STEP !Error=-28 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite.ini CreateUri_Bad5_16
|
sl@0
|
493 |
|
sl@0
|
494 |
RUN_TEST_STEP !Error=-28 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Bad5_8
|
sl@0
|
495 |
RUN_TEST_STEP !Error=-28 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_Bad5_16
|
sl@0
|
496 |
END_TESTCASE IWS-PREQ171-URI-CIT4.3.2-0001
|
sl@0
|
497 |
|
sl@0
|
498 |
|
sl@0
|
499 |
START_TESTCASE IWS-PREQ171-URI-CIT4.3.3-0001
|
sl@0
|
500 |
//FileDoesNotExistOnRemovableDrive
|
sl@0
|
501 |
|
sl@0
|
502 |
//! @file TestFileUriSuite.script
|
sl@0
|
503 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.3.3-0001
|
sl@0
|
504 |
//! @SYMTestCaseDesc Running tests on drives that are suspected to be removable ones where, the file specified by
|
sl@0
|
505 |
//! the file uri, is deliberately made non-existent on the drive. In such a case, a leave should
|
sl@0
|
506 |
//! occur and a filename should not be returned. By chance the suspected drive is not a
|
sl@0
|
507 |
//! removable one, the test should still pass by returning a filename, as the File URI API checks
|
sl@0
|
508 |
//! for the existence of the file only in case of removable drives.
|
sl@0
|
509 |
//! @SYMFssID
|
sl@0
|
510 |
//! @SYMTestStatus Implemented
|
sl@0
|
511 |
//! @SYMTestPriority High
|
sl@0
|
512 |
//! @SYMTestActions 1. Call TUriC::GetFileNameL passing filenames of files that are non-existent.
|
sl@0
|
513 |
//! @SYMTestExpectedResults If the drive is a removable media, then the API must leave with KErrNotFound if file is not
|
sl@0
|
514 |
//! found on the media. Otherwise, a valid filename must be returned.
|
sl@0
|
515 |
//! @SYMTestType Integration
|
sl@0
|
516 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini FileDoesNotExistOnX
|
sl@0
|
517 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini FileDoesNotExistOnD
|
sl@0
|
518 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite.ini FileDoesNotExistOnE
|
sl@0
|
519 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_On_X_8
|
sl@0
|
520 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_On_X_16
|
sl@0
|
521 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_On_D_8
|
sl@0
|
522 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_On_D_16
|
sl@0
|
523 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_On_E_8
|
sl@0
|
524 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite.ini GetFileName_On_E_16
|
sl@0
|
525 |
END_TESTCASE IWS-PREQ171-URI-CIT4.3.3-0001
|
sl@0
|
526 |
|
sl@0
|
527 |
|
sl@0
|
528 |
START_TESTCASE IWS-PREQ171-URI-CIT4.3.4-0001
|
sl@0
|
529 |
//Non-7-bit-safe-URIs
|
sl@0
|
530 |
|
sl@0
|
531 |
//! @file TestFileUriSuite.script
|
sl@0
|
532 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.3.4-0001
|
sl@0
|
533 |
//! @SYMTestCaseDesc Testing the handling of non-7-bit safe URIs
|
sl@0
|
534 |
//! @SYMFssID
|
sl@0
|
535 |
//! @SYMTestStatus Implemented
|
sl@0
|
536 |
//! @SYMTestPriority High
|
sl@0
|
537 |
//! @SYMTestActions 1. Call CUri8::CreateFileUriL and TUriC::GetFileNameL passing filenames and URIs that are non-7-bit-safe
|
sl@0
|
538 |
//! @SYMTestExpectedResults The File URI APIs must handle such URIs and filenames consistently and return appropriate filenames or URIs.
|
sl@0
|
539 |
//! @SYMTestType Integration
|
sl@0
|
540 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini CreateUri_Non-7-bit1_8
|
sl@0
|
541 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini CreateUri_Non-7-bit1_16
|
sl@0
|
542 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini CreateUri_Non-7-bit2_8
|
sl@0
|
543 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini CreateUri_Non-7-bit2_16
|
sl@0
|
544 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini CreateUri_Non-7-bit3_8
|
sl@0
|
545 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini CreateUri_Non-7-bit3_16
|
sl@0
|
546 |
|
sl@0
|
547 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini GetFileName_Non-7-bit1_8
|
sl@0
|
548 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini GetFileName_Non-7-bit1_16
|
sl@0
|
549 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini GetFileName_Non-7-bit2_8
|
sl@0
|
550 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini GetFileName_Non-7-bit2_16
|
sl@0
|
551 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini GetFileName_Non-7-bit3_8
|
sl@0
|
552 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini GetFileName_Non-7-bit3_16
|
sl@0
|
553 |
END_TESTCASE IWS-PREQ171-URI-CIT4.3.4-0001
|
sl@0
|
554 |
|
sl@0
|
555 |
|
sl@0
|
556 |
START_TESTCASE IWS-PREQ171-URI-CIT4.3.5-0001
|
sl@0
|
557 |
//URIs_With_Unicode_Chars
|
sl@0
|
558 |
|
sl@0
|
559 |
//! @file TestFileUriSuite.script
|
sl@0
|
560 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.3.5-0001
|
sl@0
|
561 |
//! @SYMTestCaseDesc Testing the handling of URIs with Unicode characters
|
sl@0
|
562 |
//! @SYMFssID
|
sl@0
|
563 |
//! @SYMTestStatus Implemented
|
sl@0
|
564 |
//! @SYMTestPriority High
|
sl@0
|
565 |
//! @SYMTestActions 1. Call CUri8::CreateFileUriL and TUriC::GetFileNameL passing filenames and URIs that contain Unicode characters.
|
sl@0
|
566 |
//! @SYMTestExpectedResults The File URI APIs must handle such URIs and filenames consistently and return appropriate filenames or URIs.
|
sl@0
|
567 |
//! @SYMTestType Integration
|
sl@0
|
568 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite_16_Bit.ini CreateUri_Unicode_Chars1_8
|
sl@0
|
569 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite_16_Bit.ini CreateUri_Unicode_Chars1_16
|
sl@0
|
570 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite_16_Bit.ini CreateUri_Unicode_Chars2_8
|
sl@0
|
571 |
RUN_TEST_STEP 100 TestFileUriServer TestGenerateFileUriStep z:\testdata\ini\TestFileUriSuite_16_Bit.ini CreateUri_Unicode_Chars2_16
|
sl@0
|
572 |
|
sl@0
|
573 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite_16_Bit.ini GetFileName_Unicode_Chars1_8
|
sl@0
|
574 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite_16_Bit.ini GetFileName_Unicode_Chars1_16
|
sl@0
|
575 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite_16_Bit.ini GetFileName_Unicode_Chars2_8
|
sl@0
|
576 |
RUN_TEST_STEP 100 TestFileUriServer TestGetFileNameFromUriStep z:\testdata\ini\TestFileUriSuite_16_Bit.ini GetFileName_Unicode_Chars2_16
|
sl@0
|
577 |
END_TESTCASE IWS-PREQ171-URI-CIT4.3.5-0001
|
sl@0
|
578 |
|
sl@0
|
579 |
|
sl@0
|
580 |
START_TESTCASE IWS-PREQ171-URI-CIT4.3.6-0001
|
sl@0
|
581 |
//Test_For_All_Files
|
sl@0
|
582 |
|
sl@0
|
583 |
//! @file TestFileUriSuite.script
|
sl@0
|
584 |
//! @SYMTestCaseID IWS-PREQ171-URI-CIT4.3.6-0001
|
sl@0
|
585 |
//! @SYMTestCaseDesc Testing the generation of URIs and converting them back to filename for all the
|
sl@0
|
586 |
//! files in the directory structure.
|
sl@0
|
587 |
//! @SYMFssID
|
sl@0
|
588 |
//! @SYMTestStatus Implemented
|
sl@0
|
589 |
//! @SYMTestPriority High
|
sl@0
|
590 |
//! @SYMTestActions 1. Run a DirScan, and for each file in the file system, call CUri8::CreateFileUriL to get a
|
sl@0
|
591 |
//! URI for the filename, and TUriC::GetFileNameL on that URI. Verify whether the returned
|
sl@0
|
592 |
//! filename is caselessly same as the filename that was passed initially.
|
sl@0
|
593 |
//! @SYMTestExpectedResults The generation of URI and converting it back to a filename is done consistently for all the files.
|
sl@0
|
594 |
//! @SYMTestType Integration
|
sl@0
|
595 |
// Testing the generation of URIs and converting them back to filename for all the
|
sl@0
|
596 |
// files in the directory structure. Even if one of them fails, the test step is considered to be fail.
|
sl@0
|
597 |
// Creating files with non-7-bit-safe and unicode characters to test their handling too
|
sl@0
|
598 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini File_With_Non-7-bit_Chars
|
sl@0
|
599 |
RUN_TEST_STEP 100 TestFileUriServer TestCreateFileStep z:\testdata\ini\TestFileUriSuite_16_Bit.ini File_With_Unicode_Chars
|
sl@0
|
600 |
|
sl@0
|
601 |
// The actual test
|
sl@0
|
602 |
RUN_TEST_STEP 100 TestFileUriServer TestForAllFilesStep
|
sl@0
|
603 |
|
sl@0
|
604 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite_Non_7_Bit.ini File_With_Non-7-bit_Chars
|
sl@0
|
605 |
RUN_TEST_STEP 100 TestFileUriServer TestDeleteFileStep z:\testdata\ini\TestFileUriSuite_16_Bit.ini File_With_Unicode_Chars
|
sl@0
|
606 |
END_TESTCASE IWS-PREQ171-URI-CIT4.3.6-0001
|
sl@0
|
607 |
|
sl@0
|
608 |
PRINT Completed_FileURI_Test
|
sl@0
|
609 |
|