os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/scripts/Panics.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.
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 SQL Tests
sl@0
    24
sl@0
    25
LOAD_SUITE te_SQL_Suite
sl@0
    26
sl@0
    27
START_TESTCASE SYSLIB-SQL-CIT-1800
sl@0
    28
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1800
sl@0
    29
//! @SYMTestCaseDesc  Attempt to use an RSqlStatement without an RSqlDatabase.
sl@0
    30
//! @SYMTestPriority  High
sl@0
    31
//! @SYMTestActions   See description and the config file.
sl@0
    32
//! @SYMTestExpectedResults
sl@0
    33
//!                  The test looks for specific panic codes generated
sl@0
    34
//!                  when the equivalent of programmer errors are executed
sl@0
    35
//!                  on the SQLite system. For example, attempting to use
sl@0
    36
//!                  an RSqlStatement object without an open RSqlDatabase.
sl@0
    37
//! @SYMREQ           REQ5792
sl@0
    38
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini One-a
sl@0
    39
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini One-b
sl@0
    40
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini One-c
sl@0
    41
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini One-d
sl@0
    42
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini One-e
sl@0
    43
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini One-f
sl@0
    44
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini One-g
sl@0
    45
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini One-h
sl@0
    46
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini One-i
sl@0
    47
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini One-j
sl@0
    48
END_TESTCASE SYSLIB-SQL-CIT-1800
sl@0
    49
sl@0
    50
START_TESTCASE SYSLIB-SQL-CIT-1801
sl@0
    51
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1801
sl@0
    52
//! @SYMTestCaseDesc  Attempt to use an RSqlDatabase that isn't open. First 
sl@0
    53
//!                  opens a valid database, immediately closes it and then
sl@0
    54
//!                  attempts to use an RSqlDatabase method.
sl@0
    55
//! @SYMTestPriority  High
sl@0
    56
//! @SYMTestActions   See description and the config file.
sl@0
    57
//! @SYMTestExpectedResults
sl@0
    58
//!                  Panics when an Exec or other RSqlDatabase method is
sl@0
    59
//!                  attempted.
sl@0
    60
//! @SYMREQ           REQ5792
sl@0
    61
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Two
sl@0
    62
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Two-b
sl@0
    63
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Two-c
sl@0
    64
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Two-d
sl@0
    65
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Two-e
sl@0
    66
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Two-f
sl@0
    67
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Two-g
sl@0
    68
END_TESTCASE SYSLIB-SQL-CIT-1801
sl@0
    69
sl@0
    70
START_TESTCASE SYSLIB-SQL-CIT-1802
sl@0
    71
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1802
sl@0
    72
//! @SYMTestCaseDesc  Attempt to use Column* calls following a failed Next.
sl@0
    73
//! @SYMTestPriority  High
sl@0
    74
//! @SYMTestActions   See description and the config file.
sl@0
    75
//! @SYMTestExpectedResults
sl@0
    76
//!                  The test looks for specific panic codes generated
sl@0
    77
//!                  when Column* methods are called after Next returns
sl@0
    78
//!                  'KSqlAtEnd'.
sl@0
    79
//! @SYMREQ           REQ5792
sl@0
    80
	RUN_PANIC_STEP_RESULT 130 USER 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Three
sl@0
    81
	RUN_PANIC_STEP_RESULT 11 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Three-b
sl@0
    82
	RUN_PANIC_STEP_RESULT 11 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Three-c
sl@0
    83
	RUN_PANIC_STEP_RESULT 11 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Three-d
sl@0
    84
	RUN_PANIC_STEP_RESULT 11 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Three-e
sl@0
    85
	RUN_PANIC_STEP_RESULT 11 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Three-f
sl@0
    86
	RUN_PANIC_STEP_RESULT 11 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Three-g
sl@0
    87
	RUN_PANIC_STEP_RESULT 11 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Three-h
sl@0
    88
	RUN_PANIC_STEP_RESULT 5 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Three-i
sl@0
    89
END_TESTCASE SYSLIB-SQL-CIT-1802
sl@0
    90
sl@0
    91
START_TESTCASE SYSLIB-SQL-CIT-1803
sl@0
    92
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1803
sl@0
    93
//! @SYMTestCaseDesc  Use parameter and column indices which are out of bounds.
sl@0
    94
//! @SYMTestPriority  High
sl@0
    95
//! @SYMTestActions   See description and the config file.
sl@0
    96
//! @SYMTestExpectedResults
sl@0
    97
//!                  This test looks for specific panic codes generated
sl@0
    98
//!                  when Bind and Column methods are called with Parameter
sl@0
    99
//!                  and Column indices which are out of bounds.
sl@0
   100
//! @SYMREQ           REQ5792
sl@0
   101
	RUN_PANIC_STEP_RESULT 5 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Four
sl@0
   102
	RUN_PANIC_STEP_RESULT 5 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Four-b
sl@0
   103
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Four-c
sl@0
   104
END_TESTCASE SYSLIB-SQL-CIT-1803
sl@0
   105
sl@0
   106
START_TESTCASE SYSLIB-SQL-CIT-1804
sl@0
   107
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1804
sl@0
   108
//! @SYMTestCaseDesc  Attempt to read a cell in a table without selecting the
sl@0
   109
//!                  column.
sl@0
   110
//! @SYMTestPriority  High
sl@0
   111
//! @SYMTestActions   See description and the config file.
sl@0
   112
//! @SYMTestExpectedResults
sl@0
   113
//!                  The test looks for a specific panic code generated
sl@0
   114
//!                  when a Column* method is called on a column that hasn't
sl@0
   115
//!                  been selected.
sl@0
   116
//! @SYMREQ           REQ5792
sl@0
   117
	RUN_PANIC_STEP_RESULT 130 USER 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Five
sl@0
   118
END_TESTCASE SYSLIB-SQL-CIT-1804
sl@0
   119
sl@0
   120
START_TESTCASE SYSLIB-SQL-CIT-1805
sl@0
   121
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1805
sl@0
   122
//! @SYMTestCaseDesc  Attempt to write, using Bind to a non-existent table.
sl@0
   123
//! @SYMTestPriority  High
sl@0
   124
//! @SYMTestActions   See description and the config file.
sl@0
   125
//! @SYMTestExpectedResults
sl@0
   126
//!                  The test looks for a specific panic code generated
sl@0
   127
//!                  when a Parameter Index call is made following a
sl@0
   128
//!                  prepare on a non-existent table.
sl@0
   129
//! @SYMREQ           REQ5792
sl@0
   130
	RUN_PANIC_STEP_RESULT 2 SqlDb 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\Panics.ini Six
sl@0
   131
END_TESTCASE SYSLIB-SQL-CIT-1805
sl@0
   132
sl@0
   133
RUN_UTILS DeleteFile C:\Panics0.db
sl@0
   134