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