testexecmdw/tef/tef/test/regressiontest/testblock/testdata/scripts/dt-tef-testblock-0003.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-0003
       
    20 //! @SYMTestCaseID          DT-TEF-TestBlock-0003
       
    21 //! @SYMCreationDate        03-07-2008
       
    22 //! @SYMAuthor              DavidZhang
       
    23 //! @SYMTestType            CT
       
    24 //! @SYMTestPriority        Medium
       
    25 //! @SYMTestCaseDesc        Store an object in a first block, restore it in the second but without consequent storing. Make sure that the third block, that tries to restore the object fails.
       
    26 //! @SYMTestExpectedResults The test case must fail.
       
    27 //! @SYMTestActions         1. Create a wrapper object in the first test block.
       
    28 //!                         2. Call the object's command.
       
    29 //!                         3. Store the object.
       
    30 //!                         4. Use RESTORE_OBJECT instruction to restore the object in the second block.
       
    31 //!                         5. Call the object's command.
       
    32 //!                         6. Use RESTORE_OBJECT instruction to restore the object in the third block.
       
    33 	PRINT This test case will be failed.
       
    34 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    35 		CREATE_OBJECT	te_RegBlockTestWrapper	DummyObject
       
    36 		COMMAND		DummyObject			DummyFunction
       
    37 		STORE		DummyObject
       
    38 	END_TEST_BLOCK
       
    39 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    40 		RESTORE_OBJECT	te_RegBlockTestWrapper	DummyObject
       
    41 		COMMAND		DummyObject			DummyFunction
       
    42 	END_TEST_BLOCK
       
    43 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    44 		RESTORE_OBJECT	te_RegBlockTestWrapper	DummyObject
       
    45 	END_TEST_BLOCK
       
    46 END_TESTCASE DT-TEF-TestBlock-0003