os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/scripts/SomeExceptions.script
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 //! @SYMTestSuiteName PDS-TEF-SQL-SUITE
19 //! @SYMScriptTestEnvironment TEF
20 //! @internalComponent
23 PRINT Run SQLite Tests, this lot largely negative tests.
25 LOAD_SUITE te_SQL_Suite
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.
44 RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini Top
45 END_TESTCASE SYSLIB-SQL-CIT-1689
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
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.
63 RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini GenerateErrors
64 END_TESTCASE SYSLIB-SQL-CIT-1693
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
74 RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini DoErrSchema
75 END_TESTCASE SYSLIB-SQL-CIT-1702
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
85 RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\SomeExceptions.ini CorruptedDb
86 END_TESTCASE SYSLIB-SQL-CIT-1703