|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent - Internal Symbian test code |
|
19 */ |
|
20 |
|
21 #if (!defined __T_CMDLN_STEP_H__) |
|
22 #define __T_CMDLN_STEP_H__ |
|
23 |
|
24 #include <e32std.h> |
|
25 #include <e32base.h> |
|
26 #include <e32uid.h> |
|
27 #include <e32cmn.h> |
|
28 #include <f32file.h> |
|
29 #include <e32test.h> |
|
30 #include <apacmdln.h> |
|
31 #include <apgcli.h> |
|
32 #include "apparctestserver.h" |
|
33 #include <apparc.h> |
|
34 |
|
35 //! A CT_CmdlnStep test class. |
|
36 /** |
|
37 Test CApaCommandLine Apis. |
|
38 */ |
|
39 class CT_CmdlnStep : public CTestStep |
|
40 { |
|
41 public: |
|
42 CT_CmdlnStep(); |
|
43 ~CT_CmdlnStep(); |
|
44 virtual TVerdict doTestStepPreambleL(); |
|
45 virtual TVerdict doTestStepPostambleL(); |
|
46 virtual TVerdict doTestStepL(); |
|
47 |
|
48 void testSecureCmdLinesL(); |
|
49 void testBoundaryConditionsL(); |
|
50 void testInitializationL(); |
|
51 void testPositiveInputsL(); |
|
52 void testRecAppLaunchL(RApaLsSession& aLs); |
|
53 void testCmdLinesAPIsL(); |
|
54 |
|
55 }; |
|
56 |
|
57 _LIT(KT_CmdlnStep,"T_Cmdln"); |
|
58 |
|
59 |
|
60 #define TEST_INITIALIZATION 0 |
|
61 #define TEST_APP 1 |
|
62 #define TEST_DOC 2 |
|
63 #define TEST_TAILEND 3 |
|
64 #define TEST_COMMAND 4 |
|
65 #define TEST_FILE_HANDLE 5 |
|
66 |
|
67 #define TEST_SET_APIS 7 |
|
68 |
|
69 _LIT(KTLogFileAccess,"TestLogFile"); |
|
70 _LIT(KEnvFilePath,"c:\\Logs\\TestExecute\\EnvSlots.txt"); |
|
71 |
|
72 _LIT(KTAppName,"Z:\\sys\\bin\\T_EnvSlots.exe"); |
|
73 _LIT(KTDocName,"C:\\System\\data\\temp.test"); |
|
74 _LIT(KTempDir,"C:\\System\\data\\"); |
|
75 _LIT(KTNoDocName,"C:\\Logs\\TestExecute\\NotFound.aaa"); |
|
76 |
|
77 _LIT8(KTTailEnd,"TailEnd"); |
|
78 _LIT8(KTNullTail,""); |
|
79 _LIT8(KTDataType,"test/plain"); |
|
80 _LIT8(KTWriteData,"Support"); |
|
81 _LIT8(KTPass,"TestPass"); |
|
82 _LIT8(KTFail,"TestFail"); |
|
83 _LIT8(KTApp,"ApplName"); |
|
84 _LIT8(KTDoc,"DocuName"); |
|
85 _LIT8(KTServer,"ServerId"); |
|
86 _LIT8(KTCommand,"ECommand"); |
|
87 |
|
88 const TInt KEnvThirdUidValue = 0x102032AB; |
|
89 const TInt KOneSecond = 1000000; |
|
90 const TInt KMaxFilePath = 50; |
|
91 const TInt KFileHandleTestPassed = 99; |
|
92 |
|
93 #endif //__T_CMDLN_STEP_H__ |