os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-ParsePtrC-PublicApi-ANY.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-ParsePtrC-PublicApi-ANY.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,214 @@
     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-any
    1.21 +//!	@SYMScriptTestEnvironment	This test script requires a basic ROM.
    1.22 +//!	@SYMScriptAuthor 		Dmitri Trofimov, Sergei Tveritin.
    1.23 +//!	@SYMCreationDate		11/11/2007 
    1.24 +//!	@SYMScriptDescription		The test script contains API tests for the following functions of TParsePtrC class:
    1.25 +//!	TParsePtrC(TDes &aName);
    1.26 +//!	TDes &NameBuf();
    1.27 +//!	const TDesC &NameBufC() const;
    1.28 +
    1.29 +
    1.30 +LOAD_SUITE	T_SfSrv
    1.31 +//DELAY		5000
    1.32 +
    1.33 +
    1.34 +START_TESTCASE 			PBASE-F32-ParsePtrC-PublicApi-0047
    1.35 +//! @SYMTestCaseID		PBASE-F32-ParsePtrC-PublicApi-0047
    1.36 +//! @SYMAPI			TParsePtrC
    1.37 +//! @SYMTestCaseDesc		TParsePtrC() test.
    1.38 +//!				Uses API elements: TParsePtrC()
    1.39 +//! @SYMTestActions		1. Create TParsePtrC object passing a reference to a TDes file name as a parameter.
    1.40 +//!				2. Delete TParsePtrC object.
    1.41 +//!
    1.42 +//! @SYMTestStatus		Implemented
    1.43 +//! @SYMTestPriority		Critical
    1.44 +//! @SYMTestExpectedResults	Function does not leave nor panic.
    1.45 +//! @SYMTestType		CIT
    1.46 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-ParsePtrC-PublicApi.ini
    1.47 +			CREATE_OBJECT	TParsePtrC	TParsePtrC1	
    1.48 +			COMMAND		TParsePtrC1	new		PBASE-F32-ParsePtrC-PublicApi-0001command1new
    1.49 +			COMMAND		TParsePtrC1	~		
    1.50 +	END_TEST_BLOCK
    1.51 +END_TESTCASE			PBASE-F32-ParsePtrC-PublicApi-0047
    1.52 +
    1.53 +
    1.54 +START_TESTCASE 			PBASE-F32-ParsePtrC-PublicApi-0048
    1.55 +//! @SYMTestCaseID		PBASE-F32-ParsePtrC-PublicApi-0048
    1.56 +//! @SYMAPI			TParsePtrC
    1.57 +//! @SYMTestCaseDesc		TParsePtrC() test, where name passed in constructor are NUUL.
    1.58 +//!				Uses API elements: TParsePtrC()
    1.59 +//! @SYMTestActions		1. Create TParsePtrC object passing "0" as parameter.
    1.60 +//!				2. Delete TParsePtrC object.
    1.61 +//!
    1.62 +//! @SYMTestStatus		Implemented
    1.63 +//! @SYMTestPriority		Critical
    1.64 +//! @SYMTestExpectedResults	Function does not leave nor panic.
    1.65 +//! @SYMTestType		CIT
    1.66 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-ParsePtrC-PublicApi.ini
    1.67 +			CREATE_OBJECT	TParsePtrC	TParsePtrC1	
    1.68 +			COMMAND		TParsePtrC1	new		PBASE-F32-ParsePtrC-PublicApi-0002command1new
    1.69 +			COMMAND		TParsePtrC1	~		
    1.70 +	END_TEST_BLOCK
    1.71 +END_TESTCASE			PBASE-F32-ParsePtrC-PublicApi-0048
    1.72 +
    1.73 +
    1.74 +START_TESTCASE 			PBASE-F32-ParsePtrC-PublicApi-0049
    1.75 +//! @SYMTestCaseID		PBASE-F32-ParsePtrC-PublicApi-0049
    1.76 +//! @SYMAPI			TParsePtrC
    1.77 +//! @SYMTestCaseDesc		TParsePtrC() negative test, where name passed in constructor contain illegal path construction.
    1.78 +//!				Uses API elements: TParsePtrC()
    1.79 +//! @SYMTestActions		1. Create TParsePtrC object passing "c::\file.ext" as parameter.
    1.80 +//!				2. Delete TParsePtrC object.
    1.81 +//!
    1.82 +//! @SYMTestStatus		Implemented
    1.83 +//! @SYMTestPriority		Critical
    1.84 +//! @SYMTestExpectedResults	Function return panic code FSCLIENT=24.
    1.85 +//! @SYMTestType		CIT
    1.86 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-ParsePtrC-PublicApi.ini
    1.87 +			CREATE_OBJECT	TParsePtrC	TParsePtrC1	
    1.88 +			COMMAND		TParsePtrC1	new		PBASE-F32-ParsePtrC-PublicApi-0003command1new
    1.89 +			COMMAND		TParsePtrC1	~		
    1.90 +	END_TEST_BLOCK	!PanicCode=24 !PanicString="FSCLIENT panic"
    1.91 +END_TESTCASE			PBASE-F32-ParsePtrC-PublicApi-0049
    1.92 +
    1.93 +
    1.94 +START_TESTCASE 			PBASE-F32-ParsePtrC-PublicApi-0050
    1.95 +//! @SYMTestCaseID		PBASE-F32-ParsePtrC-PublicApi-0050
    1.96 +//! @SYMAPI			TParsePtrC
    1.97 +//! @SYMTestCaseDesc		TParsePtrC() test, where name passed in constructor contain wildcards.
    1.98 +//!				Uses API elements: TParsePtrC()
    1.99 +//! @SYMTestActions		1. Create TParsePtrC object passing "c:\file?.*" as parameter.
   1.100 +//!				2. Delete TParsePtrC object.
   1.101 +//!
   1.102 +//! @SYMTestStatus		Implemented
   1.103 +//! @SYMTestPriority		Critical
   1.104 +//! @SYMTestExpectedResults	Function does not leave nor panic.
   1.105 +//! @SYMTestType		CIT
   1.106 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-ParsePtrC-PublicApi.ini
   1.107 +			CREATE_OBJECT	TParsePtrC	TParsePtrC1	
   1.108 +			COMMAND		TParsePtrC1	new		PBASE-F32-ParsePtrC-PublicApi-0004command1new
   1.109 +			COMMAND		TParsePtrC1	~		
   1.110 +	END_TEST_BLOCK
   1.111 +END_TESTCASE			PBASE-F32-ParsePtrC-PublicApi-0050
   1.112 +
   1.113 +
   1.114 +START_TESTCASE 			PBASE-F32-ParsePtrC-PublicApi-0051
   1.115 +//! @SYMTestCaseID		PBASE-F32-ParsePtrC-PublicApi-0051
   1.116 +//! @SYMAPI			TParsePtrC
   1.117 +//! @SYMTestCaseDesc		TParsePtrC() negative test, where calls the function of base class  AddDir().
   1.118 +//!				Uses API elements: TParsePtrC()
   1.119 +//! @SYMTestActions		1. Create TParsePtrC object passing "c:\file.txt" as parameter.
   1.120 +//!				2. Call AddDir() and passsing "dir" as name of directory to be added.
   1.121 +//!				3. Delete TParsePtrC object.
   1.122 +//!
   1.123 +//! @SYMTestStatus		Implemented
   1.124 +//! @SYMTestPriority		Critical
   1.125 +//! @SYMTestExpectedResults	Function return FSCLIENT panic Code = 26.
   1.126 +//! @SYMTestType		CIT
   1.127 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-ParsePtrC-PublicApi.ini
   1.128 +			CREATE_OBJECT	TParsePtrC	TParsePtrC1	
   1.129 +			COMMAND		TParsePtrC1	new		PBASE-F32-ParsePtrC-PublicApi-0005command1new
   1.130 +			COMMAND		TParsePtrC1	AddDir		PBASE-F32-ParsePtrC-PublicApi-0005command2AddDir
   1.131 +			COMMAND		TParsePtrC1	~		
   1.132 +	END_TEST_BLOCK	!PanicCode=26 !PanicString="FSCLIENT panic"
   1.133 +END_TESTCASE			PBASE-F32-ParsePtrC-PublicApi-0051
   1.134 +
   1.135 +START_TESTCASE 			PBASE-F32-ParsePtrC-PublicApi-0052
   1.136 +//! @SYMTestCaseID		PBASE-F32-ParsePtrC-PublicApi-0052
   1.137 +//! @SYMAPI			TParsePtrC
   1.138 +//! @SYMTestCaseDesc		TParsePtrC() negative test, where calls the function of base class  AddDir() and pass empty parameter.
   1.139 +//!				Uses API elements: TParsePtrC()
   1.140 +//! @SYMTestActions		1. Create TParsePtrC object passing "c:\file.txt" as parameter.
   1.141 +//!				2. Call AddDir() and passsing empty string as name of directory to be added.
   1.142 +//!				3. Delete TParsePtrC object.
   1.143 +//!
   1.144 +//! @SYMTestStatus		Implemented
   1.145 +//! @SYMTestPriority		Critical
   1.146 +//! @SYMTestExpectedResults	Function does not leave nor panic.
   1.147 +//! @SYMTestType		CIT
   1.148 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-ParsePtrC-PublicApi.ini
   1.149 +			CREATE_OBJECT	TParsePtrC	TParsePtrC1	
   1.150 +			COMMAND		TParsePtrC1	new		PBASE-F32-ParsePtrC-PublicApi-0006command1new
   1.151 +			COMMAND		TParsePtrC1	AddDir		PBASE-F32-ParsePtrC-PublicApi-0006command2AddDir
   1.152 +			COMMAND		TParsePtrC1	~		
   1.153 +	END_TEST_BLOCK
   1.154 +END_TESTCASE			PBASE-F32-ParsePtrC-PublicApi-0052
   1.155 +
   1.156 +START_TESTCASE 			PBASE-F32-ParsePtrC-PublicApi-0053
   1.157 +//! @SYMTestCaseID		PBASE-F32-ParsePtrC-PublicApi-0053
   1.158 +//! @SYMAPI			TParsePtrC
   1.159 +//! @SYMTestCaseDesc		TParsePtrC() negative test, where calls the function of base class  AddDir() and pass illegal characters.
   1.160 +//!				Uses API elements: TParsePtrC()
   1.161 +//! @SYMTestActions		1. Create TParsePtrC object passing "c:\file.txt" as parameter.
   1.162 +//!				2. Call AddDir() and passsing "$%#" as name of directory to be added.
   1.163 +//!				3. Delete TParsePtrC object.
   1.164 +//!
   1.165 +//! @SYMTestStatus		Implemented
   1.166 +//! @SYMTestPriority		Critical
   1.167 +//! @SYMTestExpectedResults	Function return FSCLIENT panic Code = 26. 
   1.168 +//! @SYMTestType		CIT
   1.169 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-ParsePtrC-PublicApi.ini
   1.170 +			CREATE_OBJECT	TParsePtrC	TParsePtrC1	
   1.171 +			COMMAND		TParsePtrC1	new		PBASE-F32-ParsePtrC-PublicApi-0007command1new
   1.172 +			COMMAND		TParsePtrC1	AddDir		PBASE-F32-ParsePtrC-PublicApi-0007command2AddDir
   1.173 +			COMMAND		TParsePtrC1	~		
   1.174 +	END_TEST_BLOCK	!PanicCode=26 !PanicString="FSCLIENT panic"
   1.175 +END_TESTCASE			PBASE-F32-ParsePtrC-PublicApi-0053
   1.176 +
   1.177 +START_TESTCASE 			PBASE-F32-ParsePtrC-PublicApi-0054
   1.178 +//! @SYMTestCaseID		PBASE-F32-ParsePtrC-PublicApi-0054
   1.179 +//! @SYMAPI			TParsePtrC
   1.180 +//! @SYMTestCaseDesc		TParsePtrC() negative test, where calls the function of base class  PopDir(), where filename contains only root directory.
   1.181 +//!				Uses API elements: TParsePtrC()
   1.182 +//! @SYMTestActions		1. Create TParsePtrC object passing "c:\file.txt" as parameter.
   1.183 +//!				2. Call PopDir().
   1.184 +//!				3. Delete TParsePtrC object.
   1.185 +//!
   1.186 +//! @SYMTestStatus		Implemented
   1.187 +//! @SYMTestPriority		Critical
   1.188 +//! @SYMTestExpectedResults	Function PopDir() return error code KErrGeneral.
   1.189 +//! @SYMTestType		CIT
   1.190 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-ParsePtrC-PublicApi.ini
   1.191 +			CREATE_OBJECT		TParsePtrC	TParsePtrC1	
   1.192 +			COMMAND			TParsePtrC1	new		PBASE-F32-ParsePtrC-PublicApi-0008command1new
   1.193 +			COMMAND	!Error=-2	TParsePtrC1	PopDir		
   1.194 +			COMMAND			TParsePtrC1	~		
   1.195 +	END_TEST_BLOCK
   1.196 +END_TESTCASE			PBASE-F32-ParsePtrC-PublicApi-0054
   1.197 +
   1.198 +START_TESTCASE 			PBASE-F32-ParsePtrC-PublicApi-0055
   1.199 +//! @SYMTestCaseID		PBASE-F32-ParsePtrC-PublicApi-0055
   1.200 +//! @SYMAPI			TParsePtrC
   1.201 +//! @SYMTestCaseDesc		TParsePtrC() negative test, where calls the function of base class  PopDir(), where filename contains subdirectory.
   1.202 +//!				Uses API elements: TParsePtrC()
   1.203 +//! @SYMTestActions		1. Create TParsePtrC object passing "c:\base\file.txt" as parameter.
   1.204 +//!				2. Call PopDir().
   1.205 +//!				3. Delete TParsePtrC object.
   1.206 +//!
   1.207 +//! @SYMTestStatus		Implemented
   1.208 +//! @SYMTestPriority		Critical
   1.209 +//! @SYMTestExpectedResults	Function PopDir() FSCLIENT panic Code = 26.
   1.210 +//! @SYMTestType		CIT
   1.211 +	START_TEST_BLOCK	100	T_SfSrv	\base\PBASE-F32-ParsePtrC-PublicApi.ini
   1.212 +			CREATE_OBJECT		TParsePtrC	TParsePtrC1	
   1.213 +			COMMAND			TParsePtrC1	new		PBASE-F32-ParsePtrC-PublicApi-0009command1new
   1.214 +			COMMAND			TParsePtrC1	PopDir		
   1.215 +			COMMAND			TParsePtrC1	~		
   1.216 +	END_TEST_BLOCK !PanicCode=26 !PanicString="FSCLIENT panic"
   1.217 +END_TESTCASE			PBASE-F32-ParsePtrC-PublicApi-0055
   1.218 \ No newline at end of file