equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2010 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 |
25 |
31 |
26 /** |
32 /** |
27 @SYMTestCaseID T-StartDocStep-TestStartDocL |
33 @SYMTestCaseID T-StartDocStep-TestStartDocL |
28 |
34 |
29 @SYMPREQ PHAR-5NTCWY |
35 @SYMPREQ PHAR-5NTCWY |
117 |
123 |
118 //avoid race conditions |
124 //avoid race conditions |
119 User::After(1500000); |
125 User::After(1500000); |
120 } |
126 } |
121 |
127 |
|
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 |
122 TVerdict CT_StartDocStep::doTestStepL() |
145 TVerdict CT_StartDocStep::doTestStepL() |
123 { |
146 { |
124 INFO_PRINTF1(_L("Test Started")); |
147 INFO_PRINTF1(_L("Test Started")); |
125 |
148 |
126 RTestableApaLsSession ls; |
149 RTestableApaLsSession ls; |
129 |
152 |
130 //avoid race conditions |
153 //avoid race conditions |
131 User::After(1500000); |
154 User::After(1500000); |
132 |
155 |
133 // run the test |
156 // run the test |
134 HEAP_TEST_LS_SESSION(ls, 0, 0, TestStartDocL(ls), NO_CLEANUP); |
157 HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestStartDocL(ls), NO_CLEANUP); |
135 |
158 |
136 CleanupStack::PopAndDestroy(&ls); |
159 CleanupStack::PopAndDestroy(&ls); |
137 |
160 |
138 INFO_PRINTF1(_L("Test Finished")); |
161 INFO_PRINTF1(_L("Test Finished")); |
139 |
162 |