1 // |
|
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 |
|
17 LOAD_SERVER te_RegBlockTestSuite |
|
18 |
|
19 START_TESTCASE DT-TEF-TestBlock-0107 |
|
20 //! @SYMTestCaseID DT-TEF-TestBlock-0107 |
|
21 //! @SYMCreationDate 03-07-2008 |
|
22 //! @SYMAuthor DavidZhang |
|
23 //! @SYMTestType CT |
|
24 //! @SYMTestPriority Medium |
|
25 //! @SYMTestCaseDesc Use OUTSTANDING to let an active object wrapped within a certain wrapper object to finish it's work. |
|
26 //! @SYMTestExpectedResults The test case result must be PASS and the active object's work wasn't complete before OUTSTANDING call and it must be complete after the OUTSTANDING. |
|
27 //! @SYMTestActions 1. Create a wrapper that wraps an active object, create a wrapped active object and activate the active object. |
|
28 //! 2. Create another wrapper that wraps an active object, create a wrapped active object and activate the active object. |
|
29 //! 3. Make sure that both active objects haven't finished their work. |
|
30 //! 4. Call OUTSTANDING 0 for the first wrapper. |
|
31 //! 5. Check that the first active object has finished it's work but the second hasn't. |
|
32 //! 6. Call OUTSTANDING 0 for the second wrapper. |
|
33 //! 7. Check that both active objects have finished their work. |
|
34 START_TEST_BLOCK 100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini |
|
35 CREATE_OBJECT te_RegBlockTestWrapper TestCase117_obj_1 |
|
36 COMMAND TestCase117_obj_1 AddActiveObjectToScheduler |
|
37 COMMAND TestCase117_obj_1 ActivateActiveObject TestCase117_obj_1 |
|
38 CREATE_OBJECT te_RegBlockTestWrapper TestCase117_obj_2 |
|
39 COMMAND TestCase117_obj_2 AddActiveObjectToScheduler |
|
40 COMMAND TestCase117_obj_2 ActivateActiveObject TestCase117_obj_2 |
|
41 COMMAND TestCase117_obj_1 CheckActiveObjectWorkIsComplete TestCase117_must_be_complete_false |
|
42 COMMAND TestCase117_obj_2 CheckActiveObjectWorkIsComplete TestCase117_must_be_complete_false |
|
43 OUTSTANDING 0 TestCase117_obj_1 |
|
44 COMMAND TestCase117_obj_1 CheckActiveObjectWorkIsComplete TestCase117_must_be_complete_true |
|
45 COMMAND TestCase117_obj_2 CheckActiveObjectWorkIsComplete TestCase117_must_be_complete_false |
|
46 OUTSTANDING 0 TestCase117_obj_2 |
|
47 COMMAND TestCase117_obj_2 CheckActiveObjectWorkIsComplete TestCase117_must_be_complete_true |
|
48 END_TEST_BLOCK |
|
49 END_TESTCASE DT-TEF-TestBlock-0107 |
|