os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/scripts/BasicSQL.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
RUN_UTILS MkDir c:\private\10281e17\
sl@0
    28
RUN_UTILS CopyFile z:\TEF_SQL\TestData\test1.db c:\test1.db
sl@0
    29
RUN_UTILS MakeReadWrite c:\test1.db
sl@0
    30
sl@0
    31
START_TESTCASE SYSLIB-SQL-CIT-1690
sl@0
    32
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1690
sl@0
    33
//! @SYMTestCaseDesc  Retrieves various information from a pre-existing database
sl@0
    34
//!                  (300Kb) checking for correct result as it goes.
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 errors 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\robust_size.ini LargeSelect
sl@0
    45
END_TESTCASE SYSLIB-SQL-CIT-1690
sl@0
    46
sl@0
    47
RUN_UTILS DeleteFile c:\test1.db
sl@0
    48
sl@0
    49
START_TESTCASE SYSLIB-SQL-CIT-1691
sl@0
    50
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1691
sl@0
    51
//! @SYMTestCaseDesc  Dynamically creates a new db and adds a table. Inserts
sl@0
    52
//!                  various data into this deliberately violating constraints
sl@0
    53
//!                  that were set when the table was created. Checks for the
sl@0
    54
//!                  expected 'KSqlErrConstraint' error when appropriate.
sl@0
    55
//! @SYMTestPriority  High
sl@0
    56
//! @SYMTestActions   See description and the config file.
sl@0
    57
//! @SYMTestExpectedResults
sl@0
    58
//!                  This test looks for errors. If these are not seen test
sl@0
    59
//!                  errors will be generated, none should be seen.
sl@0
    60
//!                  
sl@0
    61
//! @SYMREQ           REQ5792
sl@0
    62
sl@0
    63
	RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\constraints.ini constraints
sl@0
    64
END_TESTCASE SYSLIB-SQL-CIT-1691
sl@0
    65
sl@0
    66
RUN_UTILS DeleteFile c:\test2.db
sl@0
    67
sl@0
    68
START_TESTCASE SYSLIB-SQL-CIT-1692
sl@0
    69
//! @SYMTestCaseID    SYSLIB-SQL-CIT-1692
sl@0
    70
//! @SYMTestCaseDesc  Dynamically creates a database, adding various data to
sl@0
    71
//!                  a new table. Performs an SQL 'create view' operation
sl@0
    72
//!                  and the retrieves data fromt this view checking for
sl@0
    73
//!                  expected values and any errors as it goes. Performs
sl@0
    74
//!                  a second 'create view' operation and again checks for
sl@0
    75
//!                  correct content in this new view.
sl@0
    76
//! @SYMTestPriority  High
sl@0
    77
//! @SYMTestActions   See description and the config file.
sl@0
    78
//! @SYMTestExpectedResults
sl@0
    79
//!                  The test looks for errors and content within views.
sl@0
    80
//!                  Any unexpected errors or incorrect content will generate
sl@0
    81
//!                  test errors, none should be seen.
sl@0
    82
//!                  
sl@0
    83
//! @SYMREQ           REQ5792
sl@0
    84
sl@0
    85
	RUN_TEST_STEP 100 te_SQL_Suite CSQLDDT z:\TEF_SQL\views.ini views
sl@0
    86
END_TESTCASE SYSLIB-SQL-CIT-1692
sl@0
    87
sl@0
    88
RUN_UTILS DeleteFile c:\test3.db