author | Maciej Seroka <maciejs@symbian.org> |
Thu, 02 Sep 2010 14:07:28 +0100 | |
branch | Symbian3 |
changeset 59 | 3a0152bda91c |
parent 57 | b8d18c84f71c |
permissions | -rw-r--r-- |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1 |
/* |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2 |
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
3 |
* All rights reserved. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
8 |
* |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
11 |
* |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
12 |
* Contributors: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
13 |
* |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
14 |
* Description: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
15 |
* |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
16 |
*/ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
17 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
18 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
19 |
/** |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
20 |
@file |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
21 |
@test |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
22 |
@internalComponent |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
23 |
*/ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
24 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
25 |
#ifndef tmsteststep_ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
26 |
#define tmsteststep_ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
27 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
28 |
#include <test/testexecutestepbase.h> |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
29 |
#include <w32std.h> |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
30 |
#include <flogger.h> |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
31 |
#include <badesca.h> |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
32 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
33 |
// default name that a test will be called if not specifically set in the calling object |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
34 |
_LIT(KUnknownSYMTestCaseIDName, "@SYMTestCaseID Unnamed test"); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
35 |
_LIT(KUndefinedSYMTestCaseIDName, "@SYMTestCaseID is not defined"); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
36 |
_LIT(KNotATestSYMTestCaseIDName, "This is not a test"); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
37 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
38 |
class CTmsTestStep : public CTestStep |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
39 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
40 |
public: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
41 |
IMPORT_C CTmsTestStep(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
42 |
IMPORT_C virtual ~CTmsTestStep(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
43 |
IMPORT_C void CloseTMSGraphicsStep(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
44 |
IMPORT_C void MQCTest(TBool aCondition, const TText8* aFile, TInt aLine); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
45 |
IMPORT_C void MQCTestL(TBool aCondition, const TText8* aFile, TInt aLine); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
46 |
IMPORT_C void SetTestStepID(const TDesC& aStepName); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
47 |
IMPORT_C void SetOverallTestStepID(const TDesC& aStepName); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
48 |
IMPORT_C void RecordTestResultL(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
49 |
IMPORT_C void MultipleResultsForSameID(TBool aShowMultipleResults); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
50 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
51 |
static void DebugLogL(const TDesC8 &aText, const TDesC8 &aText1, TInt aPos); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
52 |
static TInt DebugLogPosL(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
53 |
protected: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
54 |
static TInt ReadNextLineL( RFile &aFile, TDes8 &aLine ); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
55 |
void CleanUpAndWriteResults(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
56 |
TBuf8<KMaxTestExecuteNameLength> iCurrentTestStepName; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
57 |
TBool iStepPassFail; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
58 |
TBool iShowMultipleResults; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
59 |
CDesCArrayFlat* iTestStepNames; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
60 |
RArray<TInt> iTestStepPositions; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
61 |
}; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
62 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
63 |
#endif /*tmsteststep_*/ |