os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-Misc-PublicApi-RAM.script
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-RFS-Misc-PublicApi-RAM.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,601 @@
1.4 +//
1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +//! @file
1.20 +//! @SYMTestSuiteName PBASE-F32-RFS-Misc-PublicApi-RAM
1.21 +//! @SYMScriptTestEnvironment This test script requires a basic ROM.
1.22 +//! @SYMScriptAuthor Oleg Kuznetsov
1.23 +//! @SYMScriptDescription The test script contains API tests for RFs functions that perform operations on a RAM (not removeable RAM drive).
1.24 +
1.25 +LOAD_SUITE T_Sfsrv
1.26 +
1.27 +
1.28 +START_TESTCASE PBASE-F32-RFS-PublicApi-3003
1.29 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3003
1.30 +//! @SYMAPI RFs
1.31 +//! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat) version) test.
1.32 +//! Uses API elements: NotifyChange(), MkDir(), RmDir().
1.33 +//! @SYMTestActions 1. Call Connect().
1.34 +//! 2. Call NotifyChange() and pass ENotifyDir as parameter and starts waiting for a notification on the background.
1.35 +//! 3. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter where <DRIVE> is a test drive letter.
1.36 +//! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter.
1.37 +//! 5. Call Close().
1.38 +//! @SYMTestStatus Implemented
1.39 +//! @SYMTestPriority Critical
1.40 +//! @SYMTestExpectedResults Request status is KErrNone after creation of directory.
1.41 +//! @SYMTestType CIT
1.42 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.43 + CREATE_OBJECT RFs RFs1
1.44 + COMMAND RFs1 new
1.45 + COMMAND RFs1 Connect
1.46 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3003-001-NotifyChange_command03
1.47 + COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3003-001-MkDir_command04
1.48 + COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3003-001-RmDir_command05
1.49 + OUTSTANDING
1.50 + COMMAND RFs1 Close
1.51 + COMMAND RFs1 ~
1.52 + END_TEST_BLOCK
1.53 +END_TESTCASE PBASE-F32-RFS-PublicApi-3003
1.54 +
1.55 +
1.56 +START_TESTCASE PBASE-F32-RFS-PublicApi-3004
1.57 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3004
1.58 +//! @SYMAPI RFs
1.59 +//! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) version) test.
1.60 +//! Uses API elements: NotifyChange(), MkDir(), RmDir().
1.61 +//! @SYMTestActions 1. Call Connect().
1.62 +//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter where <DRIVE> is a test drive letter.
1.63 +//! 3. Call NotifyChange() and pass ENotifyDir as parameter and starts waiting for a notification on the background.
1.64 +//! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter.
1.65 +//! 5. Call Close().
1.66 +//! @SYMTestStatus Implemented
1.67 +//! @SYMTestPriority Critical
1.68 +//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
1.69 +//! @SYMTestType CIT
1.70 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.71 + CREATE_OBJECT RFs RFs1
1.72 + COMMAND RFs1 new
1.73 + COMMAND RFs1 Connect
1.74 + COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3004-001-MkDir_command03
1.75 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3004-001-NotifyChange_command04
1.76 + COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3004-001-RmDir_command05
1.77 + OUTSTANDING
1.78 + COMMAND RFs1 Close
1.79 + COMMAND RFs1 ~
1.80 + END_TEST_BLOCK
1.81 +END_TESTCASE PBASE-F32-RFS-PublicApi-3004
1.82 +
1.83 +
1.84 +START_TESTCASE PBASE-F32-RFS-PublicApi-3005
1.85 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3005
1.86 +//! @SYMAPI RFs
1.87 +//! @SYMTestCaseDesc Function NotifyChangeCancel() test.
1.88 +//! Uses API elements: NotifyChange(),
1.89 +//! NotifyChangeCancel(), MkDir(), RmDir().
1.90 +//! @SYMTestActions 1. Call Connect().
1.91 +//! 2. Call NotifyChange() and pass ENotifyDir as parameter and starts waiting for a notification on the background.
1.92 +//! 3. Call NotifyChangeCancel().
1.93 +//! 4. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter where <DRIVE> is a test drive letter.
1.94 +//! 5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter.
1.95 +//! 6. Call Close().
1.96 +//! @SYMTestStatus Implemented
1.97 +//! @SYMTestPriority Critical
1.98 +//! @SYMTestExpectedResults Request status is KErrCancel(-3) after creation and deletion of directory.
1.99 +//! @SYMTestType CIT
1.100 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.101 + CREATE_OBJECT RFs RFs1
1.102 + COMMAND RFs1 new
1.103 + COMMAND RFs1 Connect
1.104 + COMMAND !AsyncError=-3 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3005-001-NotifyChange_command03
1.105 + COMMAND RFs1 NotifyChangeCancel PBASE-F32-RFS-PublicApi-3005-001-NotifyChangeCancel_command04
1.106 + COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3005-001-MkDir_command05
1.107 + COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3005-001-RmDir_command06
1.108 + OUTSTANDING
1.109 + COMMAND RFs1 Close
1.110 + COMMAND RFs1 ~
1.111 + END_TEST_BLOCK
1.112 +END_TESTCASE PBASE-F32-RFS-PublicApi-3005
1.113 +
1.114 +
1.115 +START_TESTCASE PBASE-F32-RFS-PublicApi-3006
1.116 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3006
1.117 +//! @SYMAPI RFs
1.118 +//! @SYMTestCaseDesc Function NotifyChangeCancel() (NotifyChangeCancel(TRequestStatus &aStat) version) test.
1.119 +//! Uses API elements: NotifyChange(),
1.120 +//! NotifyChangeCancel(), MkDir(), RmDir().
1.121 +//! @SYMTestActions 1. Call Connect().
1.122 +//! 2. Call NotifyChange() and pass ENotifyDir as parameter and starts waiting for a notification on the background.
1.123 +//! 3. Call NotifyChangeCancel() asynchronous version.
1.124 +//! 4. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter where <DRIVE> is a test drive letter.
1.125 +//! 5. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter.
1.126 +//! 6. Call Close().
1.127 +//! @SYMTestStatus Implemented
1.128 +//! @SYMTestPriority Critical
1.129 +//! @SYMTestExpectedResults Request status is KErrCancel(-3) after creation and deletion of directory.
1.130 +//! @SYMTestType CIT
1.131 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.132 + CREATE_OBJECT RFs RFs1
1.133 + COMMAND RFs1 new
1.134 + COMMAND RFs1 Connect
1.135 + COMMAND !AsyncError=-3 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3006-001-NotifyChange_command03
1.136 + COMMAND RFs1 NotifyChangeCancel PBASE-F32-RFS-PublicApi-3006-001-NotifyChangeCancel_command04
1.137 + COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3006-001-MkDir_command05
1.138 + COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3006-001-RmDir_command06
1.139 + OUTSTANDING
1.140 + COMMAND RFs1 Close
1.141 + COMMAND RFs1 ~
1.142 + END_TEST_BLOCK
1.143 +END_TESTCASE PBASE-F32-RFS-PublicApi-3006
1.144 +
1.145 +
1.146 +START_TESTCASE PBASE-F32-RFS-PublicApi-3007
1.147 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3007
1.148 +//! @SYMAPI RFs
1.149 +//! @SYMTestCaseDesc Function NotifyDiskSpace() test.
1.150 +//! Uses API elements: NotifyDiskSpace(), ReserveDriveSpace().
1.151 +//! @SYMTestActions 1. Call Connect().
1.152 +//! 2. Set NotifyDiskSpace treshold on a drive to freespace-1000 and starts waiting for a notification on the background.
1.153 +//! 3. Call ReserveDriveSpace() and pass the drive, 2000 as parameters.
1.154 +//! 4. Call Close().
1.155 +//! @SYMTestStatus Implemented
1.156 +//! @SYMTestPriority Critical
1.157 +//! @SYMTestExpectedResults Notification was received that threshold is crossed, request status is KErrNone
1.158 +//! @SYMTestType CIT
1.159 + START_TEST_BLOCK 200 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.160 + CREATE_OBJECT RFs RFs1
1.161 + COMMAND RFs1 new
1.162 + COMMAND RFs1 Connect
1.163 + COMMAND RFs1 Volume PBASE-F32-RFS-PublicApi-3007-001-Volume_command03
1.164 + COMMAND RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3007-001-NotifyDiskSpace_command04
1.165 + COMMAND RFs1 ReserveDriveSpace PBASE-F32-RFS-PublicApi-3007-001-ReserveDriveSpace_command05
1.166 + OUTSTANDING
1.167 + COMMAND RFs1 Close
1.168 + COMMAND RFs1 ~
1.169 + END_TEST_BLOCK
1.170 +END_TESTCASE PBASE-F32-RFS-PublicApi-3007
1.171 +
1.172 +
1.173 +START_TESTCASE PBASE-F32-RFS-PublicApi-3008
1.174 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3008
1.175 +//! @SYMAPI RFs
1.176 +//! @SYMTestCaseDesc Function NotifyDiskSpaceCancel() test.
1.177 +//! Uses API elements: NotifyDiskSpace(), NotifyDiskSpaceCancel().
1.178 +//! @SYMTestActions 1. Call Connect().
1.179 +//! 2. Call NotifyDiskSpace() and pass a drive, 3000 as parameters and starts waiting for a notification on the background.
1.180 +//! 3. Call NotifyDiskSpaceCancel().
1.181 +//! 4. Call Close().
1.182 +//! @SYMTestStatus Implemented
1.183 +//! @SYMTestPriority Critical
1.184 +//! @SYMTestExpectedResults Notification was canceled, request status is KErrCancel(-3)
1.185 +//! @SYMTestType CIT
1.186 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.187 + CREATE_OBJECT RFs RFs1
1.188 + COMMAND RFs1 new
1.189 + COMMAND RFs1 Connect
1.190 + COMMAND !AsyncError=-3 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3008-001-NotifyDiskSpace_command03
1.191 + COMMAND RFs1 NotifyDiskSpaceCancel PBASE-F32-RFS-PublicApi-3008-001-NotifyDiskSpaceCancel_command04
1.192 + OUTSTANDING
1.193 + COMMAND RFs1 Close
1.194 + COMMAND RFs1 ~
1.195 + END_TEST_BLOCK
1.196 +END_TESTCASE PBASE-F32-RFS-PublicApi-3008
1.197 +
1.198 +
1.199 +START_TESTCASE PBASE-F32-RFS-PublicApi-3009
1.200 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3009
1.201 +//! @SYMAPI RFs
1.202 +//! @SYMTestCaseDesc Function NotifyDiskSpaceCancel() (NotifyDiskSpaceCancel(TRequestStatus &aStat) version) test.
1.203 +//! Uses API elements: NotifyDiskSpace(), NotifyDiskSpaceCancel().
1.204 +//! @SYMTestActions 1. Call Connect().
1.205 +//! 2. Call NotifyDiskSpace() and pass a drive, 99999 as parameters and starts waiting for a notification on the background.
1.206 +//! 3. Call NotifyDiskSpaceCancel() passing the given request status.
1.207 +//! 4. Call Close().
1.208 +//! @SYMTestStatus Implemented
1.209 +//! @SYMTestPriority Critical
1.210 +//! @SYMTestExpectedResults Notification was canceled, request status is KErrCancel(-3)
1.211 +//! @SYMTestType CIT
1.212 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.213 + CREATE_OBJECT RFs RFs1
1.214 + COMMAND RFs1 new
1.215 + COMMAND RFs1 Connect
1.216 + COMMAND !AsyncError=-3 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3009-001-NotifyDiskSpace_command03
1.217 + COMMAND RFs1 NotifyDiskSpaceCancel PBASE-F32-RFS-PublicApi-3009-001-NotifyDiskSpaceCancel_command04
1.218 + OUTSTANDING
1.219 + COMMAND RFs1 Close
1.220 + COMMAND RFs1 ~
1.221 + END_TEST_BLOCK
1.222 +END_TESTCASE PBASE-F32-RFS-PublicApi-3009
1.223 +
1.224 +
1.225 +START_TESTCASE PBASE-F32-RFS-PublicApi-3013
1.226 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3013
1.227 +//! @SYMAPI RFs
1.228 +//! @SYMTestCaseDesc Function SetNotifyChange() test.
1.229 +//! Uses API elements: SetNotifyChange(),NotifyChange(), MkDir(), RmDir().
1.230 +//! @SYMTestActions 1. Call Connect().
1.231 +//! 2. Call SetNotifyChange() and pass "FALSE" as parameter.
1.232 +//! 3. Call NotifyChange() and pass ENotifyDir as parameter
1.233 +//! 4. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter where <DRIVE> is a test drive letter.
1.234 +//! 5. Call SetNotifyChange() and pass "TRUE" as parameter.
1.235 +//! 6. Call RmDir and pass "<DRIVE>:\base\T_Sfsrv\fgfd\" as parameter.
1.236 +//! 7. Call Close().
1.237 +//! @SYMTestStatus Implemented
1.238 +//! @SYMTestPriority Critical
1.239 +//! @SYMTestExpectedResults KErrNone, Notify doesn't occur after creating dir.
1.240 +//! @SYMTestType CIT
1.241 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.242 + CREATE_OBJECT RFs RFs1
1.243 + COMMAND RFs1 new
1.244 + COMMAND RFs1 Connect
1.245 + COMMAND RFs1 SetNotifyChange PBASE-F32-RFS-PublicApi-3013-001-SetNotifyChange_command03
1.246 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3013-001-NotifyChange_command04
1.247 + COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3013-001-MkDir_command05
1.248 + COMMAND RFs1 SetNotifyChange PBASE-F32-RFS-PublicApi-3013-001-SetNotifyChange_command06
1.249 + COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3013-001-RmDir_command07
1.250 + OUTSTANDING
1.251 + COMMAND RFs1 Close
1.252 + COMMAND RFs1 ~
1.253 + END_TEST_BLOCK
1.254 +END_TESTCASE PBASE-F32-RFS-PublicApi-3013
1.255 +
1.256 +
1.257 +START_TESTCASE PBASE-F32-RFS-PublicApi-3106
1.258 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3106
1.259 +//! @SYMAPI RFs
1.260 +//! @SYMTestCaseDesc Function NotifyChange(TNotifyType aType, TRequestStatus &aStat) test with notify type ENotifyAttributes.
1.261 +//! Uses API elements: NotifyChange(), MkDir(), RmDir().
1.262 +//! @SYMTestActions 1. Call Connect().
1.263 +//! 2. Call NotifyChange() passing ENotifyAttributes as parameter and starts waiting for a notification on the background.
1.264 +//! 3. Call SetEntry() and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter where <DRIVE> is a test drive letter, set att mask KEntryAttReadOnly, clear att mask KEntryAttNormal.
1.265 +//! 4. Call SetEntry() and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter where <DRIVE> is a test drive letter, set att mask KEntryAttNormal, clear att mask KEntryAttReadOnly.
1.266 +//! 5. Call Close().
1.267 +//! @SYMTestStatus Implemented
1.268 +//! @SYMTestPriority High
1.269 +//! @SYMTestExpectedResults Doesn't cause panic.
1.270 +//! @SYMTestType CIT
1.271 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.272 + CREATE_OBJECT RFs RFs1
1.273 + CREATE_OBJECT RFile RFile1
1.274 + COMMAND RFs1 new
1.275 + COMMAND RFs1 Connect
1.276 + COMMAND RFile1 new
1.277 + COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-3106-001-Create_command05
1.278 + COMMAND RFile1 Close
1.279 + COMMAND RFile1 ~
1.280 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3106-001-NotifyChange_command09
1.281 + COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-3106-001-SetEntry_command10
1.282 + OUTSTANDING
1.283 + COMMAND RFs1 SetEntry PBASE-F32-RFS-PublicApi-3106-001-SetEntry_command12
1.284 + COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-3106-001-Delete_command13
1.285 + COMMAND RFs1 Close
1.286 + COMMAND RFs1 ~
1.287 + END_TEST_BLOCK
1.288 +END_TESTCASE PBASE-F32-RFS-PublicApi-3106
1.289 +
1.290 +
1.291 +START_TESTCASE PBASE-F32-RFS-PublicApi-3108
1.292 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3108
1.293 +//! @SYMAPI RFs
1.294 +//! @SYMTestCaseDesc Function NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) negative test where incorrect path parameter.
1.295 +//! Uses API elements: NotifyChange(), MkDir(), RmDir().
1.296 +//! @SYMTestActions 1. Call Connect().
1.297 +//! 2. Call NotifyChange() and pass ENotifyAll as parameter and bad path as parameter "<DRIVE>:\base\T_Sfsrv\*" where <DRIVE> is a test drive letter and starts waiting for a notification on the background.
1.298 +//! 3. Call Close().
1.299 +//! @SYMTestStatus Implemented
1.300 +//! @SYMTestPriority High
1.301 +//! @SYMTestExpectedResults Function return status KErrBadName.
1.302 +//! @SYMTestType CIT
1.303 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.304 + CREATE_OBJECT RFs RFs1
1.305 + COMMAND RFs1 new
1.306 + COMMAND RFs1 Connect
1.307 + COMMAND !AsyncError=-28 RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3108-001-NotifyChange_command03
1.308 + OUTSTANDING
1.309 + COMMAND RFs1 Close
1.310 + COMMAND RFs1 ~
1.311 + END_TEST_BLOCK
1.312 +END_TESTCASE PBASE-F32-RFS-PublicApi-3108
1.313 +
1.314 +
1.315 +START_TESTCASE PBASE-F32-RFS-PublicApi-3112
1.316 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3112
1.317 +//! @SYMAPI RFs
1.318 +//! @SYMTestCaseDesc Function NotifyDiskSpace() negative test where threshold value less than zero.
1.319 +//! Uses API elements: NotifyDiskSpace().
1.320 +//! @SYMTestActions 1. Call Connect().
1.321 +//! 2. Call NotifyDiskSpace() and pass parameter -12345 as treshold value and starts waiting for a notification on the background.
1.322 +//! 3. Call Close().
1.323 +//! @SYMTestStatus Implemented
1.324 +//! @SYMTestPriority High
1.325 +//! @SYMTestExpectedResults Function return status KErrArgument.
1.326 +//! @SYMTestType CIT
1.327 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.328 + CREATE_OBJECT RFs RFs1
1.329 + COMMAND RFs1 new
1.330 + COMMAND RFs1 Connect
1.331 + COMMAND !AsyncError=-6 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3112-001-NotifyDiskSpace_command03
1.332 + OUTSTANDING
1.333 + COMMAND RFs1 Close
1.334 + COMMAND RFs1 ~
1.335 + END_TEST_BLOCK
1.336 +END_TESTCASE PBASE-F32-RFS-PublicApi-3112
1.337 +
1.338 +
1.339 +START_TESTCASE PBASE-F32-RFS-PublicApi-3113
1.340 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3113
1.341 +//! @SYMAPI RFs
1.342 +//! @SYMTestCaseDesc Function NotifyDiskSpace() negative test where the threshold value outside its limits.
1.343 +//! Uses API elements: NotifyDiskSpace().
1.344 +//! @SYMTestActions 1. Call Connect().
1.345 +//! 2. Call NotifyDiskSpace() and pass parameter greater than the limit of treshold value and starts waiting for a notification on the background.
1.346 +//! 3. Call Close().
1.347 +//! @SYMTestStatus Implemented
1.348 +//! @SYMTestPriority High
1.349 +//! @SYMTestExpectedResults Function return status KErrArgument.
1.350 +//! @SYMTestType CIT
1.351 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.352 + CREATE_OBJECT RFs RFs1
1.353 + COMMAND RFs1 new
1.354 + COMMAND RFs1 Connect
1.355 + COMMAND !AsyncError=-6 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3113-001-NotifyDiskSpace_command03
1.356 + OUTSTANDING
1.357 + COMMAND RFs1 Close
1.358 + COMMAND RFs1 ~
1.359 + END_TEST_BLOCK
1.360 +END_TESTCASE PBASE-F32-RFS-PublicApi-3113
1.361 +
1.362 +
1.363 +START_TESTCASE PBASE-F32-RFS-PublicApi-3118
1.364 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3118
1.365 +//! @SYMAPI RFs
1.366 +//! @SYMTestCaseDesc Function SetNotifyUser() test notifycation.
1.367 +//! Uses API elements: SetNotifyUser().
1.368 +//! @SYMTestActions 1. Call Connect().
1.369 +//! 2. Call SetNotifyUser() and pass "FALSE" as parameter.
1.370 +//! 3. Call GetNotifyUser() and check that it returns "FALSE".
1.371 +//! 4. Call RFile's Open(), open file as read only and pass "<DRIVE>:\base\T_Sfsrv\test.txt" as parameter where <DRIVE> is a test drive letter.
1.372 +//! 5. Call Write() trying to write data into readonly file and check that the notification not appears.
1.373 +//! 6. Call Close().
1.374 +//! @SYMTestStatus Implemented
1.375 +//! @SYMTestPriority High
1.376 +//! @SYMTestExpectedResults Doesn't cause panic.
1.377 +//! @SYMTestType CIT
1.378 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.379 + CREATE_OBJECT RFs RFs1
1.380 + CREATE_OBJECT RFile RFile1
1.381 + COMMAND RFs1 new
1.382 + COMMAND RFs1 Connect
1.383 + COMMAND RFs1 SetNotifyUser PBASE-F32-RFS-PublicApi-3118-001-SetNotifyUser_command03
1.384 + COMMAND RFs1 GetNotifyUser PBASE-F32-RFS-PublicApi-3118-001-GetNotifyUser_command04
1.385 + COMMAND RFile1 new
1.386 + COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-3118-001-Create_command07
1.387 + COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-3118-001-Write_command08
1.388 + COMMAND RFile1 Close
1.389 + COMMAND RFile1 ~
1.390 + COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-3118-001-Delete_command12
1.391 + COMMAND RFs1 Close
1.392 + COMMAND RFs1 ~
1.393 + END_TEST_BLOCK
1.394 +END_TESTCASE PBASE-F32-RFS-PublicApi-3118
1.395 +
1.396 +
1.397 +START_TESTCASE PBASE-F32-RFS-PublicApi-3125
1.398 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3125
1.399 +//! @SYMAPI RFs
1.400 +//! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat) version) test that passes 0 instead of TNotifyType (it starts from 1 if you see f32file.h).
1.401 +//! Uses API elements: NotifyChange(), MkDir(), RmDir().
1.402 +//! @SYMTestActions 1. Call Connect().
1.403 +//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\temp_dir\" as parameter where <DRIVE> is a test drive letter.
1.404 +//! 3. Call NotifyChange() and pass 0 and starts waiting for a notification on the background.
1.405 +//! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\temp_dir\" as parameter.
1.406 +//! 5. Call Close().
1.407 +//! @SYMTestStatus Implemented
1.408 +//! @SYMTestPriority Critical
1.409 +//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
1.410 +//! @SYMTestType CIT
1.411 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.412 + CREATE_OBJECT RFs RFs1
1.413 + COMMAND RFs1 new
1.414 + COMMAND RFs1 Connect
1.415 + COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3125-001-MkDir_command03
1.416 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3125-001-NotifyChange_command04
1.417 + COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3125-001-RmDir_command05
1.418 + OUTSTANDING
1.419 + COMMAND RFs1 Close
1.420 + COMMAND RFs1 ~
1.421 + END_TEST_BLOCK
1.422 +END_TESTCASE PBASE-F32-RFS-PublicApi-3125
1.423 +
1.424 +
1.425 +START_TESTCASE PBASE-F32-RFS-PublicApi-3126
1.426 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3126
1.427 +//! @SYMAPI RFs
1.428 +//! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) version) test that passes -1 instead of TNotifyType (it starts from 1 if you see f32file.h).
1.429 +//! Uses API elements: NotifyChange(), MkDir(), RmDir().
1.430 +//! @SYMTestActions 1. Call Connect().
1.431 +//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\temp_dir\" as parameter where <DRIVE> is a test drive letter.
1.432 +//! 3. Call NotifyChange() and pass -1 and starts waiting for a notification on the background.
1.433 +//! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\temp_dir\" as parameter.
1.434 +//! 5. Call Close().
1.435 +//! @SYMTestStatus Implemented
1.436 +//! @SYMTestPriority Critical
1.437 +//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
1.438 +//! @SYMTestType CIT
1.439 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.440 + CREATE_OBJECT RFs RFs1
1.441 + COMMAND RFs1 new
1.442 + COMMAND RFs1 Connect
1.443 + COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3126-001-MkDir_command03
1.444 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3126-001-NotifyChange_command04
1.445 + COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3126-001-RmDir_command05
1.446 + OUTSTANDING
1.447 + COMMAND RFs1 Close
1.448 + COMMAND RFs1 ~
1.449 + END_TEST_BLOCK
1.450 +END_TESTCASE PBASE-F32-RFS-PublicApi-3126
1.451 +
1.452 +
1.453 +START_TESTCASE PBASE-F32-RFS-PublicApi-3128
1.454 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3128
1.455 +//! @SYMAPI RFs
1.456 +//! @SYMTestCaseDesc Function NotifyDiskSpaceCancel() (NotifyDiskSpaceCancel(TRequestStatus &aStat) version) test that cancel same request twice.
1.457 +//! Uses API elements: NotifyDiskSpace(), NotifyDiskSpaceCancel().
1.458 +//! @SYMTestActions 1. Call Connect().
1.459 +//! 2. Call NotifyDiskSpace() and pass a drive, 99999 as parameters and starts waiting for a notification on the background.
1.460 +//! 3. Call NotifyDiskSpaceCancel() passing the request status.
1.461 +//! 4. Call NotifyDiskSpaceCancel() passing the request status again.
1.462 +//! 5. Call Close().
1.463 +//! @SYMTestStatus Implemented
1.464 +//! @SYMTestPriority Critical
1.465 +//! @SYMTestExpectedResults Notification was canceled, request status is KErrCancel(-3) and the call doesn't cause panic.
1.466 +//! @SYMTestType CIT
1.467 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.468 + CREATE_OBJECT RFs RFs1
1.469 + COMMAND RFs1 new
1.470 + COMMAND RFs1 Connect
1.471 + COMMAND !AsyncError=-3 RFs1 NotifyDiskSpace PBASE-F32-RFS-PublicApi-3128-001-NotifyDiskSpace_command03
1.472 + COMMAND RFs1 NotifyDiskSpaceCancel PBASE-F32-RFS-PublicApi-3128-001-NotifyDiskSpaceCancel_command04
1.473 + COMMAND RFs1 NotifyDiskSpaceCancel PBASE-F32-RFS-PublicApi-3128-001-NotifyDiskSpaceCancel_command05
1.474 + OUTSTANDING
1.475 + COMMAND RFs1 Close
1.476 + COMMAND RFs1 ~
1.477 + END_TEST_BLOCK
1.478 +END_TESTCASE PBASE-F32-RFS-PublicApi-3128
1.479 +
1.480 +START_TESTCASE PBASE-F32-RFS-PublicApi-3015
1.481 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3015
1.482 +//! @SYMAPI RFs
1.483 +//! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) version) test that uses a root path as a monitored path.
1.484 +//! Uses API elements: NotifyChange(), MkDir(), RmDir().
1.485 +//! @SYMTestActions 1. Call Connect().
1.486 +//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\temp_dir\" as parameter where <DRIVE> is a test drive letter.
1.487 +//! 3. Call NotifyChange() and pass ENotifyDir and "<DRIVE>:\" as parameters and starts waiting for a notification on the background.
1.488 +//! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\temp_dir\" as parameter.
1.489 +//! 5. Call Close().
1.490 +//! @SYMTestStatus Implemented
1.491 +//! @SYMTestPriority Critical
1.492 +//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
1.493 +//! @SYMTestType CIT
1.494 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.495 + CREATE_OBJECT RFs RFs1
1.496 + COMMAND RFs1 new
1.497 + COMMAND RFs1 Connect
1.498 + COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3015-001-MkDir_command03
1.499 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3015-001-NotifyChange_command04
1.500 + COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3015-001-RmDir_command05
1.501 + OUTSTANDING
1.502 + COMMAND RFs1 Close
1.503 + COMMAND RFs1 ~
1.504 + END_TEST_BLOCK
1.505 +END_TESTCASE PBASE-F32-RFS-PublicApi-3015
1.506 +
1.507 +
1.508 +START_TESTCASE PBASE-F32-RFS-PublicApi-3110
1.509 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3110
1.510 +//! @SYMAPI RFs
1.511 +//! @SYMTestCaseDesc Function NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) test with notify type ENotifyEntry, EFileShareAny, EFileShareWrite, EFileShareFile.
1.512 +//! Uses API elements: NotifyChange(), MkDir(), RmDir().
1.513 +//! @SYMTestActions 1. Call Connect().
1.514 +//! 2. Call NotifyChange() passing ENotifyEntry as parameter and "<DRIVE>:\base\T_Sfsrv" as parameter where <DRIVE> is a test drive letter and starts waiting for a notification on the background.
1.515 +//! 3. Call Create() passing EFileShareAny as file mode and "<DRIVE>:\base\T_Sfsrv\test.ttt" as parameter where <DRIVE> is a test drive letter.
1.516 +//! 4. Call NotifyChange() passing ENotifyWrite as parameter and "<DRIVE>:\base\T_Sfsrv" as parameter where <DRIVE> is a test drive letter and starts waiting for a notification on the background.
1.517 +//! 5. Call Write() passing some data to write as argument.
1.518 +//! 6. Call Close() to close created file.
1.519 +//! 7. Call NotifyChange() passing ENotifyFile as parameter and "<DRIVE>:\base\T_Sfsrv" as parameter where <DRIVE> is a test drive letter and starts waiting for a notification on the background.
1.520 +//! 8. Call Delete() passing "<DRIVE>:\base\T_Sfsrv\test.ttt" as parameter where <DRIVE> is a test drive let
1.521 +//! 9. Call Close().
1.522 +//! @SYMTestStatus Implemented
1.523 +//! @SYMTestPriority High
1.524 +//! @SYMTestExpectedResults Doesn't cause panic.
1.525 +//! @SYMTestType CIT
1.526 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.527 + CREATE_OBJECT RFs RFs1
1.528 + CREATE_OBJECT RFile RFile1
1.529 + COMMAND RFs1 new
1.530 + COMMAND RFs1 Connect
1.531 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3110-001-NotifyChange_command03
1.532 + COMMAND RFile1 new
1.533 + COMMAND RFile1 Create PBASE-F32-RFS-PublicApi-3110-001-Create_command06
1.534 + OUTSTANDING
1.535 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3110-001-NotifyChange_command09
1.536 + COMMAND RFile1 Write PBASE-F32-RFS-PublicApi-3110-001-Write_command11
1.537 + OUTSTANDING
1.538 + COMMAND RFile1 Close
1.539 + COMMAND RFile1 ~
1.540 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3110-001-NotifyChange_command16
1.541 + COMMAND RFs1 Delete PBASE-F32-RFS-PublicApi-3110-001-Delete_command17
1.542 + OUTSTANDING
1.543 + COMMAND RFs1 Close
1.544 + COMMAND RFs1 ~
1.545 + END_TEST_BLOCK
1.546 +END_TESTCASE PBASE-F32-RFS-PublicApi-3110
1.547 +
1.548 +
1.549 +START_TESTCASE PBASE-F32-RFS-PublicApi-3123
1.550 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3123
1.551 +//! @SYMAPI RFs
1.552 +//! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) version) test that passes 0 instead of TNotifyType (it starts from 1 if you see f32file.h).
1.553 +//! Uses API elements: NotifyChange(), MkDir(), RmDir().
1.554 +//! @SYMTestActions 1. Call Connect().
1.555 +//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\temp_dir\" as parameter where <DRIVE> is a test drive letter.
1.556 +//! 3. Call NotifyChange() and pass 0 and "<DRIVE>:\" as parameters and starts waiting for a notification on the background.
1.557 +//! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\temp_dir\" as parameter.
1.558 +//! 5. Call Close().
1.559 +//! @SYMTestStatus Implemented
1.560 +//! @SYMTestPriority Critical
1.561 +//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
1.562 +//! @SYMTestType CIT
1.563 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.564 + CREATE_OBJECT RFs RFs1
1.565 + COMMAND RFs1 new
1.566 + COMMAND RFs1 Connect
1.567 + COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3123-001-MkDir_command03
1.568 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3123-001-NotifyChange_command04
1.569 + COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3123-001-RmDir_command05
1.570 + OUTSTANDING
1.571 + COMMAND RFs1 Close
1.572 + COMMAND RFs1 ~
1.573 + END_TEST_BLOCK
1.574 +END_TESTCASE PBASE-F32-RFS-PublicApi-3123
1.575 +
1.576 +
1.577 +START_TESTCASE PBASE-F32-RFS-PublicApi-3124
1.578 +//! @SYMTestCaseID PBASE-F32-RFS-PublicApi-3124
1.579 +//! @SYMAPI RFs
1.580 +//! @SYMTestCaseDesc Function NotifyChange() (NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) version) test that passes -1 instead of TNotifyType (it starts from 1 if you see f32file.h).
1.581 +//! Uses API elements: NotifyChange(), MkDir(), RmDir().
1.582 +//! @SYMTestActions 1. Call Connect().
1.583 +//! 2. Call MkDir() and pass "<DRIVE>:\base\T_Sfsrv\temp_dir\" as parameter where <DRIVE> is a test drive letter.
1.584 +//! 3. Call NotifyChange() and pass -1 and "<DRIVE>:\" as parameters and starts waiting for a notification on the background.
1.585 +//! 4. Call RmDir() and pass "<DRIVE>:\base\T_Sfsrv\fgfd\temp_dir\" as parameter.
1.586 +//! 5. Call Close().
1.587 +//! @SYMTestStatus Implemented
1.588 +//! @SYMTestPriority Critical
1.589 +//! @SYMTestExpectedResults Request status is KErrNone after deletion of directory.
1.590 +//! @SYMTestType CIT
1.591 + START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Misc-PublicApi-RAM.ini
1.592 + CREATE_OBJECT RFs RFs1
1.593 + COMMAND RFs1 new
1.594 + COMMAND RFs1 Connect
1.595 + COMMAND RFs1 MkDir PBASE-F32-RFS-PublicApi-3124-001-MkDir_command03
1.596 + COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-3124-001-NotifyChange_command04
1.597 + COMMAND RFs1 RmDir PBASE-F32-RFS-PublicApi-3124-001-RmDir_command05
1.598 + OUTSTANDING
1.599 + COMMAND RFs1 Close
1.600 + COMMAND RFs1 ~
1.601 + END_TEST_BLOCK
1.602 +END_TESTCASE PBASE-F32-RFS-PublicApi-3124
1.603 +
1.604 +