|
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 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #if (!defined __T_SYSSTARTAPPARCTESTCASES_H__) |
|
23 #define __T_SYSSTARTAPPARCTESTCASES_H__ |
|
24 |
|
25 #include <apgcli.h> |
|
26 |
|
27 /** |
|
28 Literals which determine: |
|
29 1. CApparcFuncInSystart - message logged if a panic occurs in a test case |
|
30 2. z:\\apparctest\\TestCaseConfig.txt - Input configuration file which determines |
|
31 which test case will be run. |
|
32 |
|
33 */ |
|
34 _LIT(KApparcFuncInSystartPanic, "CApparcFuncInSystart"); |
|
35 _LIT(KApparcConfigFile, "z:\\apparctest\\TestCaseConfig.txt"); |
|
36 |
|
37 enum TSystartPanic |
|
38 { |
|
39 ESystartRApaLsSessionErr=10, |
|
40 ESystartRunTestCaseErr, |
|
41 ESystartWriteResultsErr, |
|
42 ESystartRFsErr, |
|
43 ESystartFindFileErr |
|
44 }; |
|
45 |
|
46 |
|
47 /** |
|
48 Class containing the apparc test cases |
|
49 */ |
|
50 class CSysStartApparcTestCase : public CBase |
|
51 { |
|
52 public: |
|
53 CSysStartApparcTestCase(); |
|
54 ~CSysStartApparcTestCase(); |
|
55 void doTestCasesL(); |
|
56 |
|
57 private: |
|
58 void RunTestCasesL(); |
|
59 void TestStartApp1L(); |
|
60 void TestStartApp2L(); |
|
61 void TestStartApp3L(); |
|
62 void TestStartApp4L(); |
|
63 void TestStartApp5L(); |
|
64 void TestStartApp6L(); |
|
65 void TestGetAllApps(); |
|
66 void TestInsertDataTypeL(); |
|
67 void TestAppForDataTypeL(); |
|
68 void TestDeleteDataTypeL(); |
|
69 void TestServiceDiscovery(); |
|
70 void TestGetAppInfo(); |
|
71 void TestAppCount(); |
|
72 void TestCreateDoc(); |
|
73 |
|
74 void WriteResultFileL(); |
|
75 TInt ReadConfigFileL(); |
|
76 |
|
77 private: |
|
78 TInt iStartApp1LRes1; |
|
79 TInt iStartApp1LRes2; |
|
80 |
|
81 RApaLsSession iApaLsSession; |
|
82 }; |
|
83 |
|
84 #endif |
|
85 |