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