testexecmdw/tef/tef/test/regressiontest/testblock/testdata/scripts/dt-tef-testblock-0012.script
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     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 -SharedData
       
    18 
       
    19 START_TESTCASE DT-TEF-TestBlock-0012
       
    20 //! @SYMTestCaseID          DT-TEF-TestBlock-0012
       
    21 //! @SYMCreationDate        03-07-2008
       
    22 //! @SYMAuthor              DavidZhang
       
    23 //! @SYMTestType            CT
       
    24 //! @SYMTestPriority        Medium
       
    25 //! @SYMTestCaseDesc        Runs test blocks concurrently in shared mode. Just to check that no parsing problems will happen. TEF doesn't support CONCURRENT in the shared mode.
       
    26 //! @SYMTestExpectedResults The test completes without errors.
       
    27 //! @SYMTestActions         1. In the first block creates a wrapper object and a wrapped object setting it's value to 1.
       
    28 //!                         2. Sets CONCURRENT mode.
       
    29 //!                         3. In the second block calls a long delay, and increases the value of the object to 2.
       
    30 //!                         4. In the third block checks that the value of the object is 2.
       
    31 //!                         5. Sets CONSECUTIVE mode back.
       
    32 //!                         6. In the fourth block checks that the value of the object is 2.
       
    33 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    34 		CREATE_OBJECT	te_RegBlockTestWrapper	DummyObj
       
    35 		COMMAND		DummyObj			New				TestCase110_value_1
       
    36 		STORE		DummyObj
       
    37 	END_TEST_BLOCK
       
    38 	CONCURRENT
       
    39 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    40 		DELAY		1000000
       
    41 		RESTORE_OBJECT	te_RegBlockTestWrapper	DummyObj
       
    42 		COMMAND		DummyObj			IncreaseObjectValue
       
    43 		STORE		DummyObj
       
    44 	END_TEST_BLOCK
       
    45 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    46 		RESTORE_OBJECT	te_RegBlockTestWrapper	DummyObj
       
    47 		COMMAND		DummyObj			GetDataObject			TestCase110_value_2
       
    48 		STORE		DummyObj
       
    49 	END_TEST_BLOCK
       
    50 	CONSECUTIVE
       
    51 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    52 		RESTORE_OBJECT	te_RegBlockTestWrapper	DummyObj
       
    53 		COMMAND		DummyObj			GetDataObject			TestCase110_value_2
       
    54 	END_TEST_BLOCK
       
    55 END_TESTCASE DT-TEF-TestBlock-0012