secureswitools/swisistools/test/tscrtool/tscrtool.ini
author hgs
Fri, 20 Aug 2010 11:39:56 +0300
changeset 64 48c14c385b0e
parent 25 98b66e4fb0be
permissions -rw-r--r--
201033_01

#
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of the License "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description:
# Configuration file for testscrtool.pl
# Command line option testing
# Failure Cases
#

# To ensure graceful abort of the tool when a command specified is not supported by the tool.
[sec/swi/scrtool/0001]
option = -a a.txt
result=EInvalidArgument

# To ensure graceful abort of the tool when a mandatory command is not specified.
[sec/swi/scrtool/0002]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
result=EMandatoryOption

# To ensure graceful abort of the tool when a mandatory command is not specified.
[sec/swi/scrtool/0003]
option = -f envUpdate.xml
result=EFileNotPresent

# To ensure graceful abort of the tool when invalid input is specified.
[sec/swi/scrtool/0004]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f doesnotexist.xml
result=EFileNotPresent

# To ensure -c and -d options are mutually exclusive. The xml file should be present.
[sec/swi/scrtool/0005]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -d %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\exists.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_empty.xml
result=EMutuallyExclusive

# empty env update file
[sec/swi/scrtool/0006]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_empty.xml
result=EFatalError

# env update end tag missing
[sec/swi/scrtool/0007]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_end_tag_missing.xml
result=EFatalError

# env update containing invalid root
[sec/swi/scrtool/0008]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_invalid_root.xml
result=EParseError

# env update against dtd spec
[sec/swi/scrtool/0009]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_against_dtd_spec.xml
result=EParseError

# Ensure getting the tools usage message when the arguments supplied without the '-'
[sec/swi/scrtool/0010]
option = c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_against_dtd_spec.xml
result=EInvalidArgument

# Check setting the level of logging information
[sec/swi/scrtool/0011]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -w NONE
result=EInvalidArgument

# Check for combination of one exisintg and one non existing environment data 
[sec/swi/scrtool/0012]
option = -c %EPOCROOT%epoc32/winscw/c/tswi/tscrtool/scr.db -f %EPOCROOT%epoc32/winscw/c/tswi/tscrtool/data/update_db_test.xml %EPOCROOT%epoc32/winscw/c/tswi/tscrtool/data/nonexistingupdate_db_test.xml
result=EFileNotPresent

# Check for the non exisiting pre provisioned information
[sec/swi/scrtool/0013]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\nonexistingpreprov.xml
result=EFileNotPresent


###############
#Success Case
##############

# Check setting the error log file
[sec/swi/scrtool/0014]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -l scrtooltest.log
checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
result=ENone

# Check setting the level of loggig information
[sec/swi/scrtool/0015]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -w ERROR
checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
result=ENone

# Check setting the level of loggig information
[sec/swi/scrtool/0016]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -w WARN
checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
result=ENone

# Check setting the level of loggig information
[sec/swi/scrtool/0017]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -w INFO
checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
result=ENone

# Check setting the level of loggig information
[sec/swi/scrtool/0018]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -w ALL
checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
result=ENone

# Ensure getting the tools usage message when the arguments supplied is 'h'
[sec/swi/scrtool/0019]
option = -h
result=ENone

# Ensure getting the tools usage message when the arguments supplied is '?'
[sec/swi/scrtool/0020]
option = -?
result=ENone

# successfuly creation of database and update of environment data
[sec/swi/scrtool/0021]
option= -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml
checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\scr.db
result=ENone

# successfully create database containing unicode(utf-16) data
[sec/swi/scrtool/0022]
option = -c %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\unicodescr.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_unicode.xml
checkdbexists = %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\unicodescr.db
result=ENone

# preprovision application xml file does not have an attribute specified for ComponentProperty.
[sec/swi/scrtool/0023]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_attribute_missing.xml
result=EParseError

# preprovision for handling conditions.
[sec/swi/scrtool/0024]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_coverage.xml
result=ENone

# Usage of -f and -p together: positive test
[sec/swi/scrtool/0025]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_symbian.xml
result=ENone

# Usage of -f and -p together: negative test - use nonexisting pre-provision XML
[sec/swi/scrtool/0026]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_doesnotexist.xml
result=EFileNotPresent

# Usage of -f and -p together: negative test - use nonexisting update_db XML
[sec/swi/scrtool/0027]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_nonexisting.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_symbian.xml
result=EFileNotPresent

# Usage of -f and -p together: preprovision xml having registration information
[sec/swi/scrtool/0028]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_appreginfo.xml
result=ENone

# Usage of -f and -p together: preprovision xml having null app uid
[sec/swi/scrtool/0029]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_nullappuid.xml
result=ESqlCorrupt

# Usage of -f and -p together: preprovision xml with attribute missing for LocalizableInfo
[sec/swi/scrtool/0030]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_appregattribmissing.xml
result=EParseError

# Usage of -f and -p together: preprovision xml with no application attributes
[sec/swi/scrtool/0031]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_noappattrib.xml
result=EParseError

# Usage of -f and -p together: preprovision xml having null app file field
[sec/swi/scrtool/0032]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_nullappfile.xml
result=ESqlCorrupt

# Usage of -f and -p together: preprovision xml having no caption and icon info
[sec/swi/scrtool/0033]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_nocaptioniconinfo.xml
result=ENone

# Negative case Usage of preprovision xml having both Strvalue and Intvalue in AppProperty Table
[sec/swi/scrtool/0034]
option = -c create.db -f %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\update_db_test.xml -p %EPOCROOT%epoc32\winscw\c\tswi\tscrtool\data\preprovision_invalid_appproperty.xml
result=EParseError