24
|
1 |
// Copyright (c) 2007-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 |
// Test step definitions for the PhoneControl functional unit.
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@internalTechnology
|
|
20 |
*/
|
|
21 |
|
|
22 |
#include "cctsyintegrationtestphonecontrol.h"
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
CCTSYIntegrationTestPhoneControlBase::CCTSYIntegrationTestPhoneControlBase(CEtelSessionMgr& aEtelSessionMgr)
|
|
28 |
: CCTSYIntegrationTestSuiteStepBase(aEtelSessionMgr)
|
|
29 |
/**
|
|
30 |
* Constructor
|
|
31 |
*/
|
|
32 |
{
|
|
33 |
}
|
|
34 |
|
|
35 |
CCTSYIntegrationTestPhoneControlBase::~CCTSYIntegrationTestPhoneControlBase()
|
|
36 |
/*
|
|
37 |
* Destructor
|
|
38 |
*/
|
|
39 |
{
|
|
40 |
}
|
|
41 |
|
|
42 |
|
|
43 |
CCTSYIntegrationTestPhoneControl0001::CCTSYIntegrationTestPhoneControl0001(CEtelSessionMgr& aEtelSessionMgr)
|
|
44 |
: CCTSYIntegrationTestPhoneControlBase(aEtelSessionMgr)
|
|
45 |
/**
|
|
46 |
* Constructor.
|
|
47 |
*/
|
|
48 |
{
|
|
49 |
SetTestStepName(CCTSYIntegrationTestPhoneControl0001::GetTestStepName());
|
|
50 |
}
|
|
51 |
|
|
52 |
CCTSYIntegrationTestPhoneControl0001::~CCTSYIntegrationTestPhoneControl0001()
|
|
53 |
/**
|
|
54 |
* Destructor.
|
|
55 |
*/
|
|
56 |
{
|
|
57 |
}
|
|
58 |
|
|
59 |
TVerdict CCTSYIntegrationTestPhoneControl0001::doTestStepL()
|
|
60 |
/**
|
|
61 |
* @SYMTestCaseID BA-CTSY-INT-PCON-0001
|
|
62 |
* @SYMFssID BA/CTSY/PCON-0001
|
|
63 |
* @SYMTestCaseDesc Get the TSY's supported modules.
|
|
64 |
* @SYMTestPriority High
|
|
65 |
* @SYMTestActions
|
|
66 |
* @SYMTestExpectedResults Pass - ETrue returned for supported modules, EFalse otherwise.
|
|
67 |
* @SYMTestType CIT
|
|
68 |
* @SYMTestCaseDependencies live/automatic
|
|
69 |
*
|
|
70 |
* Reason for test: Verify correct modules are supported.
|
|
71 |
*
|
|
72 |
* @return - TVerdict code
|
|
73 |
*/
|
|
74 |
{
|
|
75 |
|
|
76 |
//
|
|
77 |
// SET UP
|
|
78 |
//
|
|
79 |
|
|
80 |
|
|
81 |
// Get the TelServer
|
|
82 |
|
|
83 |
|
|
84 |
//
|
|
85 |
// SET UP END
|
|
86 |
//
|
|
87 |
|
|
88 |
StartTest();
|
|
89 |
|
|
90 |
//
|
|
91 |
// TEST START
|
|
92 |
//
|
|
93 |
|
|
94 |
|
|
95 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelExtMultimodeV1 returns aResult=ETrue
|
|
96 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileIccAccess returns aResult=ETrue
|
|
97 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileNetwork returns aResult=ETrue
|
|
98 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileIdentity returns aResult=ETrue
|
|
99 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobilePower returns aResult=ETrue
|
|
100 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileSignal returns aResult=ETrue
|
|
101 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileDTMF returns aResult=ETrue
|
|
102 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileUserNetworkAccess returns aResult=ETrue
|
|
103 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileIdentityService returns aResult=ETrue
|
|
104 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileCallForwarding returns aResult=ETrue
|
|
105 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileCallBarring returns aResult=ETrue
|
|
106 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileCallWaiting returns aResult=ETrue
|
|
107 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileCallCompletion returns aResult=ETrue
|
|
108 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileSecurity returns aResult=ETrue
|
|
109 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileAlternateLineService returns aResult=ETrue
|
|
110 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileFixedDiallingNumbers returns aResult=ETrue
|
|
111 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileDataCall returns aResult=ETrue
|
|
112 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileEmergencyCall returns aResult=ETrue
|
|
113 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileSmsMessaging returns aResult=ETrue
|
|
114 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileBroadcastMessaging returns aResult=ETrue
|
|
115 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileUssdMessaging returns aResult=ETrue
|
|
116 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileConferenceCall returns aResult=ETrue
|
|
117 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobilePhonebook returns aResult=ETrue
|
|
118 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileSmsStore returns aResult=ETrue
|
|
119 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileOwnNumberStore returns aResult=ETrue
|
|
120 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileEmergencyNumberStore returns aResult=ETrue
|
|
121 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileAlternatingCall returns aResult=EFalse
|
|
122 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileMessageWaiting returns aResult=EFalse
|
|
123 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileNamStore returns aResult=EFalse
|
|
124 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileMultimediaCall returns aResult=EFalse
|
|
125 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileIndicator returns aResult=ETrue // Are supported by CTSY but CTSY returns false
|
|
126 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobilePrivacy returns aResult=ETrue
|
|
127 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileCost returns aResult=EFalse
|
|
128 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileMulticall returns aResult=EFalse
|
|
129 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileNextIncomingCall returns aResult=EFalse
|
|
130 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelFuncMobileUserSignalling returns aResult=EFalse
|
|
131 |
|
|
132 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelExtMultimodeV2 returns aResult=ETrue
|
|
133 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobileNetworkSecurity returns aResult=ETrue // Are supported by CTSY but CTSY returns false
|
|
134 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobileMultimediaCallSettings returns aResult=EFalse
|
|
135 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobileUSIMApplications returns aResult=EFalse
|
|
136 |
|
|
137 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelExtMultimodeV3 returns aResult=ETrue
|
|
138 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobileAPNControlList returns aResult=ETrue
|
|
139 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobileMMSInformation returns aResult=EFalse
|
|
140 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobileAirTime returns aResult=EFalse
|
|
141 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobileAutoRedial returns aResult=EFalse
|
|
142 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobilePersonalisation returns aResult=EFalse
|
|
143 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobileMailboxNumbers returns aResult=EFalse
|
|
144 |
|
|
145 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelExtMultimodeV4 returns aResult=EFalse
|
|
146 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobileIMS returns aResult=EFalse
|
|
147 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelFuncMobileSmartCardApplications returns aResult=EFalse
|
|
148 |
|
|
149 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelExtMultimodeV5 returns aResult=EFalse
|
|
150 |
|
|
151 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelExtMultimodeV6 returns aResult=EFalse
|
|
152 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelSmartCardEap returns aResult=EFalse
|
|
153 |
|
|
154 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelExtMultimodeV7 returns aResult=EFalse
|
|
155 |
// Check RTelServer::IsSupportedByModule with aMixin=KEtelLocationControlServices returns aResult=EFalse
|
|
156 |
// Check RTelServer::IsSupportedByModule with aMixin=KETelExt3rdPartyV1 returns aResult=EFalse
|
|
157 |
|
|
158 |
//
|
|
159 |
|
|
160 |
//
|
|
161 |
|
|
162 |
|
|
163 |
//
|
|
164 |
// TEST END
|
|
165 |
//
|
|
166 |
|
|
167 |
StartCleanup();
|
|
168 |
|
|
169 |
// Put any required test clean up here, then remove this comment
|
|
170 |
|
|
171 |
return TestStepResult();
|
|
172 |
}
|
|
173 |
|
|
174 |
TPtrC CCTSYIntegrationTestPhoneControl0001::GetTestStepName()
|
|
175 |
/**
|
|
176 |
* @return The test step name.
|
|
177 |
*/
|
|
178 |
{
|
|
179 |
return _L("CCTSYIntegrationTestPhoneControl0001");
|
|
180 |
}
|
|
181 |
|
|
182 |
|
|
183 |
|
|
184 |
CCTSYIntegrationTestPhoneControl0002::CCTSYIntegrationTestPhoneControl0002(CEtelSessionMgr& aEtelSessionMgr)
|
|
185 |
: CCTSYIntegrationTestPhoneControlBase(aEtelSessionMgr)
|
|
186 |
/**
|
|
187 |
* Constructor.
|
|
188 |
*/
|
|
189 |
{
|
|
190 |
SetTestStepName(CCTSYIntegrationTestPhoneControl0002::GetTestStepName());
|
|
191 |
}
|
|
192 |
|
|
193 |
CCTSYIntegrationTestPhoneControl0002::~CCTSYIntegrationTestPhoneControl0002()
|
|
194 |
/**
|
|
195 |
* Destructor.
|
|
196 |
*/
|
|
197 |
{
|
|
198 |
}
|
|
199 |
|
|
200 |
TVerdict CCTSYIntegrationTestPhoneControl0002::doTestStepL()
|
|
201 |
/**
|
|
202 |
* @SYMTestCaseID BA-CTSY-INT-PCON-0002
|
|
203 |
* @SYMFssID BA/CTSY/PCON-0002
|
|
204 |
* @SYMTestCaseDesc Reinitialise the phone.
|
|
205 |
* @SYMTestPriority High
|
|
206 |
* @SYMTestActions RPhone::InitialiseCancel
|
|
207 |
* @SYMTestExpectedResults Pass - Reinitialisation completes with KErrNone. Cancel request completes with KErrCancel.
|
|
208 |
* @SYMTestType CIT
|
|
209 |
* @SYMTestCaseDependencies live/automatic
|
|
210 |
*
|
|
211 |
* Reason for test: Verify initialise request completes.
|
|
212 |
*
|
|
213 |
* @return - TVerdict code
|
|
214 |
*/
|
|
215 |
{
|
|
216 |
|
|
217 |
//
|
|
218 |
// SET UP
|
|
219 |
//
|
|
220 |
|
|
221 |
|
|
222 |
// Ensure TSY is loaded.
|
|
223 |
|
|
224 |
|
|
225 |
//
|
|
226 |
// SET UP END
|
|
227 |
//
|
|
228 |
|
|
229 |
StartTest();
|
|
230 |
|
|
231 |
//
|
|
232 |
// TEST START
|
|
233 |
//
|
|
234 |
|
|
235 |
|
|
236 |
// === Reinitialise with synchronous version ===
|
|
237 |
|
|
238 |
// Open RPhone subsession.
|
|
239 |
|
|
240 |
// Reinitialise the phone with synchronous version of RPhone::Initialise
|
|
241 |
|
|
242 |
// Check KErrNone is returned
|
|
243 |
|
|
244 |
// === Reinitialise with async version ===
|
|
245 |
|
|
246 |
// Reinitialise the phone with asynchronous version of RPhone::Initialise
|
|
247 |
|
|
248 |
// Check request completes with KErrNone
|
|
249 |
|
|
250 |
// === Cancel reinitialisation ===
|
|
251 |
|
|
252 |
// Reinitialise the phone with asynchronous version of RPhone::Initialise
|
|
253 |
|
|
254 |
// Cancel initialisation with RPhone::InitialiseCancel
|
|
255 |
|
|
256 |
// Check request completes with KErrCancel
|
|
257 |
|
|
258 |
|
|
259 |
//
|
|
260 |
// TEST END
|
|
261 |
//
|
|
262 |
|
|
263 |
StartCleanup();
|
|
264 |
|
|
265 |
// Put any required test clean up here, then remove this comment
|
|
266 |
|
|
267 |
return TestStepResult();
|
|
268 |
}
|
|
269 |
|
|
270 |
TPtrC CCTSYIntegrationTestPhoneControl0002::GetTestStepName()
|
|
271 |
/**
|
|
272 |
* @return The test step name.
|
|
273 |
*/
|
|
274 |
{
|
|
275 |
return _L("CCTSYIntegrationTestPhoneControl0002");
|
|
276 |
}
|
|
277 |
|
|
278 |
|
|
279 |
|