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_SUITE Te_RegConcurrentTestSuite1 |
|
18 LOAD_SUITE Te_RegConcurrentTestSuite2 |
|
19 LOAD_SUITE Te_RegConcurrentTestSuite3 -SharedData |
|
20 PRINT |
|
21 |
|
22 START_REPEAT ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini Repeat Repeat |
|
23 CONCURRENT |
|
24 START_TESTCASE DT-TEF-Concurrent-0012 |
|
25 //! @SYMTestCaseID DT-TEF-Concurrent-0012 |
|
26 //! @SYMCreationDate 03-09-2008 |
|
27 //! @SYMAuthor extjasonzhou |
|
28 //! @SYMTestType CT |
|
29 //! @SYMTestPriority Medium |
|
30 //! @SYMTestCaseDesc Test Concurrent functionalities of TEF steps with 3 servers two of them not shared data and the other one shared data. (in loop cycle) |
|
31 //! @SYMTestExpectedResults Test cases should all passed with the expected behavior. |
|
32 //! The steps inside concurrent block should be executed simultaneously while others are not. |
|
33 //! But in concurrent block, if a shared data server step executes, the execution of next step will wait there until this step finished. |
|
34 //! the steps in the loop cycle will be executed for the times which the loop specifies. |
|
35 //! @SYMTestActions 1. Load 3 servers servers two of them not shared data and the other one shared data. |
|
36 //! 2. Call START_REPEAT. |
|
37 //! 3. Call CONCURRENT. |
|
38 //! 4. Run some steps in a test case (both shared data and non-shared data servers). |
|
39 //! 5. Call CONSECUTIVE. |
|
40 //! 4. Call END-REPEAT. |
|
41 //! 5. Run some more steps in another test case (steps of both non-shared data servers and shared data server). |
|
42 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite1 Te_RegWaitStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini WaitStep1 |
|
43 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite1 Te_RegLoopStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini LoopStep1 |
|
44 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite1 Te_RegAccessStaticVarStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini AccessStaticVarStep1 |
|
45 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite3 Te_RegDummyStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini DummyStep1 |
|
46 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite2 Te_RegWaitStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini WaitStep1 |
|
47 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite2 Te_RegLoopStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini LoopStep1 |
|
48 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite3 Te_RegAccessStaticVarStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini AccessStaticVarStep1 |
|
49 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite2 Te_RegDummyStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini DummyStep1 |
|
50 END_TESTCASE DT-TEF-Concurrent-0012 |
|
51 CONSECUTIVE |
|
52 END_REPEAT |
|
53 START_TESTCASE DT-TEF-Concurrent-0012-1 |
|
54 //! @SYMTestCaseID DT-TEF-Concurrent-0012 |
|
55 //! @SYMCreationDate 03-09-2008 |
|
56 //! @SYMAuthor extjasonzhou |
|
57 //! @SYMTestType CT |
|
58 //! @SYMTestPriority Medium |
|
59 //! @SYMTestCaseDesc Test Concurrent functionalities of TEF steps with 3 servers two of them not shared data and the other one shared data. (in loop cycle) |
|
60 //! @SYMTestExpectedResults Test cases should all passed with the expected behavior. |
|
61 //! The steps inside concurrent block should be executed simultaneously while others are not. |
|
62 //! But in concurrent block, if a shared data server step executes, the execution of next step will wait there until this step finished. |
|
63 //! the steps in the loop cycle will be executed for the times which the loop specifies. |
|
64 //! @SYMTestActions 1. Load 3 servers servers two of them not shared data and the other one shared data. |
|
65 //! 2. Call START_REPEAT. |
|
66 //! 3. Call CONCURRENT. |
|
67 //! 4. Run some steps in a test case (both shared data and non-shared data servers). |
|
68 //! 5. Call CONSECUTIVE. |
|
69 //! 4. Call END-REPEAT. |
|
70 //! 5. Run some more steps in another test case (steps of both non-shared data servers and shared data server). |
|
71 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite1 Te_RegWaitStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini WaitStep2 |
|
72 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite1 Te_RegLoopStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini LoopStep2 |
|
73 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite1 Te_RegAccessStaticVarStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini AccessStaticVarStep2 |
|
74 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite3 Te_RegDummyStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini DummyStep2 |
|
75 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite2 Te_RegWaitStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini WaitStep2 |
|
76 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite2 Te_RegLoopStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini LoopStep2 |
|
77 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite3 Te_RegAccessStaticVarStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini AccessStaticVarStep2 |
|
78 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite2 Te_RegDummyStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini DummyStep2 |
|
79 |
|
80 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite1 Te_RegCheckTestResultStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini 60 |
|
81 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite2 Te_RegCheckTestResultStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini 0 |
|
82 RUN_TEST_STEP 100 Te_RegConcurrentTestSuite3 Te_RegCheckTestResultStep ${SYSDRIVE}\testdata\configs\te_regconcurrenttestsuite.ini 60 |
|
83 END_TESTCASE DT-TEF-Concurrent-0012-1 |
|