equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
20 |
20 |
21 |
21 |
22 #include "testableapalssession.h" |
22 #include "testableapalssession.h" |
23 #include "T_StartDocStep.h" |
23 #include "T_StartDocStep.h" |
24 #include "TStartDoc.h" |
24 #include "TStartDoc.h" |
25 #include "T_SisFileInstaller.h" |
|
26 |
|
27 _LIT(KStartDocAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TStartDocApp_v2.sis"); |
|
28 _LIT(KStartDocAppComponent, "TStartDocApp_v2"); |
|
29 |
|
30 |
|
31 |
25 |
32 /** |
26 /** |
33 @SYMTestCaseID T-StartDocStep-TestStartDocL |
27 @SYMTestCaseID T-StartDocStep-TestStartDocL |
34 |
28 |
35 @SYMPREQ PHAR-5NTCWY |
29 @SYMPREQ PHAR-5NTCWY |
123 |
117 |
124 //avoid race conditions |
118 //avoid race conditions |
125 User::After(1500000); |
119 User::After(1500000); |
126 } |
120 } |
127 |
121 |
128 TVerdict CT_StartDocStep::doTestStepPreambleL() |
|
129 { |
|
130 CSisFileInstaller sisInstaller; |
|
131 INFO_PRINTF2(_L("Installing sis file from -> %S"), &KStartDocAppSisFile); |
|
132 sisInstaller.InstallSisAndWaitForAppListUpdateL(KStartDocAppSisFile); |
|
133 |
|
134 SetTestStepResult(EPass); |
|
135 return TestStepResult(); |
|
136 } |
|
137 |
|
138 TVerdict CT_StartDocStep::doTestStepPostambleL() |
|
139 { |
|
140 CSisFileInstaller sisInstaller; |
|
141 sisInstaller.UninstallSisL(KStartDocAppComponent); |
|
142 return TestStepResult(); |
|
143 } |
|
144 |
|
145 TVerdict CT_StartDocStep::doTestStepL() |
122 TVerdict CT_StartDocStep::doTestStepL() |
146 { |
123 { |
147 INFO_PRINTF1(_L("Test Started")); |
124 INFO_PRINTF1(_L("Test Started")); |
148 |
125 |
149 RTestableApaLsSession ls; |
126 RTestableApaLsSession ls; |
152 |
129 |
153 //avoid race conditions |
130 //avoid race conditions |
154 User::After(1500000); |
131 User::After(1500000); |
155 |
132 |
156 // run the test |
133 // run the test |
157 HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestStartDocL(ls), NO_CLEANUP); |
134 HEAP_TEST_LS_SESSION(ls, 0, 0, TestStartDocL(ls), NO_CLEANUP); |
158 |
135 |
159 CleanupStack::PopAndDestroy(&ls); |
136 CleanupStack::PopAndDestroy(&ls); |
160 |
137 |
161 INFO_PRINTF1(_L("Test Finished")); |
138 INFO_PRINTF1(_L("Test Finished")); |
162 |
139 |