testexecfw/tef/test/regressiontest/testblock/testdata/scripts/dt-tef-testblock-0009.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-0009
       
    20 //! @SYMTestCaseID          DT-TEF-TestBlock-0009
       
    21 //! @SYMCreationDate        03-07-2008
       
    22 //! @SYMAuthor              DavidZhang
       
    23 //! @SYMTestType            CT
       
    24 //! @SYMTestPriority        Medium
       
    25 //! @SYMTestCaseDesc        Use START_REPEAT and END_REPEAT to call a test block multiple times.
       
    26 //! @SYMTestExpectedResults The test completes without errors and the counter's value at the end of the test case must be 11.
       
    27 //! @SYMTestActions         1. Use a test block to create and store object
       
    28 //!                         2. Inside a START_REPEAT/END_REPEAT use a test block that restores the object, increases
       
    29 //!                         a counter's value and stores the object again.
       
    30 //!                         The START_REPEAT block is configured to be repeated 11 times.
       
    31 //!                         3. In the last test block check the counter's value, it should be equal to 11.
       
    32 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    33 		CREATE_OBJECT	te_RegBlockTestWrapper	DummyObj
       
    34 		COMMAND		DummyObj			New				TestCase045_value_0
       
    35 		STORE		DummyObj
       
    36 	END_TEST_BLOCK
       
    37 	START_REPEAT	${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini TestCase045_times_to_repeat	times_to_repeat
       
    38 		START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    39 			RESTORE_OBJECT	te_RegBlockTestWrapper	DummyObj
       
    40 			COMMAND		DummyObj			IncreaseObjectValue
       
    41 			STORE		DummyObj
       
    42 		END_TEST_BLOCK
       
    43 	END_REPEAT
       
    44 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    45 		RESTORE_OBJECT	te_RegBlockTestWrapper	DummyObj
       
    46 		COMMAND		DummyObj			GetDataObject			TestCase045_value_11
       
    47 	END_TEST_BLOCK
       
    48 END_TESTCASE DT-TEF-TestBlock-0009