testexecmdw/tef/tef/test/regressiontest/testblock/testdata/scripts/dt-tef-testblock-0042.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 
       
    18 
       
    19 START_TESTCASE DT-TEF-TestBlock-0042
       
    20 //! @SYMTestCaseID          DT-TEF-TestBlock-0042
       
    21 //! @SYMCreationDate        03-07-2008
       
    22 //! @SYMAuthor              DavidZhang
       
    23 //! @SYMTestType            CT
       
    24 //! @SYMTestPriority        Medium
       
    25 //! @SYMTestCaseDesc        Check that if at least one command will end with a not expected error code then the whole test case will fail.
       
    26 //! @SYMTestExpectedResults The test case result must be FAIL.
       
    27 //! @SYMTestActions         Call multiple commands with an !Error expected. The first command executes a function that sets a wrong error code
       
    28 //!                         using CDataWrapper::SetError() and the remaining return expected error codes.
       
    29 	PRINT This test case will be failed.
       
    30 	START_TEST_BLOCK	100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
       
    31 		CREATE_OBJECT	te_RegBlockTestWrapper	DummyObj
       
    32 		COMMAND		!Error=-111	DummyObj	SetError			TestCase078_obj_Error_999
       
    33 		COMMAND		!Error=-555	DummyObj	SetError			TestCase078_obj_Error_555
       
    34 		COMMAND		!Error=-666	DummyObj	SetError			TestCase078_obj_Error_666
       
    35 		COMMAND		!Error=-777	DummyObj	SetError			TestCase078_obj_Error_777
       
    36 		COMMAND		!Error=-888	DummyObj	SetError			TestCase078_obj_Error_888
       
    37 		COMMAND		!Error=-999	DummyObj	SetError			TestCase078_obj_Error_999
       
    38 	END_TEST_BLOCK
       
    39 END_TESTCASE DT-TEF-TestBlock-0042