os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/scripts/SomeExceptions.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/scripts/SomeExceptions.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,87 @@
     1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// @file
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +//! @SYMTestSuiteName PDS-TEF-SQL-SUITE
    1.22 +//! @SYMScriptTestEnvironment TEF
    1.23 +//! @internalComponent
    1.24 +//! @test
    1.25 +
    1.26 +PRINT Run SQLite Tests, this lot largely negative tests.
    1.27 +
    1.28 +LOAD_SUITE te_SQL_Suite
    1.29 +
    1.30 +START_TESTCASE SYSLIB-SQL-CIT-1689
    1.31 +//! @SYMTestCaseID    SYSLIB-SQL-CIT-1689
    1.32 +//! @SYMTestCaseDesc  Performs some basic database operations intended to
    1.33 +//!                  generate errors (but not PANICs). Some errors are already
    1.34 +//!                  covered by other tests, so not all cases are covered by
    1.35 +//!                  this test. Includes, e.g attempting to create the
    1.36 +//!                  same table twice, checks that using the same parameter
    1.37 +//!                  index twice (on bind) results in only one entry.
    1.38 +//! @SYMTestPriority  High
    1.39 +//! @SYMTestActions   See description and the config file.
    1.40 +//! @SYMTestExpectedResults
    1.41 +//!                  The test looks for specific error codes and content
    1.42 +//!                  within the database. If these are not seen test errors
    1.43 +//!                  will be generated.
    1.44 +//!                  
    1.45 +//! @SYMREQ           REQ5792
    1.46 +
    1.47 +	RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini Top
    1.48 +END_TESTCASE SYSLIB-SQL-CIT-1689
    1.49 +
    1.50 +
    1.51 +START_TESTCASE SYSLIB-SQL-CIT-1693
    1.52 +//! @SYMTestCaseID    SYSLIB-SQL-CIT-1693
    1.53 +//! @SYMTestCaseDesc  Performs some basic database operations intended to
    1.54 +//!                  generate errors (but not PANICs). Some errors are already
    1.55 +//!                  covered by other tests, so not all cases are covered by
    1.56 +//!                  this test. Includes, e.g attempting to modify a read-only
    1.57 +//!                  database.
    1.58 +//! @SYMTestPriority  High
    1.59 +//! @SYMTestActions   See description and the config file.
    1.60 +//! @SYMTestExpectedResults
    1.61 +//!                  The test looks for specific error codes and content
    1.62 +//!                  within the database. If these are not seen test errors
    1.63 +//!                  will be generated.
    1.64 +//!                  
    1.65 +//! @SYMREQ           REQ5792
    1.66 +	RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini GenerateErrors
    1.67 +END_TESTCASE SYSLIB-SQL-CIT-1693
    1.68 +
    1.69 +START_TESTCASE SYSLIB-SQL-CIT-1702
    1.70 +//! @SYMTestCaseID    SYSLIB-SQL-CIT-1702
    1.71 +//! @SYMTestCaseDesc  Generates a KSqlErrSchema error.
    1.72 +//! @SYMTestPriority  High
    1.73 +//! @SYMTestActions   See description and the config file.
    1.74 +//! @SYMTestExpectedResults
    1.75 +//! @SYMREQ           REQ5792
    1.76 +
    1.77 +	RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini DoErrSchema
    1.78 +END_TESTCASE SYSLIB-SQL-CIT-1702
    1.79 +
    1.80 +START_TESTCASE SYSLIB-SQL-CIT-1703
    1.81 +//! @SYMTestCaseID    SYSLIB-SQL-CIT-1703
    1.82 +//! @SYMTestCaseDesc  Generates a KSqlErrCorrupt error.
    1.83 +//! @SYMTestPriority  High
    1.84 +//! @SYMTestActions   See description and the config file.
    1.85 +//! @SYMTestExpectedResults
    1.86 +//! @SYMREQ           REQ5792
    1.87 +
    1.88 +	RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini CorruptedDb
    1.89 +END_TESTCASE SYSLIB-SQL-CIT-1703
    1.90 +