1 // Copyright (c) 2008-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 PRINT Run GsaStateTranFromShutdownStep tests |
|
17 |
|
18 LOAD_SUITE tgsa_i_server |
|
19 |
|
20 START_TESTCASE DEVSRVS-SSPLUGINS-GSA-0033 |
|
21 //! @SYMTestCaseID DEVSRVS-SSPLUGINS-GSA-0033 |
|
22 //! @SYMDEF DEF119568 |
|
23 //! @SYMTestCaseDesc Checks for state transitions to fail and shutdown states from normal state |
|
24 //! under different scenarios. |
|
25 //! @SYMTestType CIT |
|
26 //! @SYMTestPriority Critical |
|
27 //! @SYMTestActions Test checks the results for request state transition under different scenarios: |
|
28 //! 1. Normal state to Shutdown state and then to Fail state. |
|
29 //! Scenario 1 - Request for state change from Normal to shutdown state to critical substate |
|
30 //! Cancel the request immediately |
|
31 //! Scenario 2 - Request for state change from Normal to shutdown state to any substate |
|
32 //! Cancel the request immediately, so that we can proceed with the next test scenario. |
|
33 //! Scenario 3 - Request for three state changes(1. shutdown state 2. invalid state 3. fail state) one after the other |
|
34 //! i.e., second request is issued once first one is completed and the third one is issued after the second request is completed. |
|
35 //! Cancel the third request. |
|
36 //! Scenario 4 - The system is now in shutdown state, request for state transition to normal state. |
|
37 //! Scenario 5 - The system is now in shutdown state, request for state transition to fail state. |
|
38 //! @SYMTestExpectedResults |
|
39 //! 1. Normal state to Shutdown state and then to Fail state. |
|
40 //! Scenario 1 - Request will be completed with KErrCancel |
|
41 //! Scenario 2 - Request will be completed with KErrCancel |
|
42 //! Scenario 3 - First request will completed with KErrNone |
|
43 //! Second request will completed with KErrNotSupported |
|
44 //! Third request will completed with KErrCancel |
|
45 //! Scenario 4 - Request will be completed with KErrNotSupported |
|
46 //! Scenario 5 - Request will be completed with KErrNone |
|
47 RUN_TEST_STEP 100 tgsa_i_server GsaStateTranFromShutdownStep |
|
48 END_TESTCASE DEVSRVS-SSPLUGINS-GSA-0033 |
|