testexecfw/tef/test/regressiontest/testblock/testdata/scripts/dt-tef-testblock-0011.script
changeset 0 3e07fef1e154
equal deleted inserted replaced
-1:000000000000 0:3e07fef1e154
       
     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-0011
       
    20 //! @SYMTestCaseID          DT-TEF-TestBlock-0011
       
    21 //! @SYMCreationDate        03-07-2008
       
    22 //! @SYMAuthor              DavidZhang
       
    23 //! @SYMTestType            CT
       
    24 //! @SYMTestPriority        Medium
       
    25 //! @SYMTestCaseDesc        Check that wrapped object keeps it's value after RESTORE_OBJECT.
       
    26 //! @SYMTestExpectedResults The test completes without errors and the variables's value in the second test block must be 1.
       
    27 //! @SYMTestActions         1. In the first test block create wrapper object and initialize a wrapped object.
       
    28 //!                         2. Call a command to set a value of the object to 1.
       
    29 //!                         3. Store the object.
       
    30 //!                         4. In the second test block restore the object
       
    31 //!                         5. Accessing the object through GetDataObjectL() check the value, it should be equal to 1.
       
    32 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    33 		CREATE_OBJECT	te_RegBlockTestWrapper	DummyObj
       
    34 		COMMAND		DummyObj			New				TestCase108_value_0
       
    35 		COMMAND		DummyObj			IncreaseObjectValue
       
    36 		STORE		DummyObj
       
    37 	END_TEST_BLOCK
       
    38 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    39 		RESTORE_OBJECT	te_RegBlockTestWrapper	DummyObj
       
    40 		COMMAND		DummyObj			GetDataObject			TestCase108_value_1
       
    41 	END_TEST_BLOCK
       
    42 END_TESTCASE DT-TEF-TestBlock-0011