63
|
1 |
/*
|
|
2 |
* Copyright (c) 2006-2007 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: The defs for client test suite
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef PS_CLIENT_TEST_DEFS_H
|
|
19 |
#define PS_CLIENT_TEST_DEFS_H
|
|
20 |
|
|
21 |
// Logging path
|
|
22 |
_LIT( KPsTestSuiteLogPath, "\\logs\\testframework\\PsTestSuite\\" );
|
|
23 |
|
|
24 |
// Log file
|
|
25 |
_LIT( KPsTestSuiteLogFile, "PsClientTestSuite.txt" );
|
|
26 |
_LIT( KPsTestSuiteLogFileWithTitle, "PsClientTestSuite_[%S].txt" );
|
|
27 |
|
|
28 |
// The data structure used to store the contacts information
|
|
29 |
struct cacheData
|
|
30 |
{
|
|
31 |
// The vpbkId array.The ids correspond to the identifiers mentioned in vpbkeng.rsg
|
|
32 |
RArray<TInt> vpbkId;
|
|
33 |
|
|
34 |
// The corresponding data
|
|
35 |
RPointerArray<TDesC> data;
|
|
36 |
} ;
|
|
37 |
|
|
38 |
/* Configration file parameters
|
|
39 |
* Key board modes. The string mentioned below are used in the configuration
|
|
40 |
* parameters in the psclientapitest.cfg file.
|
|
41 |
*/
|
|
42 |
|
|
43 |
// Keyboard modes for query
|
|
44 |
_LIT(KItut, "EItut"); // Deprecated
|
|
45 |
_LIT(KQwerty, "EQwerty"); // Deprecated
|
|
46 |
_LIT(KPredictiveItuT, "EPredictiveItuT");
|
|
47 |
_LIT(KPredictiveQwerty, "EPredictiveQwerty");
|
|
48 |
_LIT(KPredictiveDefaultKeyboard, "EPredictiveDefaultKeyboard");
|
|
49 |
_LIT(KNonPredictive, "ENonPredictive");
|
|
50 |
_LIT(KWrongKeyboardMode, "EWrongKeyBoardMode");
|
|
51 |
|
|
52 |
// Keyboard modes for query-item
|
|
53 |
_LIT(KPredictiveItuTCode, "i");
|
|
54 |
_LIT(KPredictiveQwertyCode, "q");
|
|
55 |
_LIT(KPredictiveDefaultCode, "d");
|
|
56 |
_LIT(KNonPredictiveCode, "n");
|
|
57 |
|
|
58 |
// Sort Modes
|
|
59 |
_LIT(KPatternSort, "EPatternSort");
|
|
60 |
_LIT(KAlphaSort, "EAlphaSort");
|
|
61 |
|
|
62 |
// True/False
|
|
63 |
_LIT(KTrue, "ETrue");
|
|
64 |
_LIT(KFalse, "EFalse");
|
|
65 |
|
|
66 |
// Configuration options
|
|
67 |
_LIT(KCreateContacts, "CreateContacts"); // For creating contacts
|
|
68 |
_LIT(KCreateGroups, "CreateGroups"); // For creating groups
|
|
69 |
_LIT(KSearchQueryTag, "SQ"); // The search query
|
|
70 |
_LIT(KUriTag, "URI"); // The data store uri
|
|
71 |
_LIT(KSortOrderTag, "SORTORDER"); // Sort order for results
|
|
72 |
_LIT(KSetDisplayFields, "DISP"); // Display fields
|
|
73 |
_LIT(KSupprotedLanguage, "LANG"); // Supported Language
|
|
74 |
_LIT(KAddGroup, "AddGroups"); // Adding groups to the phone
|
|
75 |
_LIT(KSearchInGroup, "SrchInGroup"); // Search within a group
|
|
76 |
_LIT(KSearchExpectedResult, "RES"); // Expected result of a test case
|
|
77 |
_LIT(KSearchExpectedMatchLocations, "MATCHLOC"); // Expected match locations result
|
|
78 |
_LIT(KSearchOnInputString, "IPSTR"); // The Input string tag for search in input string
|
|
79 |
_LIT(KExpectedResultString, "RESSTR"); // Expected string result
|
|
80 |
_LIT(KSearchExpectedResultForInput, "RESIP"); // Expected result (For input search string case)
|
|
81 |
_LIT(KInputBoolean, "BOOL"); // Input Boolean for cases that need it
|
|
82 |
|
|
83 |
// The enumeration used to specify the type of test case
|
|
84 |
enum TTestCase
|
|
85 |
{
|
|
86 |
EDeleteSearchedResults = 0,
|
|
87 |
EGetGroupId,
|
|
88 |
EConvertToVpbkLink,
|
|
89 |
EMarkedContacts,
|
|
90 |
EDefaultCase
|
|
91 |
};
|
|
92 |
|
|
93 |
_LIT (KFirstName, "FN");
|
|
94 |
_LIT (KLastName, "LN");
|
|
95 |
_LIT (KCompanyName, "CN");
|
|
96 |
|
|
97 |
#endif // PS_CLIENT_TEST_DEFS_H
|
|
98 |
|
|
99 |
// End of file
|