os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-DirScan-PublicApi-RAM.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description: 
sl@0
    15
//
sl@0
    16
//! 	@file
sl@0
    17
//! 	@SYMTestSuiteName		pbase-f32-sfsrv-publicapi-ram
sl@0
    18
//!	@SYMScriptTestEnvironment	This test script requires a basic ROM.
sl@0
    19
//! 	@SYMScriptAuthor 		Jaanus Randveer, Runno Sgirka
sl@0
    20
//! 	@SYMScriptCreationDate		12/10/2007
sl@0
    21
//! 	@SYMScriptDescription		The test script contains API tests for the following functions of CDirScan class:
sl@0
    22
//!	CDirScan *NewL(RFs &aFs);
sl@0
    23
//!	CDirScan *NewLC(RFs &aFs);
sl@0
    24
//!	~CDirScan();
sl@0
    25
//!	void SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask, TScanDirection aScanDir=EScanDownTree);
sl@0
    26
//!	void NextL(CDir *&aDirEntries);
sl@0
    27
//!	TPtrC AbbreviatedPath();
sl@0
    28
//!	TPtrC FullPath();
sl@0
    29
sl@0
    30
sl@0
    31
LOAD_SUITE	T_SfSrv
sl@0
    32
DELAY	5000
sl@0
    33
sl@0
    34
sl@0
    35
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1001
sl@0
    36
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1001
sl@0
    37
//! @SYMAPI			CDirScan
sl@0
    38
//! @SYMTestCaseDesc		Constructor NewL(RFs &aFs) test, that constucts a CDirScan object.
sl@0
    39
//! 				Uses API elements: NewL().
sl@0
    40
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
    41
//!				2.Call CDirScan::NewL() and session as parameter.
sl@0
    42
//! @SYMTestStatus		Implemented
sl@0
    43
//! @SYMTestPriority		Critical
sl@0
    44
//! @SYMTestExpectedResults	CDirScan object is not NULL
sl@0
    45
//! @SYMTestType		CIT
sl@0
    46
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
    47
		CREATE_OBJECT	RFs		RFs1
sl@0
    48
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
    49
		COMMAND		RFs1		new		
sl@0
    50
		COMMAND		RFs1		Connect
sl@0
    51
		COMMAND		CDirScan1	NewL		PBASE-F32-DirScan-PublicApi-1001-001-NewL_command004		
sl@0
    52
		COMMAND		CDirScan1	~		
sl@0
    53
		COMMAND		RFs1		~		
sl@0
    54
	END_TEST_BLOCK	
sl@0
    55
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1001
sl@0
    56
sl@0
    57
sl@0
    58
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1002
sl@0
    59
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1002
sl@0
    60
//! @SYMAPI			CDirScan
sl@0
    61
//! @SYMTestCaseDesc		Constructor NewLC(RFs &aFs) test, that constructs a CDirScan object and puts it to the clenupstack.
sl@0
    62
//! 				Uses API elements: NewLC().
sl@0
    63
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function;
sl@0
    64
//!				2.Call CDirScan::NewLC() and connected file server session as parameter.
sl@0
    65
//! @SYMTestStatus		Implemented
sl@0
    66
//! @SYMTestPriority		Critical
sl@0
    67
//! @SYMTestExpectedResults	CDirScan object is not NULL.
sl@0
    68
//! @SYMTestType		CIT
sl@0
    69
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
    70
		CREATE_OBJECT	RFs		RFs1
sl@0
    71
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
    72
		COMMAND		RFs1		new		
sl@0
    73
		COMMAND		RFs1		Connect
sl@0
    74
		COMMAND		CDirScan1	NewLC		PBASE-F32-DirScan-PublicApi-1002-001-NewLC_command004		
sl@0
    75
		COMMAND		CDirScan1	~		
sl@0
    76
		COMMAND		RFs1		~		
sl@0
    77
	END_TEST_BLOCK	
sl@0
    78
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1002
sl@0
    79
sl@0
    80
sl@0
    81
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1003
sl@0
    82
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1003
sl@0
    83
//! @SYMAPI			CDirScan
sl@0
    84
//! @SYMTestCaseDesc		Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask, 
sl@0
    85
//!				TScanDirection aScanDir=EScanDownTree) and function FullPath() test, that initialises a directory entries scan.
sl@0
    86
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 1 files and no directories.
sl@0
    87
//! 				Uses API elements: NewLC(), SetScanDataL() FullPath();
sl@0
    88
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
    89
//!				2.Call CDirScan::NewLC() and connected file server session as parameter.
sl@0
    90
//!				3.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttHidden as second
sl@0
    91
//!				  parameter, ESortNone as third parameter and CDirScan::EScanUpTree as fourth parameter
sl@0
    92
//!				4.Call CDirScan::FullPath().
sl@0
    93
//! @SYMTestStatus		Implemented
sl@0
    94
//! @SYMTestPriority		Critical
sl@0
    95
//! @SYMTestExpectedResults	Scans directory structure and checks if CDirScan::FullPath() result is equal to "<RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\"
sl@0
    96
//! @SYMTestType		CIT
sl@0
    97
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
    98
		CREATE_OBJECT	RFs		RFs1
sl@0
    99
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   100
		COMMAND		RFs1		new			
sl@0
   101
		COMMAND		RFs1		Connect
sl@0
   102
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1003-001-MkDirAll_command004
sl@0
   103
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1003-001-NewL_command005
sl@0
   104
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1003-001-Copy_command006
sl@0
   105
		COMMAND		CFileMan1	~
sl@0
   106
		COMMAND		RFs1		~
sl@0
   107
	END_TEST_BLOCK	
sl@0
   108
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   109
		CREATE_OBJECT	RFs		RFs1
sl@0
   110
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   111
		COMMAND		RFs1		new		
sl@0
   112
		COMMAND		RFs1		Connect
sl@0
   113
		COMMAND		CDirScan1	NewLC		PBASE-F32-DirScan-PublicApi-1003-002-NewLC_command004
sl@0
   114
		COMMAND		CDirScan1	SetScanDataL	PBASE-F32-DirScan-PublicApi-1003-002-SetScanDataL_command005
sl@0
   115
		COMMAND		CDirScan1	FullPath	PBASE-F32-DirScan-PublicApi-1003-002-FullPath_command006
sl@0
   116
		COMMAND		CDirScan1	~		
sl@0
   117
		COMMAND		RFs1		~		
sl@0
   118
	END_TEST_BLOCK
sl@0
   119
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   120
		CREATE_OBJECT	RFs		RFs1
sl@0
   121
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   122
		COMMAND		RFs1		new			
sl@0
   123
		COMMAND		RFs1		Connect
sl@0
   124
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1003-003-NewL_command004
sl@0
   125
		COMMAND		CFileMan1	Delete		PBASE-F32-DirScan-PublicApi-1003-003-Delete_command005
sl@0
   126
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1003-003-RmDir_command006
sl@0
   127
		COMMAND		CFileMan1	~
sl@0
   128
		COMMAND		RFs1		~
sl@0
   129
	END_TEST_BLOCK
sl@0
   130
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1003
sl@0
   131
sl@0
   132
sl@0
   133
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1004
sl@0
   134
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1004
sl@0
   135
//! @SYMAPI			CDirScan
sl@0
   136
//! @SYMTestCaseDesc		Function NextL(CDir *&aDirEntries) test, that scans the directory structure.
sl@0
   137
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains no files and no directories.
sl@0
   138
//!				The directory structure to be created is following: main directory <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\, in there two
sl@0
   139
//!				sub-directories TempDir1 and TempDir2, in TempDir1 two sub-directories TempDir1Sub1 and TempDir1Sub2 and
sl@0
   140
//!				in TempDir2 one sub-directory TempDir2Sub.
sl@0
   141
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   142
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   143
//!				2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
sl@0
   144
//!				3.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
sl@0
   145
//!				4.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\TempDir1Sub1 as parameter
sl@0
   146
//!				5.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\TempDir1Sub2 as parameter
sl@0
   147
//!				6.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\TempDir2Sub as parameter
sl@0
   148
//!				7.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   149
//!				8.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttDir as second
sl@0
   150
//!				  parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
sl@0
   151
//!				9.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   152
//!				10.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   153
//!				11.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   154
//!				12.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   155
//!				13.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   156
//!				14.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   157
//!				15.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   158
//!				16.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   159
//!				17.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   160
//!				18.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   161
//!				19.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   162
//!				20.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   163
//!				21.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   164
//!				22.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\TempDir1Sub1 as parameter
sl@0
   165
//!				23.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\TempDir1Sub2 as parameter
sl@0
   166
//!				24.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\TempDir2Sub as parameter
sl@0
   167
//!				25.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
sl@0
   168
//!				26.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
sl@0
   169
//! @SYMTestStatus		Implemented
sl@0
   170
//! @SYMTestPriority		Critical
sl@0
   171
//! @SYMTestExpectedResults	Moves down the directory tree until there are no more directories. All the verifications pass.
sl@0
   172
//! @SYMTestType		CIT
sl@0
   173
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   174
		CREATE_OBJECT	RFs		RFs1
sl@0
   175
		COMMAND		RFs1		new			
sl@0
   176
		COMMAND		RFs1		Connect
sl@0
   177
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1004-001-MkDirAll_command003
sl@0
   178
		COMMAND		RFs1		~
sl@0
   179
	END_TEST_BLOCK
sl@0
   180
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   181
		CREATE_OBJECT	RFs		RFs1
sl@0
   182
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   183
		CREATE_OBJECT	CDir		CDir1
sl@0
   184
		COMMAND		RFs1		new		
sl@0
   185
		COMMAND		RFs1		Connect		
sl@0
   186
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1004-002-MkDirAll_command004
sl@0
   187
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1004-002-MkDirAll_command005
sl@0
   188
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1004-002-MkDirAll_command006
sl@0
   189
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1004-002-MkDirAll_command007
sl@0
   190
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1004-002-MkDirAll_command008
sl@0
   191
		COMMAND		CDirScan1	NewL		PBASE-F32-DirScan-PublicApi-1004-002-NewL_command009
sl@0
   192
		COMMAND		CDirScan1	SetScanDataL	PBASE-F32-DirScan-PublicApi-1004-002-SetScanDataL_command010
sl@0
   193
		COMMAND		CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1004-002-NextL_command011
sl@0
   194
		COMMAND		CDir1		~
sl@0
   195
		COMMAND		CDirScan1	FullPath	PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command013
sl@0
   196
		COMMAND		CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1004-002-NextL_command014
sl@0
   197
		COMMAND		CDir1		~
sl@0
   198
		COMMAND		CDirScan1	FullPath	PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command016
sl@0
   199
		COMMAND		CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1004-002-NextL_command017
sl@0
   200
		COMMAND		CDir1		~
sl@0
   201
		COMMAND		CDirScan1	FullPath	PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command019
sl@0
   202
		COMMAND		CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1004-002-NextL_command020
sl@0
   203
		COMMAND		CDir1		~
sl@0
   204
		COMMAND		CDirScan1	FullPath	PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command022
sl@0
   205
		COMMAND		CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1004-002-NextL_command023
sl@0
   206
		COMMAND		CDir1		~
sl@0
   207
		COMMAND		CDirScan1	FullPath	PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command025
sl@0
   208
		COMMAND		CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1004-002-NextL_command026
sl@0
   209
		COMMAND		CDir1		~
sl@0
   210
		COMMAND		CDirScan1	FullPath	PBASE-F32-DirScan-PublicApi-1004-002-FullPath_command028
sl@0
   211
		COMMAND		CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1004-002-NextL_command029
sl@0
   212
		COMMAND		CDir1		~
sl@0
   213
		COMMAND		CDirScan1	~		
sl@0
   214
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1004-002-RmDir_command032
sl@0
   215
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1004-002-RmDir_command033
sl@0
   216
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1004-002-RmDir_command034
sl@0
   217
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1004-002-RmDir_command035
sl@0
   218
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1004-002-RmDir_command036
sl@0
   219
		COMMAND		RFs1		~		
sl@0
   220
	END_TEST_BLOCK
sl@0
   221
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   222
		CREATE_OBJECT	RFs		RFs1
sl@0
   223
		COMMAND		RFs1		new			
sl@0
   224
		COMMAND		RFs1		Connect
sl@0
   225
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1004-003-RmDir_command003
sl@0
   226
		COMMAND		RFs1		~
sl@0
   227
	END_TEST_BLOCK
sl@0
   228
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1004
sl@0
   229
sl@0
   230
sl@0
   231
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1005
sl@0
   232
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1005
sl@0
   233
//! @SYMAPI			CDirScan
sl@0
   234
//! @SYMTestCaseDesc		Function AbbreviatedPath() test, that gets the abbreviated path of the entry currently being scanned.
sl@0
   235
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains no files and no directories.
sl@0
   236
//! 				Uses API elements: NewLC(), SetScanDataL, AbbreviatedPath().
sl@0
   237
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   238
//!				2.Call CDirScan::NewLC() and session as parameter.
sl@0
   239
//!				3.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttHidden as second
sl@0
   240
//!				  parameter, ESortNone as third parameter and CDirScan::EScanUpTree as fourth parameter
sl@0
   241
//!				4.Call CDirScan::AbbreviatedPath().
sl@0
   242
//! @SYMTestStatus		Implemented
sl@0
   243
//! @SYMTestPriority		Critical
sl@0
   244
//! @SYMTestExpectedResults	Abbreviated path is equal to \.
sl@0
   245
//! @SYMTestType		CIT
sl@0
   246
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   247
		CREATE_OBJECT	RFs		RFs1
sl@0
   248
		COMMAND		RFs1		new			
sl@0
   249
		COMMAND		RFs1		Connect
sl@0
   250
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1005-001-MkDirAll_command003
sl@0
   251
		COMMAND		RFs1		~
sl@0
   252
	END_TEST_BLOCK
sl@0
   253
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   254
		CREATE_OBJECT	RFs		RFs1
sl@0
   255
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   256
		COMMAND		RFs1		new		
sl@0
   257
		COMMAND		RFs1		Connect
sl@0
   258
		COMMAND		CDirScan1	NewLC			PBASE-F32-DirScan-PublicApi-1005-002-NewLC_command004
sl@0
   259
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1005-002-SetScanDataL_command005
sl@0
   260
		COMMAND		CDirScan1	AbbreviatedPath		PBASE-F32-DirScan-PublicApi-1005-002-AbbreviatedPath_command006
sl@0
   261
		COMMAND		CDirScan1	~		
sl@0
   262
		COMMAND		RFs1		~		
sl@0
   263
	END_TEST_BLOCK
sl@0
   264
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   265
		CREATE_OBJECT	RFs		RFs1
sl@0
   266
		COMMAND		RFs1		new			
sl@0
   267
		COMMAND		RFs1		Connect
sl@0
   268
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1005-003-RmDir_command003
sl@0
   269
		COMMAND		RFs1		~
sl@0
   270
	END_TEST_BLOCK	
sl@0
   271
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1005
sl@0
   272
sl@0
   273
sl@0
   274
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1006
sl@0
   275
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1006
sl@0
   276
//! @SYMAPI			CDirScan
sl@0
   277
//! @SYMTestCaseDesc		Function NextL(CDir *&aDirEntries) test, that scans an empty directory.
sl@0
   278
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir - contains no files and directories.
sl@0
   279
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   280
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   281
//!				2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
sl@0
   282
//!				3.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   283
//!				4.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as first parameter, KEntryAttDir as second
sl@0
   284
//!				  parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
sl@0
   285
//!				5.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   286
//!				6.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   287
//!				7.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   288
//!				8.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
sl@0
   289
//! @SYMTestStatus		Implemented
sl@0
   290
//! @SYMTestPriority		Critical
sl@0
   291
//! @SYMTestExpectedResults	The first NexL() method call returns the empty directory itself, the second one returns NULL (nothing more
sl@0
   292
//!				to scan).
sl@0
   293
//! @SYMTestType		CIT
sl@0
   294
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   295
		CREATE_OBJECT	RFs		RFs1
sl@0
   296
		COMMAND		RFs1		new			
sl@0
   297
		COMMAND		RFs1		Connect
sl@0
   298
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1006-001-MkDirAll_command003
sl@0
   299
		COMMAND		RFs1		~
sl@0
   300
	END_TEST_BLOCK
sl@0
   301
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   302
		CREATE_OBJECT	RFs		RFs1
sl@0
   303
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   304
		CREATE_OBJECT	CDir		CDir1
sl@0
   305
		COMMAND		RFs1		new		
sl@0
   306
		COMMAND		RFs1		Connect		
sl@0
   307
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1006-002-MkDirAll_command004
sl@0
   308
		COMMAND		CDirScan1	NewL		PBASE-F32-DirScan-PublicApi-1006-002-NewL_command005
sl@0
   309
		COMMAND		CDirScan1	SetScanDataL	PBASE-F32-DirScan-PublicApi-1006-002-SetScanDataL_command006
sl@0
   310
		COMMAND		CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1006-002-NextL_command007
sl@0
   311
		COMMAND		CDir1		~
sl@0
   312
		COMMAND		CDirScan1	FullPath	PBASE-F32-DirScan-PublicApi-1006-002-FullPath_command009
sl@0
   313
		COMMAND		CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1006-002-NextL_command010
sl@0
   314
		COMMAND		CDir1		~
sl@0
   315
		COMMAND		CDirScan1	~		
sl@0
   316
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1006-002-RmDir_command013
sl@0
   317
		COMMAND		RFs1		~		
sl@0
   318
	END_TEST_BLOCK
sl@0
   319
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   320
		CREATE_OBJECT	RFs		RFs1
sl@0
   321
		COMMAND		RFs1		new			
sl@0
   322
		COMMAND		RFs1		Connect
sl@0
   323
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1006-003-RmDir_command003
sl@0
   324
		COMMAND		RFs1		~
sl@0
   325
	END_TEST_BLOCK
sl@0
   326
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1006
sl@0
   327
sl@0
   328
sl@0
   329
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1007
sl@0
   330
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1007
sl@0
   331
//! @SYMAPI			CDirScan
sl@0
   332
//! @SYMTestCaseDesc		Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask, 
sl@0
   333
//!				TScanDirection aScanDir=EScanDownTree) test, that uses KEntryAttNormal as attribute mask and expects files
sl@0
   334
//!				only to be returned.
sl@0
   335
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories. One directory
sl@0
   336
//!				is going to be created.
sl@0
   337
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   338
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   339
//!				2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
sl@0
   340
//!				3.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   341
//!				4.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttNormal as second
sl@0
   342
//!				  parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
sl@0
   343
//!				5.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   344
//!				6.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   345
//!				7.Call CDir::Count() to verify the number of entries returned.
sl@0
   346
//!				8.Call CDir::operator[] to verify the entries returned.
sl@0
   347
//!				9.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
sl@0
   348
//! @SYMTestStatus		Implemented
sl@0
   349
//! @SYMTestPriority		Critical
sl@0
   350
//! @SYMTestExpectedResults	The SetScanDataL() method call using KEntryAttNormal as attribute mask returns files only.
sl@0
   351
//! @SYMTestType		CIT
sl@0
   352
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   353
		CREATE_OBJECT	RFs		RFs1
sl@0
   354
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   355
		COMMAND		RFs1		new			
sl@0
   356
		COMMAND		RFs1		Connect
sl@0
   357
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1007-001-MkDirAll_command004
sl@0
   358
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1007-001-NewL_command005
sl@0
   359
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1007-001-Copy_command006
sl@0
   360
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1007-001-Copy_command007
sl@0
   361
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1007-001-Copy_command008
sl@0
   362
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1007-001-Copy_command009
sl@0
   363
		COMMAND		CFileMan1	~
sl@0
   364
		COMMAND		RFs1		~
sl@0
   365
	END_TEST_BLOCK	
sl@0
   366
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   367
		CREATE_OBJECT	RFs		RFs1
sl@0
   368
		CREATE_OBJECT	TEntry		TEntry1
sl@0
   369
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   370
		CREATE_OBJECT	CDir		CDir1
sl@0
   371
		COMMAND		RFs1		new		
sl@0
   372
		COMMAND		RFs1		Connect
sl@0
   373
		COMMAND		RFs1		MkDirAll			PBASE-F32-DirScan-PublicApi-1007-002-MkDirAll_command006
sl@0
   374
		COMMAND		TEntry1		new
sl@0
   375
		COMMAND		CDirScan1	NewL			PBASE-F32-DirScan-PublicApi-1007-002-NewL_command008
sl@0
   376
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1007-002-SetScanDataL_command009
sl@0
   377
		COMMAND		CDirScan1	NextL			PBASE-F32-DirScan-PublicApi-1007-002-NextL_command010
sl@0
   378
		COMMAND		CDirScan1	FullPath		PBASE-F32-DirScan-PublicApi-1007-002-FullPath_command011
sl@0
   379
		COMMAND		CDir1		Count			PBASE-F32-DirScan-PublicApi-1007-002-Count_command012
sl@0
   380
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1007-002-index_command013
sl@0
   381
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1007-002-index_command014
sl@0
   382
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1007-002-index_command015
sl@0
   383
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1007-002-index_command016
sl@0
   384
		COMMAND		CDir1		~
sl@0
   385
		COMMAND		CDirScan1	~
sl@0
   386
		COMMAND		RFs1		RmDir			PBASE-F32-DirScan-PublicApi-1007-002-RmDir_command019
sl@0
   387
		COMMAND		TEntry1		~
sl@0
   388
		COMMAND		RFs1		~		
sl@0
   389
	END_TEST_BLOCK
sl@0
   390
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   391
		CREATE_OBJECT	RFs		RFs1
sl@0
   392
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   393
		COMMAND		RFs1		new			
sl@0
   394
		COMMAND		RFs1		Connect
sl@0
   395
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1007-003-NewL_command004
sl@0
   396
		COMMAND		CFileMan1	Delete		PBASE-F32-DirScan-PublicApi-1007-003-Delete_command005
sl@0
   397
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1007-003-RmDir_command006
sl@0
   398
		COMMAND		CFileMan1	~
sl@0
   399
		COMMAND		RFs1		~
sl@0
   400
	END_TEST_BLOCK
sl@0
   401
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1007
sl@0
   402
sl@0
   403
sl@0
   404
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1008
sl@0
   405
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1008
sl@0
   406
//! @SYMAPI			CDirScan
sl@0
   407
//! @SYMTestCaseDesc		Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask, 
sl@0
   408
//!				TScanDirection aScanDir=EScanDownTree) test, that uses KEntryAttDir as attribute mask and expects files
sl@0
   409
//!				and directories both to be returned.
sl@0
   410
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories. One directory
sl@0
   411
//!				is going to be created.
sl@0
   412
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   413
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   414
//!				2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
sl@0
   415
//!				3.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   416
//!				4.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttDir as second
sl@0
   417
//!				  parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
sl@0
   418
//!				5.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   419
//!				6.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   420
//!				7.Call CDir::Count() to verify the number of entries returned.
sl@0
   421
//!				8.Call CDir::operator[] to verify the entries returned.
sl@0
   422
//!				9.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
sl@0
   423
//! @SYMTestStatus		Implemented
sl@0
   424
//! @SYMTestPriority		Critical
sl@0
   425
//! @SYMTestExpectedResults	The SetScanDataL() method call using KEntryAttDir as attribute mask returns both files and directories.
sl@0
   426
//! @SYMTestType		CIT
sl@0
   427
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   428
		CREATE_OBJECT	RFs		RFs1
sl@0
   429
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   430
		COMMAND		RFs1		new			
sl@0
   431
		COMMAND		RFs1		Connect
sl@0
   432
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1008-001-MkDirAll_command004
sl@0
   433
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1008-001-NewL_command005
sl@0
   434
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1008-001-Copy_command006
sl@0
   435
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1008-001-Copy_command007
sl@0
   436
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1008-001-Copy_command008
sl@0
   437
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1008-001-Copy_command009
sl@0
   438
		COMMAND		CFileMan1	~
sl@0
   439
		COMMAND		RFs1		~
sl@0
   440
	END_TEST_BLOCK
sl@0
   441
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   442
		CREATE_OBJECT	RFs		RFs1
sl@0
   443
		CREATE_OBJECT	TEntry		TEntry1
sl@0
   444
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   445
		CREATE_OBJECT	CDir		CDir1
sl@0
   446
		COMMAND		RFs1		new		
sl@0
   447
		COMMAND		RFs1		Connect		
sl@0
   448
		COMMAND		RFs1		MkDirAll			PBASE-F32-DirScan-PublicApi-1008-002-MkDirAll_command006
sl@0
   449
		COMMAND		TEntry1		new
sl@0
   450
		COMMAND		CDirScan1	NewL			PBASE-F32-DirScan-PublicApi-1008-002-NewL_command008
sl@0
   451
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1008-002-SetScanDataL_command009
sl@0
   452
		COMMAND		CDirScan1	NextL			PBASE-F32-DirScan-PublicApi-1008-002-NextL_command010
sl@0
   453
		COMMAND		CDirScan1	FullPath		PBASE-F32-DirScan-PublicApi-1008-002-FullPath_command011
sl@0
   454
		COMMAND		CDir1		Count			PBASE-F32-DirScan-PublicApi-1008-002-Count_command012
sl@0
   455
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1008-002-index_command013
sl@0
   456
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1008-002-index_command014
sl@0
   457
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1008-002-index_command015
sl@0
   458
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1008-002-index_command016
sl@0
   459
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1008-002-index_command017
sl@0
   460
		COMMAND		CDir1		~
sl@0
   461
		COMMAND		CDirScan1	~		
sl@0
   462
		COMMAND		RFs1		RmDir			PBASE-F32-DirScan-PublicApi-1008-002-RmDir_command020
sl@0
   463
		COMMAND		TEntry1		~
sl@0
   464
		COMMAND		RFs1		~		
sl@0
   465
	END_TEST_BLOCK
sl@0
   466
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   467
		CREATE_OBJECT	RFs		RFs1
sl@0
   468
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   469
		COMMAND		RFs1		new			
sl@0
   470
		COMMAND		RFs1		Connect
sl@0
   471
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1008-003-NewL_command004
sl@0
   472
		COMMAND		CFileMan1	Delete		PBASE-F32-DirScan-PublicApi-1008-003-Delete_command005
sl@0
   473
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1008-003-RmDir_command006
sl@0
   474
		COMMAND		CFileMan1	~
sl@0
   475
		COMMAND		RFs1		~
sl@0
   476
	END_TEST_BLOCK
sl@0
   477
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1008
sl@0
   478
sl@0
   479
sl@0
   480
sl@0
   481
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1009
sl@0
   482
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1009
sl@0
   483
//! @SYMAPI			CDirScan
sl@0
   484
//! @SYMTestCaseDesc		Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask, 
sl@0
   485
//!				TScanDirection aScanDir=EScanDownTree) test, that uses KEntryAttDir|KEntryAttMatchExclusive as attribute mask
sl@0
   486
//!				and expects directories only to be returned.
sl@0
   487
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains no files and no directories. One directory
sl@0
   488
//!				is going to be created.
sl@0
   489
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   490
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   491
//!				2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
sl@0
   492
//!				3.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   493
//!				4.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttDir|KEntryAttMatchExclusive
sl@0
   494
//!				  as second parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
sl@0
   495
//!				5.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   496
//!				6.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   497
//!				7.Call CDir::Count() to verify the number of entries returned.
sl@0
   498
//!				8.Call CDir::operator[] to verify the entries returned.
sl@0
   499
//!				9.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir\ as parameter
sl@0
   500
//! @SYMTestStatus		Implemented
sl@0
   501
//! @SYMTestPriority		Critical
sl@0
   502
//! @SYMTestExpectedResults	The SetScanDataL() method call using KEntryAttDir|KEntryAttMatchExclusive as attribute mask returns
sl@0
   503
//!				directories only.
sl@0
   504
//! @SYMTestType		CIT
sl@0
   505
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   506
		CREATE_OBJECT	RFs		RFs1
sl@0
   507
		COMMAND		RFs1		new			
sl@0
   508
		COMMAND		RFs1		Connect
sl@0
   509
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1009-001-MkDirAll_command003
sl@0
   510
		COMMAND		RFs1		~
sl@0
   511
	END_TEST_BLOCK
sl@0
   512
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   513
		CREATE_OBJECT	RFs		RFs1
sl@0
   514
		CREATE_OBJECT	TEntry		TEntry1
sl@0
   515
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   516
		CREATE_OBJECT	CDir		CDir1
sl@0
   517
		COMMAND		RFs1		new		
sl@0
   518
		COMMAND		RFs1		Connect		
sl@0
   519
		COMMAND		RFs1		MkDirAll			PBASE-F32-DirScan-PublicApi-1009-002-MkDirAll_command006
sl@0
   520
		COMMAND		TEntry1		new
sl@0
   521
		COMMAND		CDirScan1	NewL			PBASE-F32-DirScan-PublicApi-1009-002-NewL_command008
sl@0
   522
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1009-002-SetScanDataL_command009
sl@0
   523
		COMMAND		CDirScan1	NextL			PBASE-F32-DirScan-PublicApi-1009-002-NextL_command010
sl@0
   524
		COMMAND		CDirScan1	FullPath		PBASE-F32-DirScan-PublicApi-1009-002-FullPath_command011
sl@0
   525
		COMMAND		CDir1		Count			PBASE-F32-DirScan-PublicApi-1009-002-Count_command012
sl@0
   526
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1009-002-index_command013
sl@0
   527
		COMMAND		CDir1		~
sl@0
   528
		COMMAND		CDirScan1	~		
sl@0
   529
		COMMAND		RFs1		RmDir			PBASE-F32-DirScan-PublicApi-1009-002-RmDir_command016
sl@0
   530
		COMMAND		TEntry1		~
sl@0
   531
		COMMAND		RFs1		~		
sl@0
   532
	END_TEST_BLOCK
sl@0
   533
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   534
		CREATE_OBJECT	RFs		RFs1
sl@0
   535
		COMMAND		RFs1		new			
sl@0
   536
		COMMAND		RFs1		Connect
sl@0
   537
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1009-003-RmDir_command003
sl@0
   538
		COMMAND		RFs1		~
sl@0
   539
	END_TEST_BLOCK
sl@0
   540
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1009
sl@0
   541
sl@0
   542
sl@0
   543
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1010
sl@0
   544
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1010
sl@0
   545
//! @SYMAPI			CDirScan
sl@0
   546
//! @SYMTestCaseDesc		Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask, 
sl@0
   547
//!				TScanDirection aScanDir=EScanDownTree) test, that uses KEntryAttReadOnly|KEntryAttMatchExclusive as attribute
sl@0
   548
//!				mask and expects only read-only files to be returned.
sl@0
   549
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories.
sl@0
   550
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   551
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   552
//!				2.Call RFs::SetAtt() to clear all possible read-only attributes.
sl@0
   553
//!				3.Call RFs::SetAtt() to set some read-only attributes.
sl@0
   554
//!				4.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   555
//!				5.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttReadOnly|KEntryAttMatchExclusive
sl@0
   556
//!				  as second parameter, ESortByName as third parameter and EScanDownTree as fourth parameter
sl@0
   557
//!				6.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   558
//!				7.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   559
//!				8.Call CDir::Count() to verify the number of entries returned.
sl@0
   560
//!				9.Call CDir::operator[] to verify the entries returned.
sl@0
   561
//! @SYMTestStatus		Implemented
sl@0
   562
//! @SYMTestPriority		Critical
sl@0
   563
//! @SYMTestExpectedResults	The SetScanDataL() method call using KEntryAttReadOnly|KEntryAttMatchExclusive as attribute mask returns
sl@0
   564
//!				only read-only files and directories.
sl@0
   565
//! @SYMTestType		CIT
sl@0
   566
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   567
		CREATE_OBJECT	RFs		RFs1
sl@0
   568
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   569
		COMMAND		RFs1		new			
sl@0
   570
		COMMAND		RFs1		Connect
sl@0
   571
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1010-001-MkDirAll_command004
sl@0
   572
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1010-001-NewL_command005
sl@0
   573
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1010-001-Copy_command006
sl@0
   574
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1010-001-Copy_command007
sl@0
   575
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1010-001-Copy_command008
sl@0
   576
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1010-001-Copy_command009
sl@0
   577
		COMMAND		CFileMan1	~
sl@0
   578
		COMMAND		RFs1		~
sl@0
   579
	END_TEST_BLOCK
sl@0
   580
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   581
		CREATE_OBJECT	RFs		RFs1
sl@0
   582
		CREATE_OBJECT	TEntry		TEntry1
sl@0
   583
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   584
		CREATE_OBJECT	CDir		CDir1
sl@0
   585
		COMMAND		RFs1		new		
sl@0
   586
		COMMAND		RFs1		Connect		
sl@0
   587
		COMMAND		RFs1		SetAtt			PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command006
sl@0
   588
		COMMAND		RFs1		SetAtt			PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command007
sl@0
   589
		COMMAND		RFs1		SetAtt			PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command008
sl@0
   590
		COMMAND		RFs1		SetAtt			PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command009
sl@0
   591
		COMMAND		RFs1		SetAtt			PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command010
sl@0
   592
		COMMAND		RFs1		SetAtt			PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command011
sl@0
   593
		COMMAND		TEntry1		new
sl@0
   594
		COMMAND		CDirScan1	NewL			PBASE-F32-DirScan-PublicApi-1010-002-NewL_command013
sl@0
   595
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1010-002-SetScanDataL_command014
sl@0
   596
		COMMAND		CDirScan1	NextL			PBASE-F32-DirScan-PublicApi-1010-002-NextL_command015
sl@0
   597
		COMMAND		CDirScan1	FullPath		PBASE-F32-DirScan-PublicApi-1010-002-FullPath_command016
sl@0
   598
		COMMAND		CDir1		Count			PBASE-F32-DirScan-PublicApi-1010-002-Count_command017
sl@0
   599
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1010-002-index_command018
sl@0
   600
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1010-002-index_command019
sl@0
   601
		COMMAND		RFs1		SetAtt			PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command020
sl@0
   602
		COMMAND		RFs1		SetAtt			PBASE-F32-DirScan-PublicApi-1010-002-SetAtt_command021
sl@0
   603
		COMMAND		CDir1		~
sl@0
   604
		COMMAND		CDirScan1	~
sl@0
   605
		COMMAND		TEntry1		~		
sl@0
   606
		COMMAND		RFs1		~		
sl@0
   607
	END_TEST_BLOCK
sl@0
   608
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   609
		CREATE_OBJECT	RFs		RFs1
sl@0
   610
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   611
		COMMAND		RFs1		new			
sl@0
   612
		COMMAND		RFs1		Connect
sl@0
   613
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1010-003-NewL_command004
sl@0
   614
		COMMAND		CFileMan1	Delete		PBASE-F32-DirScan-PublicApi-1010-003-Delete_command005
sl@0
   615
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1010-003-RmDir_command006
sl@0
   616
		COMMAND		CFileMan1	~
sl@0
   617
		COMMAND		RFs1		~
sl@0
   618
	END_TEST_BLOCK
sl@0
   619
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1010
sl@0
   620
sl@0
   621
sl@0
   622
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1011
sl@0
   623
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1011
sl@0
   624
//! @SYMAPI			CDirScan
sl@0
   625
//! @SYMTestCaseDesc		Function SetScanDataL() test, that checks that when using relative path then everything else is taken from
sl@0
   626
//!				the session path.
sl@0
   627
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains no files and no directories.
sl@0
   628
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   629
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   630
//!				2.Call RFs::SetSessionPath() to set new session path, passing <RAM_DRIVE>:\<RELATIVE_PATH>\ as parameter.
sl@0
   631
//!				3.Call RFs::SessionPath() to verify previous action.
sl@0
   632
//!				4.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   633
//!				5.Call CDirScan::SetScanDataL() and \dirscan\ as first parameter, KEntryAttNormal as second parameter,
sl@0
   634
//!				  ESortByName as third parameter and EScanDownTree as fourth parameter.
sl@0
   635
//!				6.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   636
//!				7.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   637
//! @SYMTestStatus		Implemented
sl@0
   638
//! @SYMTestPriority		Critical
sl@0
   639
//! @SYMTestExpectedResults	The SetScanDataL() method call using relative path takes everything else from the session path.
sl@0
   640
//! @SYMTestType		CIT
sl@0
   641
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   642
		CREATE_OBJECT	RFs		RFs1
sl@0
   643
		COMMAND		RFs1		new			
sl@0
   644
		COMMAND		RFs1		Connect
sl@0
   645
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1011-001-MkDirAll_command003
sl@0
   646
		COMMAND		RFs1		~
sl@0
   647
	END_TEST_BLOCK
sl@0
   648
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   649
		CREATE_OBJECT	RFs		RFs1
sl@0
   650
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   651
		CREATE_OBJECT	CDir		CDir1
sl@0
   652
		COMMAND		RFs1		new		
sl@0
   653
		COMMAND		RFs1		Connect		
sl@0
   654
		COMMAND		RFs1		SetSessionPath		PBASE-F32-DirScan-PublicApi-1011-002-SetSessionPath_command004
sl@0
   655
		COMMAND		RFs1		SessionPath		PBASE-F32-DirScan-PublicApi-1011-002-SessionPath_command005
sl@0
   656
		COMMAND		CDirScan1	NewL			PBASE-F32-DirScan-PublicApi-1011-002-NewL_command006
sl@0
   657
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1011-002-SetScanDataL_command007
sl@0
   658
		COMMAND		CDirScan1	NextL			PBASE-F32-DirScan-PublicApi-1011-002-NextL_command008
sl@0
   659
		COMMAND		CDirScan1	FullPath		PBASE-F32-DirScan-PublicApi-1011-002-FullPath_command009
sl@0
   660
		COMMAND		CDir1		~
sl@0
   661
		COMMAND		CDirScan1	~		
sl@0
   662
		COMMAND		RFs1		~		
sl@0
   663
	END_TEST_BLOCK
sl@0
   664
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   665
		CREATE_OBJECT	RFs		RFs1
sl@0
   666
		COMMAND		RFs1		new			
sl@0
   667
		COMMAND		RFs1		Connect
sl@0
   668
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1011-003-RmDir_command003
sl@0
   669
		COMMAND		RFs1		~
sl@0
   670
	END_TEST_BLOCK	
sl@0
   671
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1011
sl@0
   672
sl@0
   673
sl@0
   674
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1012
sl@0
   675
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1012
sl@0
   676
//! @SYMAPI			CDirScan
sl@0
   677
//! @SYMTestCaseDesc		Function SetScanDataL() test, that checks that when using path without the traling \ then it starts scanning
sl@0
   678
//!				the parent directory.
sl@0
   679
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains no files and no directories.
sl@0
   680
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   681
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   682
//!				2.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   683
//!				3.Call CDirScan::SetScanDataL() and drive>:\dirscan as first parameter, KEntryAttNormal as second parameter,
sl@0
   684
//!				  ESortByName as third parameter and EScanDownTree as fourth parameter.
sl@0
   685
//!				4.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   686
//!				5.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   687
//! @SYMTestStatus		Implemented
sl@0
   688
//! @SYMTestPriority		Critical
sl@0
   689
//! @SYMTestExpectedResults	The SetScanDataL() method call using path without trailing \ starts scanning the parent directory.
sl@0
   690
//! @SYMTestType		CIT
sl@0
   691
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   692
		CREATE_OBJECT	RFs		RFs1
sl@0
   693
		COMMAND		RFs1		new			
sl@0
   694
		COMMAND		RFs1		Connect
sl@0
   695
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1012-001-MkDirAll_command003
sl@0
   696
		COMMAND		RFs1		~
sl@0
   697
	END_TEST_BLOCK
sl@0
   698
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   699
		CREATE_OBJECT	RFs		RFs1
sl@0
   700
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   701
		CREATE_OBJECT	CDir		CDir1
sl@0
   702
		COMMAND		RFs1		new		
sl@0
   703
		COMMAND		RFs1		Connect		
sl@0
   704
		COMMAND		CDirScan1	NewL			PBASE-F32-DirScan-PublicApi-1012-002-NewL_command004
sl@0
   705
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1012-002-SetScanDataL_command005
sl@0
   706
		COMMAND		CDirScan1	NextL			PBASE-F32-DirScan-PublicApi-1012-002-NextL_command006
sl@0
   707
		COMMAND		CDirScan1	FullPath		PBASE-F32-DirScan-PublicApi-1012-002-FullPath_command007
sl@0
   708
		COMMAND		CDir1		~
sl@0
   709
		COMMAND		CDirScan1	~		
sl@0
   710
		COMMAND		RFs1		~		
sl@0
   711
	END_TEST_BLOCK
sl@0
   712
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   713
		CREATE_OBJECT	RFs		RFs1
sl@0
   714
		COMMAND		RFs1		new			
sl@0
   715
		COMMAND		RFs1		Connect
sl@0
   716
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1012-003-RmDir_command003
sl@0
   717
		COMMAND		RFs1		~
sl@0
   718
	END_TEST_BLOCK	
sl@0
   719
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1012
sl@0
   720
sl@0
   721
sl@0
   722
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1013
sl@0
   723
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1013
sl@0
   724
//! @SYMAPI			CDirScan
sl@0
   725
//! @SYMTestCaseDesc		Function SetScanDataL() test, that uses ESortByName | EAscending as sort key.
sl@0
   726
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories.
sl@0
   727
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   728
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   729
//!				2.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   730
//!				3.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttNormal as second
sl@0
   731
//!				  parameter, ESortByName | EAscending as third parameter and EScanDownTree as fourth parameter
sl@0
   732
//!				4.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   733
//!				5.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   734
//!				6.Call CDir::Count() to verify the number of entries returned.
sl@0
   735
//!				7.Call CDir::operator[] to verify the entries returned.
sl@0
   736
//! @SYMTestStatus		Implemented
sl@0
   737
//! @SYMTestPriority		Critical
sl@0
   738
//! @SYMTestExpectedResults	The SetScanDataL() method call using ESortByName | EAscending as sort key sorts the entries as expected.
sl@0
   739
//! @SYMTestType		CIT
sl@0
   740
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   741
		CREATE_OBJECT	RFs		RFs1
sl@0
   742
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   743
		COMMAND		RFs1		new			
sl@0
   744
		COMMAND		RFs1		Connect
sl@0
   745
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1013-001-MkDirAll_command004
sl@0
   746
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1013-001-NewL_command005
sl@0
   747
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1013-001-Copy_command006
sl@0
   748
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1013-001-Copy_command007
sl@0
   749
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1013-001-Copy_command008
sl@0
   750
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1013-001-Copy_command009
sl@0
   751
		COMMAND		CFileMan1	~
sl@0
   752
		COMMAND		RFs1		~
sl@0
   753
	END_TEST_BLOCK
sl@0
   754
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   755
		CREATE_OBJECT	RFs		RFs1
sl@0
   756
		CREATE_OBJECT	TEntry		TEntry1
sl@0
   757
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   758
		CREATE_OBJECT	CDir		CDir1
sl@0
   759
		COMMAND		RFs1		new		
sl@0
   760
		COMMAND		RFs1		Connect	
sl@0
   761
		COMMAND		TEntry1		new	
sl@0
   762
		COMMAND		CDirScan1	NewL			PBASE-F32-DirScan-PublicApi-1013-002-NewL_command007
sl@0
   763
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1013-002-SetScanDataL_command008
sl@0
   764
		COMMAND		CDirScan1	NextL			PBASE-F32-DirScan-PublicApi-1013-002-NextL_command009
sl@0
   765
		COMMAND		CDirScan1	FullPath		PBASE-F32-DirScan-PublicApi-1013-002-FullPath_command010
sl@0
   766
		COMMAND		CDir1		Count			PBASE-F32-DirScan-PublicApi-1013-002-Count_command011
sl@0
   767
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1013-002-index_command012
sl@0
   768
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1013-002-index_command013
sl@0
   769
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1013-002-index_command014
sl@0
   770
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1013-002-index_command015
sl@0
   771
		COMMAND		CDir1		~
sl@0
   772
		COMMAND		CDirScan1	~
sl@0
   773
		COMMAND		TEntry1		~		
sl@0
   774
		COMMAND		RFs1		~		
sl@0
   775
	END_TEST_BLOCK
sl@0
   776
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   777
		CREATE_OBJECT	RFs		RFs1
sl@0
   778
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   779
		COMMAND		RFs1		new			
sl@0
   780
		COMMAND		RFs1		Connect
sl@0
   781
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1013-003-NewL_command004
sl@0
   782
		COMMAND		CFileMan1	Delete		PBASE-F32-DirScan-PublicApi-1013-003-Delete_command005
sl@0
   783
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1013-003-RmDir_command006
sl@0
   784
		COMMAND		CFileMan1	~
sl@0
   785
		COMMAND		RFs1		~
sl@0
   786
	END_TEST_BLOCK	
sl@0
   787
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1013
sl@0
   788
sl@0
   789
sl@0
   790
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1014
sl@0
   791
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1014
sl@0
   792
//! @SYMAPI			CDirScan
sl@0
   793
//! @SYMTestCaseDesc		Function SetScanDataL() test, that uses ESortByExt | EDescending as sort key.
sl@0
   794
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories.
sl@0
   795
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   796
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   797
//!				2.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   798
//!				3.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttNormal as second
sl@0
   799
//!				  parameter, ESortByExt | EDescending as third parameter and EScanDownTree as fourth parameter
sl@0
   800
//!				4.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   801
//!				5.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   802
//!				6.Call CDir::Count() to verify the number of entries returned.
sl@0
   803
//!				7.Call CDir::operator[] to verify the entries returned.
sl@0
   804
//! @SYMTestStatus		Implemented
sl@0
   805
//! @SYMTestPriority		Critical
sl@0
   806
//! @SYMTestExpectedResults	The SetScanDataL() method call using ESortByExt | EDescending as sort key sorts the entries as expected.
sl@0
   807
//! @SYMTestType		CIT
sl@0
   808
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   809
		CREATE_OBJECT	RFs		RFs1
sl@0
   810
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   811
		COMMAND		RFs1		new			
sl@0
   812
		COMMAND		RFs1		Connect
sl@0
   813
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1014-001-MkDirAll_command004
sl@0
   814
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1014-001-NewL_command005
sl@0
   815
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1014-001-Copy_command006
sl@0
   816
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1014-001-Copy_command007
sl@0
   817
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1014-001-Copy_command008
sl@0
   818
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1014-001-Copy_command009
sl@0
   819
		COMMAND		CFileMan1	~
sl@0
   820
		COMMAND		RFs1		~
sl@0
   821
	END_TEST_BLOCK
sl@0
   822
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   823
		CREATE_OBJECT	RFs		RFs1
sl@0
   824
		CREATE_OBJECT	TEntry		TEntry1
sl@0
   825
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   826
		CREATE_OBJECT	CDir		CDir1
sl@0
   827
		COMMAND		RFs1		new		
sl@0
   828
		COMMAND		RFs1		Connect	
sl@0
   829
		COMMAND		TEntry1		new	
sl@0
   830
		COMMAND		CDirScan1	NewL			PBASE-F32-DirScan-PublicApi-1014-002-NewL_command007
sl@0
   831
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1014-002-SetScanDataL_command008
sl@0
   832
		COMMAND		CDirScan1	NextL			PBASE-F32-DirScan-PublicApi-1014-002-NextL_command009
sl@0
   833
		COMMAND		CDirScan1	FullPath		PBASE-F32-DirScan-PublicApi-1014-002-FullPath_command010
sl@0
   834
		COMMAND		CDir1		Count			PBASE-F32-DirScan-PublicApi-1014-002-Count_command011
sl@0
   835
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1014-002-index_command012
sl@0
   836
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1014-002-index_command013
sl@0
   837
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1014-002-index_command014
sl@0
   838
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1014-002-index_command015
sl@0
   839
		COMMAND		CDir1		~
sl@0
   840
		COMMAND		CDirScan1	~
sl@0
   841
		COMMAND		TEntry1		~		
sl@0
   842
		COMMAND		RFs1		~		
sl@0
   843
	END_TEST_BLOCK
sl@0
   844
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   845
		CREATE_OBJECT	RFs		RFs1
sl@0
   846
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   847
		COMMAND		RFs1		new			
sl@0
   848
		COMMAND		RFs1		Connect
sl@0
   849
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1014-003-NewL_command004
sl@0
   850
		COMMAND		CFileMan1	Delete		PBASE-F32-DirScan-PublicApi-1014-003-Delete_command005
sl@0
   851
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1014-003-RmDir_command006
sl@0
   852
		COMMAND		CFileMan1	~
sl@0
   853
		COMMAND		RFs1		~
sl@0
   854
	END_TEST_BLOCK	
sl@0
   855
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1014
sl@0
   856
sl@0
   857
sl@0
   858
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1015
sl@0
   859
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1015
sl@0
   860
//! @SYMAPI			CDirScan
sl@0
   861
//! @SYMTestCaseDesc		Function SetScanDataL() test, that uses EDirsFirst | EDirDescending | ESortByDate as sort key.
sl@0
   862
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories. Two directories
sl@0
   863
//!				will be created.
sl@0
   864
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   865
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   866
//!				2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
sl@0
   867
//!				3.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
sl@0
   868
//!				4.Call RFs::SetModified(const TDesC &aName, const TTime &aTime) to set directories' and files' modified date.
sl@0
   869
//!				5.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   870
//!				6.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttDir as second
sl@0
   871
//!				  parameter, EDirsFirst | EDirDescending | ESortByDate as third parameter and EScanDownTree as fourth parameter
sl@0
   872
//!				7.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   873
//!				8.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   874
//!				9.Call CDir::Count() to verify the number of entries returned.
sl@0
   875
//!				10.Call CDir::operator[] to verify the entries returned.
sl@0
   876
//!				11.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
sl@0
   877
//!				12.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
sl@0
   878
//! @SYMTestStatus		Implemented
sl@0
   879
//! @SYMTestPriority		Critical
sl@0
   880
//! @SYMTestExpectedResults	The SetScanDataL() method call using EDirsFirst | EDirDescending | ESortByDate as sort key sorts the entries as expected.
sl@0
   881
//! @SYMTestType		CIT
sl@0
   882
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   883
		CREATE_OBJECT	RFs		RFs1
sl@0
   884
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   885
		COMMAND		RFs1		new			
sl@0
   886
		COMMAND		RFs1		Connect
sl@0
   887
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1015-001-MkDirAll_command004
sl@0
   888
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1015-001-NewL_command005
sl@0
   889
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1015-001-Copy_command006
sl@0
   890
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1015-001-Copy_command007
sl@0
   891
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1015-001-Copy_command008
sl@0
   892
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1015-001-Copy_command009
sl@0
   893
		COMMAND		CFileMan1	~
sl@0
   894
		COMMAND		RFs1		~
sl@0
   895
	END_TEST_BLOCK
sl@0
   896
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   897
		CREATE_OBJECT	RFs		RFs1
sl@0
   898
		CREATE_OBJECT	TEntry		TEntry1
sl@0
   899
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   900
		CREATE_OBJECT	CDir		CDir1
sl@0
   901
		COMMAND		RFs1		new		
sl@0
   902
		COMMAND		RFs1		Connect	
sl@0
   903
		COMMAND		RFs1		MkDirAll			PBASE-F32-DirScan-PublicApi-1015-002-MkDirAll_command006
sl@0
   904
		COMMAND		RFs1		MkDirAll			PBASE-F32-DirScan-PublicApi-1015-002-MkDirAll_command007
sl@0
   905
		COMMAND		RFs1		SetModified		PBASE-F32-DirScan-PublicApi-1015-002-SetModified_command008
sl@0
   906
		COMMAND		RFs1		SetModified		PBASE-F32-DirScan-PublicApi-1015-002-SetModified_command009
sl@0
   907
		COMMAND		RFs1		SetModified		PBASE-F32-DirScan-PublicApi-1015-002-SetModified_command010
sl@0
   908
		COMMAND		RFs1		SetModified		PBASE-F32-DirScan-PublicApi-1015-002-SetModified_command011
sl@0
   909
		COMMAND		TEntry1		new	
sl@0
   910
		COMMAND		CDirScan1	NewL			PBASE-F32-DirScan-PublicApi-1015-002-NewL_command013
sl@0
   911
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1015-002-SetScanDataL_command014
sl@0
   912
		COMMAND		CDirScan1	NextL			PBASE-F32-DirScan-PublicApi-1015-002-NextL_command015
sl@0
   913
		COMMAND		CDirScan1	FullPath		PBASE-F32-DirScan-PublicApi-1015-002-FullPath_command016
sl@0
   914
		COMMAND		CDir1		Count			PBASE-F32-DirScan-PublicApi-1015-002-Count_command017
sl@0
   915
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1015-002-index_command018
sl@0
   916
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1015-002-index_command019
sl@0
   917
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1015-002-index_command020
sl@0
   918
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1015-002-index_command021
sl@0
   919
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1015-002-index_command022
sl@0
   920
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1015-002-index_command023
sl@0
   921
		COMMAND		RFs1		RmDir			PBASE-F32-DirScan-PublicApi-1015-002-RmDir_command024
sl@0
   922
		COMMAND		RFs1		RmDir			PBASE-F32-DirScan-PublicApi-1015-002-RmDir_command025
sl@0
   923
		COMMAND		CDir1		~
sl@0
   924
		COMMAND		CDirScan1	~	
sl@0
   925
		COMMAND		TEntry1		~	
sl@0
   926
		COMMAND		RFs1		~		
sl@0
   927
	END_TEST_BLOCK
sl@0
   928
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   929
		CREATE_OBJECT	RFs		RFs1
sl@0
   930
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   931
		COMMAND		RFs1		new			
sl@0
   932
		COMMAND		RFs1		Connect
sl@0
   933
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1015-003-NewL_command004
sl@0
   934
		COMMAND		CFileMan1	Delete		PBASE-F32-DirScan-PublicApi-1015-003-Delete_command005
sl@0
   935
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1015-003-RmDir_command006
sl@0
   936
		COMMAND		CFileMan1	~
sl@0
   937
		COMMAND		RFs1		~
sl@0
   938
	END_TEST_BLOCK
sl@0
   939
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1015
sl@0
   940
sl@0
   941
sl@0
   942
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1016
sl@0
   943
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1016
sl@0
   944
//! @SYMAPI			CDirScan
sl@0
   945
//! @SYMTestCaseDesc		Function SetScanDataL() test, that uses EDirsLast | ESortBySize as sort key.
sl@0
   946
//!				Directory used in SetScanDataL() - <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ - contains 4 files and no directories. Two directories
sl@0
   947
//!				will be created.
sl@0
   948
//! 				Uses API elements: NewL(), SetScanDataL(), NextL(), FullPath().
sl@0
   949
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
   950
//!				2.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
sl@0
   951
//!				3.Call RFs::MkDirAll() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
sl@0
   952
//!				4.Call CDirScan::NewL() and connected file server session as parameter.
sl@0
   953
//!				5.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttDir as second
sl@0
   954
//!				  parameter, EDirsLast | ESortBySize as third parameter and EScanDownTree as fourth parameter
sl@0
   955
//!				6.Call CDirScan::NextL() and CDir object as parameter.
sl@0
   956
//!				7.Call CDirScan::FullPath() to verify the expected directory path.
sl@0
   957
//!				8.Call CDir::Count() to verify the number of entries returned.
sl@0
   958
//!				9.Call CDir::operator[] to verify the entries returned.
sl@0
   959
//!				10.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir1\ as parameter
sl@0
   960
//!				11.Call RFs::RmDir() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\TempDir2\ as parameter
sl@0
   961
//! @SYMTestStatus		Implemented
sl@0
   962
//! @SYMTestPriority		Critical
sl@0
   963
//! @SYMTestExpectedResults	The SetScanDataL() method call using EDirsLast | ESortBySize as sort key sorts the entries as expected.
sl@0
   964
//! @SYMTestType		CIT
sl@0
   965
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   966
		CREATE_OBJECT	RFs		RFs1
sl@0
   967
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
   968
		COMMAND		RFs1		new			
sl@0
   969
		COMMAND		RFs1		Connect
sl@0
   970
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1016-001-MkDirAll_command004
sl@0
   971
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1016-001-NewL_command005
sl@0
   972
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1016-001-Copy_command006
sl@0
   973
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1016-001-Copy_command007
sl@0
   974
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1016-001-Copy_command008
sl@0
   975
		COMMAND		CFileMan1	Copy		PBASE-F32-DirScan-PublicApi-1016-001-Copy_command009
sl@0
   976
		COMMAND		CFileMan1	~
sl@0
   977
		COMMAND		RFs1		~
sl@0
   978
	END_TEST_BLOCK
sl@0
   979
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
   980
		CREATE_OBJECT	RFs		RFs1
sl@0
   981
		CREATE_OBJECT	TEntry		TEntry1
sl@0
   982
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
   983
		CREATE_OBJECT	CDir		CDir1
sl@0
   984
		COMMAND		RFs1		new		
sl@0
   985
		COMMAND		RFs1		Connect	
sl@0
   986
		COMMAND		RFs1		MkDirAll			PBASE-F32-DirScan-PublicApi-1016-002-MkDirAll_command006
sl@0
   987
		COMMAND		RFs1		MkDirAll			PBASE-F32-DirScan-PublicApi-1016-002-MkDirAll_command007
sl@0
   988
		COMMAND		TEntry1		new
sl@0
   989
		COMMAND		CDirScan1	NewL			PBASE-F32-DirScan-PublicApi-1016-002-NewL_command009
sl@0
   990
		COMMAND		CDirScan1	SetScanDataL		PBASE-F32-DirScan-PublicApi-1016-002-SetScanDataL_command010
sl@0
   991
		COMMAND		CDirScan1	NextL			PBASE-F32-DirScan-PublicApi-1016-002-NextL_command011
sl@0
   992
		COMMAND		CDirScan1	FullPath		PBASE-F32-DirScan-PublicApi-1016-002-FullPath_command012
sl@0
   993
		COMMAND		CDir1		Count			PBASE-F32-DirScan-PublicApi-1016-002-Count_command013
sl@0
   994
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1016-002-index_command014
sl@0
   995
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1016-002-index_command015
sl@0
   996
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1016-002-index_command016
sl@0
   997
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1016-002-index_command017
sl@0
   998
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1016-002-index_command018
sl@0
   999
		COMMAND		CDir1		[]			PBASE-F32-DirScan-PublicApi-1016-002-index_command019
sl@0
  1000
		COMMAND		RFs1		RmDir			PBASE-F32-DirScan-PublicApi-1016-002-RmDir_command020
sl@0
  1001
		COMMAND		RFs1		RmDir			PBASE-F32-DirScan-PublicApi-1016-002-RmDir_command021
sl@0
  1002
		COMMAND		CDir1		~
sl@0
  1003
		COMMAND		CDirScan1	~
sl@0
  1004
		COMMAND		TEntry1		~		
sl@0
  1005
		COMMAND		RFs1		~		
sl@0
  1006
	END_TEST_BLOCK
sl@0
  1007
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
  1008
		CREATE_OBJECT	RFs		RFs1
sl@0
  1009
		CREATE_OBJECT	CFileMan	CFileMan1
sl@0
  1010
		COMMAND		RFs1		new			
sl@0
  1011
		COMMAND		RFs1		Connect
sl@0
  1012
		COMMAND		CFileMan1	NewL		PBASE-F32-DirScan-PublicApi-1016-003-NewL_command004
sl@0
  1013
		COMMAND		CFileMan1	Delete		PBASE-F32-DirScan-PublicApi-1016-003-Delete_command005
sl@0
  1014
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1016-003-RmDir_command006
sl@0
  1015
		COMMAND		CFileMan1	~
sl@0
  1016
		COMMAND		RFs1		~
sl@0
  1017
	END_TEST_BLOCK	
sl@0
  1018
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1016
sl@0
  1019
sl@0
  1020
sl@0
  1021
//////////////////////////////////////////////////////////////////////
sl@0
  1022
//////////////////////////////////////////////////////////////////////
sl@0
  1023
//////								//////
sl@0
  1024
//////		 ///////////////////////////////////		//////
sl@0
  1025
//////		 ///				 ///		//////
sl@0
  1026
//////		 ///	  NEGATIVE TESTS	 ///		//////
sl@0
  1027
//////		 ///				 ///		//////	
sl@0
  1028
//////		 ///////////////////////////////////		//////
sl@0
  1029
//////								//////
sl@0
  1030
//////////////////////////////////////////////////////////////////////
sl@0
  1031
//////////////////////////////////////////////////////////////////////
sl@0
  1032
sl@0
  1033
sl@0
  1034
sl@0
  1035
//////////////
sl@0
  1036
//SETSCANDATAL
sl@0
  1037
//////////////
sl@0
  1038
sl@0
  1039
START_TESTCASE			PBASE-F32-DirScan-PublicApi-1101
sl@0
  1040
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1101
sl@0
  1041
//! @SYMAPI			CDirScan
sl@0
  1042
//! @SYMTestCaseDesc		Function SetScanDataL(const TDesC &aMatchName, TUint anEntryAttMask, TUint anEntrySortMask, 
sl@0
  1043
//!				TScanDirection aScanDir=EScanDownTree) negative test, that tries initialise directories entries scan
sl@0
  1044
//!				with directory which not exists.
sl@0
  1045
//! 				Uses API elements: NewLC(), SetScanDataL(), NextL();
sl@0
  1046
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
  1047
//!				2.Call CDirScan::NewLC() and connected file server session as parameter.
sl@0
  1048
//!				3.Call CDirScan::SetScanDataL() and <RAM_DRIVE>:\<RELATIVE_PATH>\dirscan\ as first parameter, KEntryAttHidden as second
sl@0
  1049
//!				  parameter, ESortNone as third parameter and CDirScan::EScanUpTree as fourth parameter
sl@0
  1050
//!				4.Call CDirScan::NextL() and CDir pointer as parameter.
sl@0
  1051
//! @SYMTestStatus		Implemented
sl@0
  1052
//! @SYMTestPriority		Critical
sl@0
  1053
//! @SYMTestExpectedResults	NextL() returns KErrPathNotFound.
sl@0
  1054
//! @SYMTestType		CIT
sl@0
  1055
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
  1056
		CREATE_OBJECT	RFs		RFs1
sl@0
  1057
		COMMAND		RFs1		new			
sl@0
  1058
		COMMAND		RFs1		Connect
sl@0
  1059
		COMMAND		RFs1		MkDirAll		PBASE-F32-DirScan-PublicApi-1101-001-MkDirAll_command003
sl@0
  1060
		COMMAND		RFs1		~
sl@0
  1061
	END_TEST_BLOCK
sl@0
  1062
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
  1063
		CREATE_OBJECT	RFs		RFs1
sl@0
  1064
		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
  1065
		CREATE_OBJECT	CDir		CDir1
sl@0
  1066
		COMMAND			RFs1		new		
sl@0
  1067
		COMMAND			RFs1		Connect
sl@0
  1068
		COMMAND			CDirScan1	NewLC		PBASE-F32-DirScan-PublicApi-1101-002-NewLC_command004
sl@0
  1069
		COMMAND			CDirScan1	SetScanDataL	PBASE-F32-DirScan-PublicApi-1101-002-SetScanDataL_command005
sl@0
  1070
		COMMAND !Error=-12	CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1101-002-NextL_command006
sl@0
  1071
		COMMAND			CDir1		~
sl@0
  1072
		COMMAND			CDirScan1	~		
sl@0
  1073
		COMMAND			RFs1		~		
sl@0
  1074
	END_TEST_BLOCK
sl@0
  1075
	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
  1076
		CREATE_OBJECT	RFs		RFs1
sl@0
  1077
		COMMAND		RFs1		new			
sl@0
  1078
		COMMAND		RFs1		Connect
sl@0
  1079
		COMMAND		RFs1		RmDir		PBASE-F32-DirScan-PublicApi-1101-003-RmDir_command003
sl@0
  1080
		COMMAND		RFs1		~
sl@0
  1081
	END_TEST_BLOCK	
sl@0
  1082
END_TESTCASE			PBASE-F32-DirScan-PublicApi-1101
sl@0
  1083
sl@0
  1084
sl@0
  1085
////////
sl@0
  1086
//NEXTL
sl@0
  1087
////////
sl@0
  1088
sl@0
  1089
//! START_TESTCASE			PBASE-F32-DirScan-PublicApi-1102
sl@0
  1090
//! @SYMTestCaseID		PBASE-F32-DirScan-PublicApi-1102
sl@0
  1091
//! @SYMAPI			CDirScan
sl@0
  1092
//! @SYMTestCaseDesc		Function NextL(CDir *&aDirEntries) negative test, that tries to scan next directory entries when SetScanDataL()
sl@0
  1093
//!				hasn't been called.
sl@0
  1094
//! 				Uses API elements: NewLC(), NextL();
sl@0
  1095
//! @SYMTestActions		1.Call Create a RFs session and call it's Connect() function.
sl@0
  1096
//!				2.Call CDirScan::NewLC() and connected file server session as parameter.
sl@0
  1097
//!				3.Call CDirScan::NextL() and CDir pointer as parameter.
sl@0
  1098
//! @SYMTestStatus		Implemented
sl@0
  1099
//! @SYMTestPriority		Critical
sl@0
  1100
//! @SYMTestExpectedResults	NextL() raises Panic USER Code = 17 
sl@0
  1101
//! @SYMTestType		CIT
sl@0
  1102
//! 	START_TEST_BLOCK	100	T_SfSrv		\base\PBASE-F32-DirScan-PublicApi.ini 
sl@0
  1103
//! 		CREATE_OBJECT	RFs		RFs1
sl@0
  1104
//! 		CREATE_OBJECT	CDirScan	CDirScan1
sl@0
  1105
//! 		CREATE_OBJECT	CDir		CDir1
sl@0
  1106
//! 		COMMAND		RFs1		new		
sl@0
  1107
//! 		COMMAND		RFs1		Connect
sl@0
  1108
//! 		COMMAND		CDirScan1	NewLC		PBASE-F32-DirScan-PublicApi-1102-001-NewLC_command004	
sl@0
  1109
//! 		COMMAND		CDirScan1	NextL		PBASE-F32-DirScan-PublicApi-1102-001-NextL_command005
sl@0
  1110
//! 		COMMAND		CDir1		~		
sl@0
  1111
//! 		COMMAND		CDirScan1	~		
sl@0
  1112
//! 		COMMAND		RFs1		~		
sl@0
  1113
//! 	END_TEST_BLOCK	!PanicCode=17 !PanicString=USER
sl@0
  1114
//! END_TESTCASE			PBASE-F32-DirScan-PublicApi-1102