os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-FindFile-PublicApi-OS.script
changeset 0 bde4ae8d615e
     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-FindFile-PublicApi-OS.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,829 @@
     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-sfsrv-publicapi-os
    1.21 +//! @SYMScriptTestEnvironment		This test script requires a basic ROM.
    1.22 +//! @SYMScriptAuthor 			Dmitri Trofimov
    1.23 +//! @SYMScriptDescription		The test script contains API tests for the following functions of TFindFile class:
    1.24 +//! @SYMCreationDate			17/12/2006 
    1.25 +//! TFindFile(RFs &aFs);
    1.26 +//! TInt FindByPath(const TDesC &aFileName, const TDesC *aPathList);
    1.27 +//! TInt FindByDir(const TDesC &aFileName, const TDesC &aDirPath);
    1.28 +//! TInt FindWildByPath(const TDesC &aFileName, const TDesC *aPathList, CDir *&aDirList);
    1.29 +//! TInt FindWildByDir(const TDesC &aFileName, const TDesC &aDirPath, CDir *&aDir);
    1.30 +//! TInt Find();
    1.31 +//! TInt FindWild(CDir *&aDirList);
    1.32 +//! const TDesC &File() const;
    1.33 +
    1.34 +LOAD_SUITE				T_SfSrv
    1.35 +DELAY					5000
    1.36 +
    1.37 +
    1.38 +START_TESTCASE				SETUP_FILES
    1.39 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
    1.40 +			CREATE_OBJECT	RFs	RFs1
    1.41 +			CREATE_OBJECT	CFileMan	CFileMan1
    1.42 +			COMMAND		RFs1		new
    1.43 +			COMMAND		RFs1		Connect
    1.44 +			COMMAND		RFs1		MkDirAll	test_dir
    1.45 +			COMMAND		RFs1		MkDirAll	test_dir1
    1.46 +			COMMAND		RFs1		MkDirAll	test_dir2
    1.47 +			COMMAND		CFileMan1	NewL	fileman_fs
    1.48 +			COMMAND		CFileMan1	Copy	test_file1
    1.49 +			COMMAND		CFileMan1	Close
    1.50 +			COMMAND		CFileMan1	Copy	test_file2
    1.51 +			COMMAND		CFileMan1	Close
    1.52 +			COMMAND		CFileMan1	Copy	test_file3
    1.53 +			COMMAND		CFileMan1	Close
    1.54 +			COMMAND		CFileMan1	~
    1.55 +			COMMAND		RFs1	~
    1.56 +	END_TEST_BLOCK
    1.57 +END_TESTCASE				SETUP_FILES
    1.58 +
    1.59 +
    1.60 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0001
    1.61 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0001
    1.62 +//! @SYMAPI				TFindFile
    1.63 +//! @SYMTestCaseDesc			TFindFile() passing a reference to a connected file session as a parameter. This tests for successful object creation and initialization.
    1.64 +//!					Uses API elements: TFindFile()
    1.65 +//! @SYMTestActions			1. Create RFs object.
    1.66 +//!					2. Call Connect().
    1.67 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
    1.68 +//!
    1.69 +//! @SYMTestStatus			Implemented
    1.70 +//! @SYMTestPriority			Critical
    1.71 +//! @SYMTestExpectedResults		Function does not leave nor panic
    1.72 +//! @SYMTestType			CIT
    1.73 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
    1.74 +			CREATE_OBJECT	RFs	RFs1	
    1.75 +			CREATE_OBJECT	TFindFile	TFindFile1	
    1.76 +			COMMAND		RFs1		new		
    1.77 +			COMMAND		RFs1		Connect		
    1.78 +			COMMAND		TFindFile1	new		PBASE-F32-FindFile-PublicApi-0001-command4new
    1.79 +			COMMAND		TFindFile1	~		
    1.80 +			COMMAND		RFs1	~		
    1.81 +	END_TEST_BLOCK
    1.82 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0001
    1.83 +
    1.84 +
    1.85 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0002
    1.86 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0002
    1.87 +//! @SYMAPI				TFindFile
    1.88 +//! @SYMTestCaseDesc			FindByPath() test. This tests for successful finding of a file.
    1.89 +//!					Uses API elements: FindByPath()
    1.90 +//! @SYMTestActions			1. Create RFs object.
    1.91 +//!					2. Call Connect().
    1.92 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
    1.93 +//!					4. Call FindByPath()  passing file name "Test1.txt" and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
    1.94 +//!
    1.95 +//! @SYMTestStatus			Implemented
    1.96 +//! @SYMTestPriority			Critical
    1.97 +//! @SYMTestExpectedResults		FindByPath returns KErrNone.
    1.98 +//! @SYMTestType			CIT
    1.99 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.100 +			CREATE_OBJECT		RFs		RFs1	
   1.101 +			CREATE_OBJECT		TFindFile	TFindFile1	
   1.102 +			CREATE_OBJECT		TEntry		TEntry1
   1.103 +			CREATE_OBJECT		CDir		CDir1
   1.104 +			COMMAND			RFs1		new		
   1.105 +			COMMAND			RFs1		Connect		
   1.106 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0002-command4new
   1.107 +			COMMAND			TFindFile1	FindByPath	PBASE-F32-FindFile-PublicApi-0002-command5FindByPath
   1.108 +			COMMAND			TFindFile1	~		
   1.109 +			COMMAND			RFs1		~		
   1.110 +	END_TEST_BLOCK
   1.111 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0002
   1.112 +
   1.113 +
   1.114 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0003
   1.115 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0003
   1.116 +//! @SYMAPI				TFindFile
   1.117 +//! @SYMTestCaseDesc			FindByPath() negative test. This tests for function returning KErrNotFound when the file cannot be found.
   1.118 +//!					Uses API elements: FindByPath()
   1.119 +//! @SYMTestActions			1. Create RFs object.
   1.120 +//!					2. Call Connect().
   1.121 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.122 +//!					4. Call FindByPath() passing file name "Test3.txt" and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
   1.123 +//!
   1.124 +//! @SYMTestStatus			Implemented
   1.125 +//! @SYMTestPriority			Critical
   1.126 +//! @SYMTestExpectedResults		FindByPath returns KErrNotFound.
   1.127 +//! @SYMTestType			CIT
   1.128 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.129 +			CREATE_OBJECT		RFs		RFs1	
   1.130 +			CREATE_OBJECT		TFindFile	TFindFile1
   1.131 +			CREATE_OBJECT		CDir	CDir1
   1.132 +			COMMAND			RFs1		new			
   1.133 +			COMMAND			RFs1		Connect			
   1.134 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0003-command4new
   1.135 +			COMMAND	!Error=-1	TFindFile1	FindByPath	PBASE-F32-FindFile-PublicApi-0003-command5FindByPath
   1.136 +			COMMAND			TFindFile1	~			
   1.137 +			COMMAND			RFs1		~			
   1.138 +	END_TEST_BLOCK
   1.139 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0003
   1.140 +
   1.141 +
   1.142 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0004
   1.143 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0004
   1.144 +//! @SYMAPI				TFindFile
   1.145 +//! @SYMTestCaseDesc			FindByPath() negative test. This test for function returning KErrArgument when filename is empty.
   1.146 +//!					Uses API elements: FindByPath()
   1.147 +//! @SYMTestActions			1. Create RFs object.
   1.148 +//!					2. Call Connect().
   1.149 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.150 +//!					4. Call FindByPath() passing file empty name and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
   1.151 +//!
   1.152 +//! @SYMTestStatus			Implemented
   1.153 +//! @SYMTestPriority			Critical
   1.154 +//! @SYMTestExpectedResults		FindByPath returns KErrArgument.
   1.155 +//! @SYMTestType			CIT
   1.156 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.157 +			CREATE_OBJECT		RFs	RFs1	
   1.158 +			CREATE_OBJECT		TFindFile	TFindFile1
   1.159 +			CREATE_OBJECT		CDir	CDir1
   1.160 +			COMMAND			RFs1	new		
   1.161 +			COMMAND			RFs1	Connect		
   1.162 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0004-command4new
   1.163 +			COMMAND	!Error=-6	TFindFile1	FindByPath	PBASE-F32-FindFile-PublicApi-0004-command5FindByPath
   1.164 +			COMMAND			TFindFile1	~		
   1.165 +			COMMAND			RFs1	~		
   1.166 +	END_TEST_BLOCK
   1.167 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0004
   1.168 +
   1.169 +
   1.170 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0005
   1.171 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0005
   1.172 +//! @SYMAPI				TFindFile
   1.173 +//! @SYMTestCaseDesc			FindByPath() negative test. This test for function returning KErrArgument when filename and path is empty.
   1.174 +//!					Uses API elements: FindByPath()
   1.175 +//! @SYMTestActions			1. Create RFs object.
   1.176 +//!					2. Call Connect().
   1.177 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.178 +//!					4. Call FindByPath() passing file empty name and empty path as arguments.
   1.179 +//!
   1.180 +//! @SYMTestStatus			Implemented
   1.181 +//! @SYMTestPriority			Critical
   1.182 +//! @SYMTestExpectedResults		FindByPath returns KErrArgument.
   1.183 +//! @SYMTestType			CIT
   1.184 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.185 +			CREATE_OBJECT		RFs		RFs1	
   1.186 +			CREATE_OBJECT		TFindFile	TFindFile1
   1.187 +			CREATE_OBJECT		CDir	CDir1
   1.188 +			COMMAND			RFs1		new		
   1.189 +			COMMAND			RFs1		Connect		
   1.190 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0005-command4new
   1.191 +			COMMAND	!Error=-6	TFindFile1	FindByPath	PBASE-F32-FindFile-PublicApi-0005-command5FindByPath
   1.192 +			COMMAND			TFindFile1	~		
   1.193 +			COMMAND			RFs1		~		
   1.194 +	END_TEST_BLOCK
   1.195 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0005
   1.196 +
   1.197 +
   1.198 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0006
   1.199 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0006
   1.200 +//! @SYMAPI				TFindFile
   1.201 +//! @SYMTestCaseDesc			FindByPath() negative test where filename has wildcard and other characters.
   1.202 +//!					Uses API elements: FindByPath()
   1.203 +//! @SYMTestActions			1. Create RFs object.
   1.204 +//!					2. Call Connect().
   1.205 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.206 +//!					4. Call FindByPath() passing file name "$%&?*" and path "\" as arguments.
   1.207 +//!
   1.208 +//! @SYMTestStatus			Implemented
   1.209 +//! @SYMTestPriority			Critical
   1.210 +//! @SYMTestExpectedResults		FindByPath returns KErrNotFound.
   1.211 +//! @SYMTestType			CIT
   1.212 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.213 +			CREATE_OBJECT		RFs	RFs1	
   1.214 +			CREATE_OBJECT		TFindFile	TFindFile1
   1.215 +			CREATE_OBJECT		CDir		CDir1
   1.216 +			COMMAND			RFs1		new		
   1.217 +			COMMAND			RFs1		Connect		
   1.218 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0006-command4new
   1.219 +			COMMAND	!Error=-1	TFindFile1	FindByPath	PBASE-F32-FindFile-PublicApi-0006-command5FindByPath
   1.220 +			COMMAND			TFindFile1	~		
   1.221 +			COMMAND			RFs1	~		
   1.222 +	END_TEST_BLOCK
   1.223 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0006
   1.224 +
   1.225 +
   1.226 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0007
   1.227 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0007
   1.228 +//! @SYMAPI				TFindFile
   1.229 +//! @SYMTestCaseDesc			FindByPath() negative test where path has wildcard and other characters.
   1.230 +//!					Uses API elements: FindByPath()
   1.231 +//! @SYMTestActions			1. Create RFs object.
   1.232 +//!					2. Call Connect().
   1.233 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.234 +//!					4. Call FindByPath() passing file name "a" and path "$%&*?" as arguments.
   1.235 +//!
   1.236 +//! @SYMTestStatus			Implemented
   1.237 +//! @SYMTestPriority			Critical
   1.238 +//! @SYMTestExpectedResults		FindByPath returns KErrNotFound.
   1.239 +//! @SYMTestType			CIT
   1.240 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.241 +			CREATE_OBJECT		RFs	RFs1	
   1.242 +			CREATE_OBJECT		TFindFile	TFindFile1
   1.243 +			CREATE_OBJECT		CDir	CDir1
   1.244 +			COMMAND			RFs1		new		
   1.245 +			COMMAND			RFs1		Connect		
   1.246 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0007-command4new
   1.247 +			COMMAND	!Error=-1	TFindFile1	FindByPath	PBASE-F32-FindFile-PublicApi-0007-command5FindByPath
   1.248 +			COMMAND			TFindFile1	~		
   1.249 +			COMMAND			RFs1	~		
   1.250 +	END_TEST_BLOCK
   1.251 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0007
   1.252 +
   1.253 +
   1.254 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0008
   1.255 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0008
   1.256 +//! @SYMAPI				TFindFile
   1.257 +//! @SYMTestCaseDesc			FindByDir() test. This test for successful finding of file.
   1.258 +//!					Uses API elements: FindByDir()
   1.259 +//! @SYMTestActions			1. Create RFs object.
   1.260 +//!					2. Call Connect().
   1.261 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.262 +//!					4. Call FindByDir() passing file name "Test1.txt" and path "\base\t_sfsrv\t_findfile\test1\" as arguments.
   1.263 +//!
   1.264 +//! @SYMTestStatus			Implemented
   1.265 +//! @SYMTestPriority			Critical
   1.266 +//! @SYMTestExpectedResults		FindByDir() returns KErrNone.
   1.267 +//! @SYMTestType			CIT
   1.268 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.269 +			CREATE_OBJECT	RFs	RFs1	
   1.270 +			CREATE_OBJECT	TFindFile	TFindFile1	
   1.271 +			CREATE_OBJECT	TEntry	TEntry1
   1.272 +			CREATE_OBJECT	CDir	CDir1
   1.273 +			COMMAND		RFs1	new		
   1.274 +			COMMAND		RFs1	Connect		
   1.275 +			COMMAND		TFindFile1	new		PBASE-F32-FindFile-PublicApi-0008-command4new
   1.276 +			COMMAND		TFindFile1	FindByDir	PBASE-F32-FindFile-PublicApi-0008-command5FindByDir
   1.277 +			COMMAND		TFindFile1	~		
   1.278 +			COMMAND		RFs1	~		
   1.279 +	END_TEST_BLOCK
   1.280 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0008
   1.281 +
   1.282 +
   1.283 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0009
   1.284 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0009
   1.285 +//! @SYMAPI				TFindFile
   1.286 +//! @SYMTestCaseDesc			FindByDir() negative test. This tests for function returning KErrNotFound when the file cannot be found. 
   1.287 +//!					Uses API elements: FindByDir()
   1.288 +//! @SYMTestActions			1. Create RFs object.
   1.289 +//!					2. Call Connect().
   1.290 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.291 +//!					4. Call FindByDir() passing file name "Test3.txt" and path "\base\t_sfsrv\t_findfile\test1\" as arguments.
   1.292 +//!
   1.293 +//! @SYMTestStatus			Implemented
   1.294 +//! @SYMTestPriority			Critical
   1.295 +//! @SYMTestExpectedResults		FindByDir() returns KErrNotFound.
   1.296 +//! @SYMTestType			CIT
   1.297 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.298 +			CREATE_OBJECT		RFs	RFs1	
   1.299 +			CREATE_OBJECT		TFindFile	TFindFile1
   1.300 +			CREATE_OBJECT		CDir	CDir1
   1.301 +			COMMAND			RFs1	new		
   1.302 +			COMMAND			RFs1	Connect		
   1.303 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0009-command4new
   1.304 +			COMMAND	!Error=-1	TFindFile1	FindByDir	PBASE-F32-FindFile-PublicApi-0009-command5FindByDir
   1.305 +			COMMAND			TFindFile1	~		
   1.306 +			COMMAND			RFs1	~		
   1.307 +	END_TEST_BLOCK
   1.308 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0009
   1.309 +
   1.310 +
   1.311 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0010
   1.312 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0010
   1.313 +//! @SYMAPI				TFindFile
   1.314 +//! @SYMTestCaseDesc			FindByDir() negative test. This tests for function returning KErrArgument when file name is empty.
   1.315 +//!					Uses API elements: FindByDir()
   1.316 +//! @SYMTestActions			1. Create RFs object.
   1.317 +//!					2. Call Connect().
   1.318 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.319 +//!					4. Call FindByDir() passing file empty name and path "\base\t_sfsrv\t_findfile\test1\" as arguments.
   1.320 +//!
   1.321 +//! @SYMTestStatus			Implemented
   1.322 +//! @SYMTestPriority			Critical
   1.323 +//! @SYMTestExpectedResults		FindByDir() returns KErrArgument.
   1.324 +//! @SYMTestType			CIT
   1.325 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.326 +			CREATE_OBJECT		RFs	RFs1	
   1.327 +			CREATE_OBJECT		TFindFile	TFindFile1
   1.328 +			CREATE_OBJECT		CDir	CDir1
   1.329 +			COMMAND			RFs1	new		
   1.330 +			COMMAND			RFs1	Connect		
   1.331 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0010-command4new
   1.332 +			COMMAND	!Error=-6	TFindFile1	FindByDir	PBASE-F32-FindFile-PublicApi-0010-command5FindByDir
   1.333 +			COMMAND			TFindFile1	~		
   1.334 +			COMMAND			RFs1	~		
   1.335 +	END_TEST_BLOCK
   1.336 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0010
   1.337 +
   1.338 +
   1.339 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0011
   1.340 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0011
   1.341 +//! @SYMAPI				TFindFile
   1.342 +//! @SYMTestCaseDesc			FindWildByPath() test. This tests for successful finding of file with wildcard.
   1.343 +//!					Uses API elements: FindWildByPath()
   1.344 +//! @SYMTestActions			1. Create RFs object.
   1.345 +//!					2. Call Connect().
   1.346 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.347 +//!					4. Call FindWildByPath() passing file name "Test?.*" and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
   1.348 +//!
   1.349 +//! @SYMTestStatus			Implemented
   1.350 +//! @SYMTestPriority			Critical
   1.351 +//! @SYMTestExpectedResults		FindWildByPath() returns KErrNone.
   1.352 +//! @SYMTestType			CIT
   1.353 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.354 +			CREATE_OBJECT	RFs		RFs1	
   1.355 +			CREATE_OBJECT	TFindFile	TFindFile1	
   1.356 +			CREATE_OBJECT	TEntry		TEntry1
   1.357 +			CREATE_OBJECT	CDir		CDir1
   1.358 +			COMMAND		RFs1		new		
   1.359 +			COMMAND		RFs1		Connect		
   1.360 +			COMMAND		TFindFile1	new		PBASE-F32-FindFile-PublicApi-0011-command4new
   1.361 +			COMMAND		TFindFile1	FindWildByPath	PBASE-F32-FindFile-PublicApi-0011-command5FindWildByPath
   1.362 +			//!//!COMMAND		TFindFile1	cleanup		
   1.363 +			COMMAND		TFindFile1	~		
   1.364 +			COMMAND		RFs1	~		
   1.365 +	END_TEST_BLOCK
   1.366 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0011
   1.367 +
   1.368 +
   1.369 +
   1.370 +
   1.371 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0012
   1.372 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0012
   1.373 +//! @SYMAPI				TFindFile
   1.374 +//! @SYMTestCaseDesc			FindWildByPath() negative test. This tests for function returning KErrNotFound when the file cannot be found.
   1.375 +//!					Uses API elements: FindWildByPath()
   1.376 +//! @SYMTestActions			1. Create RFs object.
   1.377 +//!					2. Call Connect().
   1.378 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.379 +//!					4. Call FindWildByPath() passing file name "?ester.*" and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
   1.380 +//!
   1.381 +//! @SYMTestStatus			Implemented
   1.382 +//! @SYMTestPriority			Critical
   1.383 +//! @SYMTestExpectedResults		FindWildByPath() returns KErrNotFound.
   1.384 +//! @SYMTestType			CIT
   1.385 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.386 +			CREATE_OBJECT		RFs		RFs1	
   1.387 +			CREATE_OBJECT		TFindFile	TFindFile1
   1.388 +			CREATE_OBJECT		CDir		CDir1
   1.389 +			COMMAND			RFs1		new		
   1.390 +			COMMAND			RFs1		Connect		
   1.391 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0012-command4new
   1.392 +			COMMAND	!Error=-1	TFindFile1	FindWildByPath	PBASE-F32-FindFile-PublicApi-0012-command5FindWildByPath
   1.393 +			//!//!COMMAND			TFindFile1	cleanup		
   1.394 +			COMMAND			TFindFile1	~		
   1.395 +			COMMAND			RFs1	~		
   1.396 +	END_TEST_BLOCK
   1.397 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0012
   1.398 +
   1.399 +
   1.400 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0013
   1.401 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0013
   1.402 +//! @SYMAPI				TFindFile
   1.403 +//! @SYMTestCaseDesc			FindWildByPath() negative test. This tests for function returning KErrArgument when the file cannot be found.
   1.404 +//!					Uses API elements: FindWildByPath()
   1.405 +//! @SYMTestActions			1. Create RFs object.
   1.406 +//!					2. Call Connect().
   1.407 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.408 +//!					4. Call FindWildByPath() passing file empry name and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
   1.409 +//!
   1.410 +//!
   1.411 +//! @SYMTestStatus			Implemented
   1.412 +//! @SYMTestPriority			Critical
   1.413 +//! @SYMTestExpectedResults		FindWildByPath() returns KErrArgument.
   1.414 +//! @SYMTestType			CIT
   1.415 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.416 +			CREATE_OBJECT		RFs		RFs1	
   1.417 +			CREATE_OBJECT		TFindFile	TFindFile1	
   1.418 +			CREATE_OBJECT		CDir		CDir1
   1.419 +			COMMAND			RFs1		new		
   1.420 +			COMMAND			RFs1		Connect		
   1.421 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0013-command4new
   1.422 +			COMMAND	!Error=-6	TFindFile1	FindWildByPath	PBASE-F32-FindFile-PublicApi-0013-command5FindWildByPath
   1.423 +			//!COMMAND			TFindFile1	cleanup		
   1.424 +			COMMAND			TFindFile1	~		
   1.425 +			COMMAND			RFs1	~		
   1.426 +	END_TEST_BLOCK
   1.427 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0013
   1.428 +
   1.429 +
   1.430 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0014
   1.431 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0014
   1.432 +//! @SYMAPI				TFindFile
   1.433 +//! @SYMTestCaseDesc			FindWildByDir() test. This tests for successful finding of file with wildcard in name.
   1.434 +//!					Uses API elements: FindWildByDir()
   1.435 +//! @SYMTestActions			1. Create RFs object.
   1.436 +//!					2. Call Connect().
   1.437 +//!					3. Create TFindFile object passing a reference to a connected file session as a parameter.
   1.438 +//!					4. Call FindWildByDir() passing file name "Test?.*" and path "\base\t_sfsrv\t_findfile\test1\" as arguments.
   1.439 +//!
   1.440 +//! @SYMTestStatus			Implemented
   1.441 +//! @SYMTestPriority			Critical
   1.442 +//! @SYMTestExpectedResults		FindWildByDir() returns KErrNone.
   1.443 +//! @SYMTestType			CIT
   1.444 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.445 +			CREATE_OBJECT	RFs	RFs1	
   1.446 +			CREATE_OBJECT	TFindFile	TFindFile1	
   1.447 +			CREATE_OBJECT	TEntry	TEntry1
   1.448 +			CREATE_OBJECT	CDir	CDir1
   1.449 +			COMMAND		RFs1		new		
   1.450 +			COMMAND		RFs1		Connect		
   1.451 +			COMMAND		TFindFile1	new		PBASE-F32-FindFile-PublicApi-0014-command4new
   1.452 +			COMMAND		TFindFile1	FindWildByDir	PBASE-F32-FindFile-PublicApi-0014-command5FindWildByDir	
   1.453 +			COMMAND		TFindFile1	~		
   1.454 +			COMMAND		RFs1		~		
   1.455 +	END_TEST_BLOCK
   1.456 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0014
   1.457 +
   1.458 +
   1.459 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0015
   1.460 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0015
   1.461 +//! @SYMAPI				TFindFile
   1.462 +//! @SYMTestCaseDesc			FindWildByDir() negative test. This test for function returning KErrNotFound when the file cannont be found.
   1.463 +//!					Uses API elements: FindWildByDir()
   1.464 +//! @SYMTestActions			1. Create RFs object.
   1.465 +//!					2. Call Connect().
   1.466 +//!					3. Create TFindFile object passing a reference to a connected file session as a parameter.
   1.467 +//!					4. Call FindWildByDir() passing file name "?ester.*" and path "\base\t_sfsrv\t_findfile\test1\" as arguments.
   1.468 +//!
   1.469 +//! @SYMTestStatus			Implemented
   1.470 +//! @SYMTestPriority			Critical
   1.471 +//! @SYMTestExpectedResults		FindWildByDir() returns KErrNotFound.
   1.472 +//! @SYMTestType			CIT
   1.473 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.474 +			CREATE_OBJECT		RFs	RFs1	
   1.475 +			CREATE_OBJECT		TFindFile	TFindFile1
   1.476 +			CREATE_OBJECT		CDir	CDir1
   1.477 +			COMMAND			RFs1		new		
   1.478 +			COMMAND			RFs1		Connect		
   1.479 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0015-command4new
   1.480 +			COMMAND	!Error=-1	TFindFile1	FindWildByDir	PBASE-F32-FindFile-PublicApi-0015-command5FindWildByDir
   1.481 +			COMMAND			TFindFile1	~		
   1.482 +			COMMAND			RFs1	~		
   1.483 +	END_TEST_BLOCK
   1.484 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0015
   1.485 +
   1.486 +
   1.487 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0016
   1.488 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0016
   1.489 +//! @SYMAPI				TFindFile
   1.490 +//! @SYMTestCaseDesc			FindWildByDir() negative test. This tests function returning KErrArgument when the file name is empty.
   1.491 +//!					Uses API elements: FindWildByDir()
   1.492 +//! @SYMTestActions			1. Create RFs object.
   1.493 +//!					2. Call Connect().
   1.494 +//!					3. Create TFindFile object passing a reference to a connected file session as a parameter.
   1.495 +//!					4. Call FindWildByDir() passing file empty name and path "\base\t_sfsrv\t_findfile\test1\" as arguments.
   1.496 +//!
   1.497 +//! @SYMTestStatus			Implemented
   1.498 +//! @SYMTestPriority			Critical
   1.499 +//! @SYMTestExpectedResults		FindWildByDir() returns KErrArgument.
   1.500 +//! @SYMTestType			CIT
   1.501 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.502 +			CREATE_OBJECT		RFs		RFs1	
   1.503 +			CREATE_OBJECT		TFindFile	TFindFile1	
   1.504 +			COMMAND			RFs1		new
   1.505 +			CREATE_OBJECT		CDir	CDir1
   1.506 +			COMMAND			RFs1		Connect		
   1.507 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0016-command4new
   1.508 +			COMMAND	!Error=-6	TFindFile1	FindWildByDir	PBASE-F32-FindFile-PublicApi-0016-command5FindWildByDir
   1.509 +			//!COMMAND		TFindFile1	cleanup		
   1.510 +			COMMAND			TFindFile1	~		
   1.511 +			COMMAND			RFs1	~		
   1.512 +	END_TEST_BLOCK
   1.513 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0016
   1.514 +
   1.515 +
   1.516 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0017
   1.517 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0017
   1.518 +//! @SYMAPI				TFindFile
   1.519 +//! @SYMTestCaseDesc			Find() test. This tests for successful finding of file after FindByPath() call.
   1.520 +//!					Uses API elements: FindByPath(), Find()
   1.521 +//! @SYMTestActions			1. Create RFs object.
   1.522 +//!					2. Call Connect().
   1.523 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.524 +//!					4. Call FindByPath() passing file name "Test1.txt" and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
   1.525 +//!					5. Call Find().
   1.526 +//!					6. Call File() with checking that value is '\base\t_sfsrv\t_findfile\test2\Test1.txt'
   1.527 +//!
   1.528 +//! @SYMTestStatus			Implemented
   1.529 +//! @SYMTestPriority			Critical
   1.530 +//! @SYMTestExpectedResults		Find() returns KErrNone.
   1.531 +//! @SYMTestType			CIT
   1.532 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.533 +			CREATE_OBJECT	RFs		RFs1	
   1.534 +			CREATE_OBJECT	TFindFile	TFindFile1	
   1.535 +			CREATE_OBJECT	TEntry		TEntry1
   1.536 +			CREATE_OBJECT	CDir		CDir1
   1.537 +			COMMAND		RFs1		new		
   1.538 +			COMMAND		RFs1		Connect		
   1.539 +			COMMAND		TFindFile1	new		PBASE-F32-FindFile-PublicApi-0017-command4new
   1.540 +			COMMAND		TFindFile1	FindByPath	PBASE-F32-FindFile-PublicApi-0017-command5FindByPath
   1.541 +			COMMAND		TFindFile1	Find		
   1.542 +			COMMAND		TFindFile1	File		correct_file_path2
   1.543 +			COMMAND		TFindFile1	~		
   1.544 +			COMMAND		RFs1	~		
   1.545 +	END_TEST_BLOCK
   1.546 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0017
   1.547 +
   1.548 +
   1.549 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0018
   1.550 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0018
   1.551 +//! @SYMAPI				TFindFile
   1.552 +//! @SYMTestCaseDesc			Find() negative test. This tests for function returning KErrNotFound when file cannot be found after FindByPath() call.
   1.553 +//!					Uses API elements: FindByPath(), Find()
   1.554 +//! @SYMTestActions			1. Create RFs object.
   1.555 +//!					2. Call Connect().
   1.556 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.557 +//!					4. Call FindByPath() passing file name "Test2.txt" and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
   1.558 +//!					5. Call Find().
   1.559 +//!
   1.560 +//! @SYMTestStatus			Implemented
   1.561 +//! @SYMTestPriority			Critical
   1.562 +//! @SYMTestExpectedResults		Find() returns KErrNotFound.
   1.563 +//! @SYMTestType			CIT
   1.564 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.565 +			CREATE_OBJECT		RFs		RFs1	
   1.566 +			CREATE_OBJECT		TFindFile	TFindFile1	
   1.567 +			COMMAND			RFs1		new
   1.568 +			CREATE_OBJECT		CDir		CDir1
   1.569 +			COMMAND			RFs1		Connect		
   1.570 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0018-command4new
   1.571 +			COMMAND			TFindFile1	FindByPath	PBASE-F32-FindFile-PublicApi-0018-command5FindByPath
   1.572 +			COMMAND	!Error=-1	TFindFile1	Find		
   1.573 +			COMMAND			TFindFile1	~		
   1.574 +			COMMAND			RFs1	~		
   1.575 +	END_TEST_BLOCK
   1.576 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0018
   1.577 +
   1.578 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0020
   1.579 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0020
   1.580 +//! @SYMAPI				TFindFile
   1.581 +//! @SYMTestCaseDesc			Find() negative test. This tests for function returning KErrNotFound when file cannot be found after
   1.582 +//!					FindByDir() call.
   1.583 +//!					Uses API elements: FindByDir(), Find()
   1.584 +//! @SYMTestActions			1. Create RFs object.
   1.585 +//!					2. Create RFile object
   1.586 +//!					3. Call Rfs::Connect().
   1.587 +//!					4. Call RFile::Create() and pass name "temp.txt" as parameter.
   1.588 +//!					5. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.589 +//!					6. Call FindByDir() passing file name "temp.txt" and path "\base\t_sfsrv\t_findfile\test1\" as arguments.
   1.590 +//!					7. Call Find().
   1.591 +//!					8. Call RFs::Delete() and pass name "temp.txt" as parameter.
   1.592 +//!
   1.593 +//! @SYMTestStatus			Implemented
   1.594 +//! @SYMTestPriority			Critical
   1.595 +//! @SYMTestExpectedResults		Second Find() returns KErrNotFound.
   1.596 +//! @SYMTestType			CIT
   1.597 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.598 +			CREATE_OBJECT		RFs		RFs1
   1.599 +			CREATE_OBJECT		RFile		RFile1
   1.600 +			CREATE_OBJECT		TFindFile	TFindFile1
   1.601 +			CREATE_OBJECT		CDir		CDir1
   1.602 +			COMMAND			RFs1		new		
   1.603 +			COMMAND			RFile1		new
   1.604 +			COMMAND			RFs1		Connect	
   1.605 +			COMMAND			RFile1		Create		PBASE-F32-FindFile-PublicApi-0020-command1Create
   1.606 +			COMMAND			RFile1		Close
   1.607 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0020-command4new
   1.608 +			COMMAND			TFindFile1	FindByDir	PBASE-F32-FindFile-PublicApi-0020-command5FindByDir
   1.609 +			COMMAND	!Error=-1	TFindFile1	Find
   1.610 +			COMMAND			TFindFile1	~		
   1.611 +			COMMAND			RFs1		Delete		PBASE-F32-FindFile-PublicApi-0020-command6Delete
   1.612 +			COMMAND			RFile1		~
   1.613 +			COMMAND			RFs1	~		
   1.614 +	END_TEST_BLOCK
   1.615 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0020
   1.616 +
   1.617 +
   1.618 +
   1.619 +
   1.620 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0021
   1.621 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0021
   1.622 +//! @SYMAPI				TFindFile
   1.623 +//! @SYMTestCaseDesc			FindWild() test. This test for successful finding of file ather FindWildByPath() call.
   1.624 +//!					Uses API elements: FindWildByPath(), FindWild()
   1.625 +//! @SYMTestActions			1. Create RFs object.
   1.626 +//!					2. Call Connect().
   1.627 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.628 +//!					4. Call FindWildByPath() passing file name "Test1.*" and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
   1.629 +//!					5. Call FindWild()
   1.630 +//!
   1.631 +//! @SYMTestStatus			Implemented
   1.632 +//! @SYMTestPriority			Critical
   1.633 +//! @SYMTestExpectedResults		FindWild() returns KErrNone.
   1.634 +//! @SYMTestType			CIT
   1.635 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.636 +			CREATE_OBJECT	RFs	RFs1	
   1.637 +			CREATE_OBJECT	TFindFile	TFindFile1
   1.638 +			CREATE_OBJECT	TEntry	TEntry1
   1.639 +			CREATE_OBJECT	CDir	CDir1			
   1.640 +			COMMAND		RFs1		new		
   1.641 +			COMMAND		RFs1		Connect		
   1.642 +			COMMAND		TFindFile1	new		PBASE-F32-FindFile-PublicApi-0021-command4new
   1.643 +			COMMAND		TFindFile1	FindWildByPath	PBASE-F32-FindFile-PublicApi-0021-command5FindWildByPath
   1.644 +			COMMAND		TFindFile1	FindWild	common_dir_wrapper	
   1.645 +			COMMAND		TFindFile1	~		
   1.646 +			COMMAND		RFs1	~		
   1.647 +	END_TEST_BLOCK
   1.648 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0021
   1.649 +
   1.650 +
   1.651 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0022
   1.652 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0022
   1.653 +//! @SYMAPI				TFindFile
   1.654 +//! @SYMTestCaseDesc			FindWild() negative test. This test for function returning KErrNotFound if file cannot be found after FindWildByPath() call.
   1.655 +//!					Uses API elements: FindWildByPath(), FindWild()
   1.656 +//! @SYMTestActions			1. Create RFs object.
   1.657 +//!					2. Call Connect().
   1.658 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.659 +//!					4. Call FindWildByPath() passing file name "Test2.txt" and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
   1.660 +//!					5. Call FindWild()
   1.661 +//!
   1.662 +//! @SYMTestStatus			Implemented
   1.663 +//! @SYMTestPriority			Critical
   1.664 +//! @SYMTestExpectedResults		FindWild() returns KErrNotFound.
   1.665 +//! @SYMTestType			CIT
   1.666 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.667 +			CREATE_OBJECT		RFs		RFs1	
   1.668 +			CREATE_OBJECT		TFindFile	TFindFile1	
   1.669 +			CREATE_OBJECT		CDir	CDir1
   1.670 +			COMMAND			RFs1		new		
   1.671 +			COMMAND			RFs1		Connect		
   1.672 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0022-command4new
   1.673 +			COMMAND			TFindFile1	FindWildByPath	PBASE-F32-FindFile-PublicApi-0022-command5FindWildByPath
   1.674 +			COMMAND	!Error=-1	TFindFile1	FindWild	common_dir_wrapper	
   1.675 +			COMMAND			TFindFile1	~		
   1.676 +			COMMAND			RFs1	~		
   1.677 +	END_TEST_BLOCK
   1.678 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0022
   1.679 +
   1.680 +
   1.681 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0024
   1.682 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0024
   1.683 +//! @SYMAPI				TFindFile
   1.684 +//! @SYMTestCaseDesc			FindWild() negative test. This test for function returning KErrNotFound if file cannot be found after FindWildByDir() call.
   1.685 +//!					Uses API elements: FindWildByDir(), FindWild()
   1.686 +//! @SYMTestActions			1. Create RFs object.
   1.687 +//!					2. Create RFile object
   1.688 +//!					3. Call Connect().
   1.689 +//!					4. Call RFile::Create() and pass name "temp.txt" as parameter.
   1.690 +//!					5. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.691 +//!					6. Call FindWildByDir() passing file name "temp.*" and path "\base\t_sfsrv\t_findfile\test1\" as arguments.
   1.692 +//!					7. Call FindWild()
   1.693 +//!					8. Call RFs::Delete() and pass name "temp.txt" as parameter.
   1.694 +//!
   1.695 +//! @SYMTestStatus			Implemented
   1.696 +//! @SYMTestPriority			Critical
   1.697 +//! @SYMTestExpectedResults		Both FindWild() returns KErrNotFound.
   1.698 +//! @SYMTestType			CIT
   1.699 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.700 +			CREATE_OBJECT		RFs		RFs1
   1.701 +			CREATE_OBJECT		RFile		RFile1
   1.702 +			CREATE_OBJECT		TFindFile	TFindFile1	
   1.703 +			CREATE_OBJECT		TEntry		TEntry1
   1.704 +			CREATE_OBJECT		CDir		CDir1
   1.705 +			COMMAND			RFs1		new		
   1.706 +			COMMAND			RFile1		new
   1.707 +			COMMAND			RFs1		Connect
   1.708 +			COMMAND			RFile1		Create		PBASE-F32-FindFile-PublicApi-0024-command1Create
   1.709 +			COMMAND			RFile1		Close
   1.710 +			COMMAND			TFindFile1	new		PBASE-F32-FindFile-PublicApi-0024-command4new
   1.711 +			COMMAND			TFindFile1	FindWildByDir	PBASE-F32-FindFile-PublicApi-0024-command5FindWildByDir
   1.712 +			COMMAND	!Error=-1	TFindFile1	FindWild	common_dir_wrapper	
   1.713 +			COMMAND			TFindFile1	~
   1.714 +			COMMAND			RFs1		Delete		PBASE-F32-FindFile-PublicApi-0024-command6Delete
   1.715 +			COMMAND			RFile1		~
   1.716 +			COMMAND			RFs1	~		
   1.717 +	END_TEST_BLOCK 
   1.718 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0024
   1.719 +
   1.720 +
   1.721 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0025
   1.722 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0025
   1.723 +//! @SYMAPI				TFindFile
   1.724 +//! @SYMTestCaseDesc			FindByPath() test. This tests for function to return correct data.
   1.725 +//!					Uses API elements: FindByPath(), File()
   1.726 +//! @SYMTestActions			1. Create RFs object.
   1.727 +//!					2. Call Connect().
   1.728 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.729 +//!					4. Call FindByPath() passing file name "Test1.txt" and path "\base\t_sfsrv\t_findfile\test1\" as arguments.
   1.730 +//!					5. Call File() with checking that value is '\base\t_sfsrv\t_findfile\test1\Test1.txt'
   1.731 +//!
   1.732 +//! @SYMTestStatus			Implemented
   1.733 +//! @SYMTestPriority			Critical
   1.734 +//! @SYMTestExpectedResults		File returns "\base\t_sfsrv\t_findfile\test1\Test1.txt".
   1.735 +//! @SYMTestType			CIT
   1.736 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.737 +			CREATE_OBJECT	RFs		RFs1
   1.738 +			CREATE_OBJECT	TFindFile	TFindFile1
   1.739 +			CREATE_OBJECT	TEntry		TEntry1
   1.740 +			CREATE_OBJECT	CDir		CDir1
   1.741 +			COMMAND		RFs1		new
   1.742 +			COMMAND		RFs1		Connect		
   1.743 +			COMMAND		TFindFile1	new		PBASE-F32-FindFile-PublicApi-0025-command4new
   1.744 +			COMMAND		TFindFile1	FindByPath	PBASE-F32-FindFile-PublicApi-0025-command5FindByPath
   1.745 +			COMMAND		TFindFile1	File		correct_file_path
   1.746 +			COMMAND		TFindFile1	~		
   1.747 +			COMMAND		RFs1	~		
   1.748 +	END_TEST_BLOCK
   1.749 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0025
   1.750 +
   1.751 +
   1.752 +
   1.753 +
   1.754 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0027
   1.755 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0027
   1.756 +//! @SYMAPI				TFindFile
   1.757 +//! @SYMTestCaseDesc			FindWildByDir() test. This tests for successful finding of file without wildcard in name.
   1.758 +//!					Uses API elements: FindWildByDir()
   1.759 +//! @SYMTestActions			1. Create RFs object.
   1.760 +//!					2. Call Connect().
   1.761 +//!					3. Create TFindFile object passing a reference to a connected file session as a parameter.
   1.762 +//!					4. Call FindWildByDir() passing file name "Test1.txt" and path "\base\t_sfsrv\t_findfile\test1\" as arguments.
   1.763 +//!					5. Call File() with checking that value is '\base\t_sfsrv\t_findfile\test1\Test1.txt'
   1.764 +//!
   1.765 +//! @SYMTestStatus			Implemented
   1.766 +//! @SYMTestPriority			Critical
   1.767 +//! @SYMTestExpectedResults		FindWildByDir() returns KErrNone.
   1.768 +//! @SYMTestType			CIT
   1.769 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.770 +			CREATE_OBJECT	RFs		RFs1	
   1.771 +			CREATE_OBJECT	TFindFile	TFindFile1	
   1.772 +			CREATE_OBJECT	TEntry		TEntry1
   1.773 +			CREATE_OBJECT	CDir		CDir1
   1.774 +			COMMAND		RFs1		new		
   1.775 +			COMMAND		RFs1		Connect		
   1.776 +			COMMAND		TFindFile1	new		PBASE-F32-FindFile-PublicApi-0027-command4new
   1.777 +			COMMAND		TFindFile1	FindWildByDir	PBASE-F32-FindFile-PublicApi-0027-command5FindWildByDir
   1.778 +			COMMAND		TFindFile1	File	correct_file_path
   1.779 +			COMMAND		TFindFile1	~		
   1.780 +			COMMAND		RFs1	~		
   1.781 +	END_TEST_BLOCK
   1.782 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0027
   1.783 +
   1.784 +
   1.785 +START_TESTCASE 				PBASE-F32-FindFile-PublicApi-0028
   1.786 +//! @SYMTestCaseID			PBASE-F32-FindFile-PublicApi-0028
   1.787 +//! @SYMAPI				TFindFile
   1.788 +//! @SYMTestCaseDesc			FindWildByPath() test. This tests for successful finding of file without wildcard in name.
   1.789 +//!					Uses API elements: FindWildByPath()
   1.790 +//! @SYMTestActions			1. Create RFs object.
   1.791 +//!					2. Call Connect().
   1.792 +//!					3. Create TFindFile object passing a reference to the connected file session as a parameter.
   1.793 +//!					4. Call FindWildByPath() passing file name "Test1.txt" and path "\base\t_sfsrv\t_findfile\test1\;\base\t_sfsrv\t_findfile\test2\" as arguments.
   1.794 +//!					5. Call File() with checking that value is '\base\t_sfsrv\t_findfile\test1\Test1.txt'
   1.795 +//!
   1.796 +//! @SYMTestStatus			Implemented
   1.797 +//! @SYMTestPriority			Critical
   1.798 +//! @SYMTestExpectedResults		FindWildByPath() returns KErrNone.
   1.799 +//! @SYMTestType			CIT
   1.800 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.801 +			CREATE_OBJECT	RFs	RFs1	
   1.802 +			CREATE_OBJECT	TFindFile	TFindFile1
   1.803 +			CREATE_OBJECT	TEntry		TEntry1
   1.804 +			CREATE_OBJECT	CDir		CDir1
   1.805 +			COMMAND		RFs1		new		
   1.806 +			COMMAND		RFs1		Connect		
   1.807 +			COMMAND		TFindFile1	new		PBASE-F32-FindFile-PublicApi-0028-command4new
   1.808 +			COMMAND		TFindFile1	FindWildByPath	PBASE-F32-FindFile-PublicApi-0028-command5FindWildByPath
   1.809 +			COMMAND		TFindFile1	File		correct_file_path
   1.810 +			COMMAND		TFindFile1	~		
   1.811 +			COMMAND		RFs1	~		
   1.812 +	END_TEST_BLOCK
   1.813 +END_TESTCASE				PBASE-F32-FindFile-PublicApi-0028
   1.814 +
   1.815 +
   1.816 +START_TESTCASE				REMOVE_FILES
   1.817 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-FindFile-PublicApi.ini
   1.818 +			CREATE_OBJECT	RFs	RFs1
   1.819 +			CREATE_OBJECT	CFileMan	CFileMan1
   1.820 +			COMMAND		RFs1		new
   1.821 +			COMMAND		RFs1		Connect
   1.822 +			COMMAND		CFileMan1	NewL	fileman_fs
   1.823 +			COMMAND		CFileMan1	Delete	all_files1
   1.824 +			COMMAND		CFileMan1	Delete	all_files2
   1.825 +			COMMAND		RFs1		RmDir	test_dir1
   1.826 +			COMMAND		RFs1		RmDir	test_dir2
   1.827 +			COMMAND		RFs1		RmDir	test_dir
   1.828 +			COMMAND		CFileMan1	~
   1.829 +			COMMAND		RFs1	~
   1.830 +	END_TEST_BLOCK
   1.831 +END_TESTCASE				REMOVE_FILES
   1.832 +