testexecfw/tef/test/regressiontest/testblock/testdata/scripts/dt-tef-testblock-0050.script
//
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//
LOAD_SERVER te_RegBlockTestSuite
START_TESTCASE DT-TEF-TestBlock-0050
//! @SYMTestCaseID DT-TEF-TestBlock-0050
//! @SYMCreationDate 03-07-2008
//! @SYMAuthor DavidZhang
//! @SYMTestType CT
//! @SYMTestPriority Medium
//! @SYMTestCaseDesc The test tries a situation when an expectation on command's error code isn't satisfied, but the block's result is set to PASS
//! @SYMTestExpectedResults The test case must fail.
//! @SYMTestActions 1. Call a command with parameter !Error=-111 that calls SetError(-999).
//! 2. Call a command that sets block result to Pass.
PRINT This test case will be failed.
START_TEST_BLOCK 100 te_RegBlockTestSuite ${SYSDRIVE}\testdata\configs\te_RegBlockTestSuite.ini
CREATE_OBJECT te_RegBlockTestWrapper DummyObj
COMMAND !Error=-111 DummyObj SetError TestCase061_obj_Error_999
COMMAND DummyObj SetBlockResult BlockResult_Fail
END_TEST_BLOCK
END_TESTCASE DT-TEF-TestBlock-0050