os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/scripts/SomeExceptions.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // @file
    15 // 
    16 //
    17 
    18 //! @SYMTestSuiteName PDS-TEF-SQL-SUITE
    19 //! @SYMScriptTestEnvironment TEF
    20 //! @internalComponent
    21 //! @test
    22 
    23 PRINT Run SQLite Tests, this lot largely negative tests.
    24 
    25 LOAD_SUITE te_SQL_Suite
    26 
    27 START_TESTCASE SYSLIB-SQL-CIT-1689
    28 //! @SYMTestCaseID    SYSLIB-SQL-CIT-1689
    29 //! @SYMTestCaseDesc  Performs some basic database operations intended to
    30 //!                  generate errors (but not PANICs). Some errors are already
    31 //!                  covered by other tests, so not all cases are covered by
    32 //!                  this test. Includes, e.g attempting to create the
    33 //!                  same table twice, checks that using the same parameter
    34 //!                  index twice (on bind) results in only one entry.
    35 //! @SYMTestPriority  High
    36 //! @SYMTestActions   See description and the config file.
    37 //! @SYMTestExpectedResults
    38 //!                  The test looks for specific error codes and content
    39 //!                  within the database. If these are not seen test errors
    40 //!                  will be generated.
    41 //!                  
    42 //! @SYMREQ           REQ5792
    43 
    44 	RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini Top
    45 END_TESTCASE SYSLIB-SQL-CIT-1689
    46 
    47 
    48 START_TESTCASE SYSLIB-SQL-CIT-1693
    49 //! @SYMTestCaseID    SYSLIB-SQL-CIT-1693
    50 //! @SYMTestCaseDesc  Performs some basic database operations intended to
    51 //!                  generate errors (but not PANICs). Some errors are already
    52 //!                  covered by other tests, so not all cases are covered by
    53 //!                  this test. Includes, e.g attempting to modify a read-only
    54 //!                  database.
    55 //! @SYMTestPriority  High
    56 //! @SYMTestActions   See description and the config file.
    57 //! @SYMTestExpectedResults
    58 //!                  The test looks for specific error codes and content
    59 //!                  within the database. If these are not seen test errors
    60 //!                  will be generated.
    61 //!                  
    62 //! @SYMREQ           REQ5792
    63 	RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini GenerateErrors
    64 END_TESTCASE SYSLIB-SQL-CIT-1693
    65 
    66 START_TESTCASE SYSLIB-SQL-CIT-1702
    67 //! @SYMTestCaseID    SYSLIB-SQL-CIT-1702
    68 //! @SYMTestCaseDesc  Generates a KSqlErrSchema error.
    69 //! @SYMTestPriority  High
    70 //! @SYMTestActions   See description and the config file.
    71 //! @SYMTestExpectedResults
    72 //! @SYMREQ           REQ5792
    73 
    74 	RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini DoErrSchema
    75 END_TESTCASE SYSLIB-SQL-CIT-1702
    76 
    77 START_TESTCASE SYSLIB-SQL-CIT-1703
    78 //! @SYMTestCaseID    SYSLIB-SQL-CIT-1703
    79 //! @SYMTestCaseDesc  Generates a KSqlErrCorrupt error.
    80 //! @SYMTestPriority  High
    81 //! @SYMTestActions   See description and the config file.
    82 //! @SYMTestExpectedResults
    83 //! @SYMREQ           REQ5792
    84 
    85 	RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini CorruptedDb
    86 END_TESTCASE SYSLIB-SQL-CIT-1703
    87