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