|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file TEFConst.h |
|
22 */ |
|
23 |
|
24 #ifndef __TEFCONST_H__ |
|
25 #define __TEFCONST_H__ |
|
26 #include <e32def.h> |
|
27 |
|
28 // Non exported files access only |
|
29 const TInt KTEFMaxTaskExitCategory=80; |
|
30 const TInt KTEFMaxSharedArraySize=10; |
|
31 const TInt KTEFSharedDataSize=1024; |
|
32 const TInt KTEFMinOomParamLength=4; |
|
33 const TInt KTEFMaxScriptLineLength=512; |
|
34 const TInt KTEFErrInvalidRelPath=-30003; |
|
35 |
|
36 _LIT(KTEFLoadSuiteCommand,"LOAD_SUITE"); |
|
37 _LIT(KTEFLoadServerCommand,"LOAD_SERVER"); |
|
38 _LIT(KTEFLoadSuiteSharedData,"-SharedData"); |
|
39 _LIT(KTEFConcurrentCommand,"CONCURRENT"); |
|
40 _LIT(KTEFConsecutiveCommand,"CONSECUTIVE"); |
|
41 _LIT(KTEFPrintCommand,"PRINT"); |
|
42 _LIT(KTEFRunUtilsCommand,"RUN_UTILS"); |
|
43 _LIT(KTEFRunUtilsMakeReadWrite,"MakeReadWrite"); |
|
44 _LIT(KTEFRunUtilsCopyFile,"CopyFile"); |
|
45 _LIT(KTEFRunUtilsMkDir,"MkDir"); |
|
46 _LIT(KTEFRunUtilsDeleteFile,"DeleteFile"); |
|
47 _LIT(KTEFRunUtilsDelete,"Delete"); |
|
48 _LIT(KTEFRunScriptCommand,"RUN_SCRIPT"); |
|
49 _LIT(KTEFCedCommand,"CED"); |
|
50 _LIT(KTEFDelayCommand,"DELAY"); |
|
51 _LIT(KTEFBreakErrorOnCommand,"BREAK_ERROR_ON"); |
|
52 _LIT(KTEFBreakErrorOffCommand,"BREAK_ERROR_OFF"); |
|
53 _LIT(KTEFPauseCommand,"PAUSE"); |
|
54 _LIT(KTEFPrefixCommand, "PREFIX"); |
|
55 _LIT(KTEFRemovePrefixCommand, "REMOVE_PREFIX"); |
|
56 _LIT(KTEFSharedDataCommand, "SHARED_DATA"); |
|
57 _LIT(KTEFStartRepeat,"START_REPEAT"); |
|
58 _LIT(KTEFEndRepeat,"END_REPEAT"); |
|
59 _LIT(KTEFColon, ":"); |
|
60 _LIT(KTEFSharedDataNum, "shared_data_num"); |
|
61 _LIT(KTEFSharedName, "shared_name_"); |
|
62 _LIT(KTEFErrorReadingIni,"Error reading INI file"); |
|
63 _LIT(KTEFSharedDataCommandRepeated,"SHARED_DATA Command is already in use"); |
|
64 _LIT(KTEFErrInCreatingSharedObjects, "Unable to create shared object specified"); |
|
65 _LIT(KTEFErrShareNameNotInIni, "The name of shared object %d is not specified in the ini"); |
|
66 _LIT(KTEFErrNumberOfShareNotInIni, "The number of shared objects is not specified in the ini"); |
|
67 _LIT(KTEFMaxNumberOfSharedObjectsReached, "Number of shared objects exceeded maximum allowable limit"); |
|
68 _LIT(KTEFOom, "!OOM"); |
|
69 _LIT(KTEFDeleteDirectory,"DeleteDirectory"); |
|
70 _LIT(KTEFSetUpParam, "!Setup="); |
|
71 _LIT(KTEFIniExtension, ".ini"); |
|
72 _LIT(KTEFDotSlash, ".\\"); |
|
73 _LIT(KTEFOneUp,"..\\"); |
|
74 |
|
75 // Test Block specific script commands |
|
76 _LIT(KTEFStartTestBlock,"START_TEST_BLOCK"); |
|
77 _LIT(KTEFEndTestBlock,"END_TEST_BLOCK"); |
|
78 _LIT(KTEFCreateObject,"CREATE_OBJECT"); |
|
79 _LIT(KTEFRestoreObject,"RESTORE_OBJECT"); |
|
80 _LIT(KTEFCommand,"COMMAND"); |
|
81 _LIT(KTEFStore,"STORE"); |
|
82 _LIT(KTEFOutstanding,"OUTSTANDING"); |
|
83 _LIT(KTEFDelay,"DELAY"); |
|
84 _LIT(KTEFAsyncDelay,"ASYNC_DELAY"); |
|
85 _LIT(KTEFSharedActiveScheduler,"SHARED_ACTIVE_SCHEDULER"); |
|
86 _LIT(KTEFStoreActiveScheduler,"STORE_ACTIVE_SCHEDULER"); |
|
87 _LIT(KTEFCreateActiveScheduler,"!CreateScheduler="); |
|
88 _LIT(KTEFReuseActiveScheduler,"!ReuseScheduler="); |
|
89 _LIT(KTEFDeleteActiveScheduler,"!DeleteScheduler="); |
|
90 _LIT(KTEFAsyncError,"!AsyncError="); |
|
91 _LIT(KTEFErrorResult," Error="); |
|
92 _LIT(KTEFAsyncErrorResult," AsyncError="); |
|
93 _LIT(KTEFComment,"//"); |
|
94 |
|
95 // Following set of literals are defined for version logging feature |
|
96 _LIT(KTEFConsoleHelpMessage1, "\n\n\ntestexecute <scriptfilepath>\\<scripfilename>[.script] [-d] [-slf]\ |
|
97 \n\t: Executes the scriptfile with optional modes for JustInTime debugging or separate log files"); |
|
98 _LIT(KTEFConsoleHelpMessage2, "\n\ntestexecute <scripfilename>[.script] [-d] [-slf]\ |
|
99 \n\t: Script file path can be avoided when the defaultscriptdir entry is provided in testexecute.ini"); |
|
100 _LIT(KTEFConsoleHelpMessage3, "\n\ntestexecute [-help/-v]\ |
|
101 \n\t: Run TestExecute with optional modes to display list of help options and the version number"); |
|
102 _LIT(KTEFConsoleHelpMessage4, "\n\n\n\n-help : For displaying the help options available for using TestExecute framework\ |
|
103 \n\n-v : For displaying the version of the TestExecute framework"); |
|
104 _LIT(KTEFConsoleHelpMessage5, "\n\n-slf : For printing the messages for each of the tests in separate log files\ |
|
105 \n\n-d : For enabling just in time debug mode while execution"); |
|
106 _LIT(KTEFInvalidCommandSetMessage, "Invalid set of Command line arguments\ |
|
107 \n\nType testexecute -help to learn about usages"); |
|
108 |
|
109 _LIT(KTEFVersionMessage, "\nTEF Version : "); |
|
110 _LIT(KTEFVersionMessageXML, "TEF_VERSION"); |
|
111 |
|
112 _LIT(KTEFTestSynopsisHTM, "\nTEST SYNOPSIS:"); |
|
113 _LIT(KTEFTestSynopsisXML, "TEST_SYNOPSIS"); |
|
114 |
|
115 _LIT(KTEFCountMessageHTM, " COUNT : "); |
|
116 _LIT(KTEFCountMessageXML, "_COUNT"); |
|
117 |
|
118 _LIT(KTEFNewLine, "\n"); |
|
119 _LIT(KTEFEnterKeyMessage, "\n\nEnter a key to Exit"); |
|
120 _LIT(KTEFEndOfLine,"\r\n"); |
|
121 |
|
122 #endif |