installationservices/swi/test/tuiscriptadaptors/scripts/tuiscriptadaptorsMem.script
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:51:10 +0200
changeset 0 ba25891c3a9e
permissions -rw-r--r--
Revision: 200949 Kit: 200951

//
// Copyright (c) 2009 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:
//
//! @file
// SWIS unit (integration) tests
PRINT Run all SWIS tests
LOAD_SUITE tuiscriptadaptors

//! @SYMTestCaseID		API-SEC-UISA-Hugecontroller-I-B-0001
//! @SYMTestCaseDesc		Installs a file with a very large controller
//! @SYMTestPriority		Medium
//! @SYMTestActions		Installs a file with a very large controller
//! @SYMTestExpectedResults	File installs sucessfully
//! @SYMDevelopedForRelease	Yankee

START_TESTCASE API-SEC-UISA-Hugecontroller-I-B-0001

RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini hugecontroller
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_hugecontroller

END_TESTCASE API-SEC-UISA-Hugecontroller-I-B-0001


//! @SYMTestCaseID		API-SEC-UISA-InsufficientSpace-I-0001
//! @SYMTestCaseDesc		Tries to install a SISX file containing four megabytes of data onto drive x, which is only 1 mb
//! @SYMTestPriority		Medium
//! @SYMTestActions		Tries to install a SISX file containing four megabytes of data onto drive x, which is only 1 mb
//! @SYMTestExpectedResults	Installation fails
//! @SYMDevelopedForRelease	Yankee

START_TESTCASE API-SEC-UISA-InsufficientSpace-I-0001

RUN_TEST_STEP_RESULT -26 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini diskfull
RUN_TEST_STEP_RESULT -1  100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_diskfull

END_TESTCASE API-SEC-UISA-InsufficientSpace-I-0001


//! @SYMTestCaseID		API-SEC-UISA-DriveNotReady-I-B-0001
//! @SYMTestCaseDesc		Tries to install a SISX file onto drive q, which is not present
//! @SYMTestPriority		Medium
//! @SYMTestActions		Tries to install a SISX file onto drive q, which is not present
//! @SYMTestExpectedResults	Installation fails with -18
//! @SYMDevelopedForRelease	Yankee

START_TESTCASE API-SEC-UISA-DriveNotReady-I-B-0001

RUN_TEST_STEP_RESULT -18 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini drivenotready
RUN_TEST_STEP_RESULT -1  100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_drivenotready

END_TESTCASE API-SEC-UISA-DriveNotReady-I-B-0001


//! @SYMTestCaseID		API-SEC-UISA-InvalidSisxFile-I-B-0001
//! @SYMTestCaseDesc		Tries to install a script file as a SISX file
//! @SYMTestPriority		Medium
//! @SYMTestActions		Tries to install a script file as a SISX file
//! @SYMTestExpectedResults	Installation fails, appropriate dialog displayed, and error returned.
//! @SYMDevelopedForRelease	Yankee

START_TESTCASE API-SEC-UISA-InvalidSisxFile-I-B-0001

RUN_TEST_STEP_RESULT -20 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini invalidsisxfile

END_TESTCASE API-SEC-UISA-InvalidSisxFile-I-B-0001


//! @SYMTestCaseID		API-SEC-UISA-InvalidFileName-I-B-0001
//! @SYMTestCaseDesc		Tries to install a sis file containing a filename destination which is invalid
//! @SYMTestPriority		Medium
//! @SYMTestActions		Tries to install a sis file containing a filename destination which is invalid
//! @SYMTestExpectedResults	SISX file fails to install, appropriate dialog displayed.
//! @SYMDevelopedForRelease	Yankee

START_TESTCASE API-SEC-UISA-InvalidFileName-I-B-0001

RUN_TEST_STEP_RESULT -10146 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini invalidfilename
RUN_TEST_STEP_RESULT -1 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_invalidfilename

END_TESTCASE API-SEC-UISA-InvalidFileName-I-B-0001


//! @SYMTestCaseID		API-SEC-UISA-DisplayText-I-B-0001
//! @SYMTestCaseDesc		Display a text file and install/uninstall it
//! @SYMTestPriority		Medium
//! @SYMTestActions 		Display text file and install/uninstall it
//! @SYMTestExpectedResults	Display text file dialog called, file [un]installed
//! @SYMDevelopedForRelease	Yankee

START_TESTCASE API-SEC-UISA-DisplayText-I-B-0001

RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testdisplayinstall
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_testdisplayinstall

RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testdisplayonly
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_testdisplayonly

END_TESTCASE API-SEC-UISA-DisplayText-I-B-0001


//! @SYMTestCaseID		API-SEC-UISA-SimpleTest-I-B-0001
//! @SYMTestCaseDesc		Install text file in a simple unsigned SISX package
//! @SYMTestPriority		Critical
//! @SYMTestActions 		Install a simple unsigned package
//! @SYMTestExpectedResults	Text file is installed
//! @SYMDevelopedForRelease	Yankee

START_TESTCASE API-SEC-UISA-SimpleTest-I-B-0001

/// Simple file installation from a compressed SIS file
// Be sure that the registry entries are deleted because they may have been left
// from previous failed test cases
RUN_UTILS DeleteFile C:\Documents\InstTest\file1.txt
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini simple
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_simple
/// Simple file installation from a non-compressed SIS file
RUN_UTILS DeleteFile C:\Documents\InstTest\file1.txt
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini simplenc
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_simplenc
/// Bad language selection, installation aborted
RUN_UTILS DeleteFile C:\Documents\InstTest\file1.txt
RUN_TEST_STEP_RESULT -3 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini badlangsel
/// Bad drive selection, installation aborted
RUN_UTILS DeleteFile C:\Documents\InstTest\file1.txt
RUN_TEST_STEP_RESULT -3 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini baddrivesel

END_TESTCASE API-SEC-UISA-SimpleTest-I-B-0001


//! @SYMTestCaseID		API-SEC-LOGOTEST-0005
//! @SYMTestStatus		3. Released

START_TESTCASE API-SEC-LOGOTEST-0005

// Installation of a SIS file that contains a logo.
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini logo
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_logo

END_TESTCASE API-SEC-LOGOTEST-0005


//! @SYMTestCaseID		API-SEC-UISA-AppTest-I-0001
//! @SYMTestCaseDesc		Install application file in a simple unsigned SISX package
//! @SYMTestPriority		Critical
//! @SYMTestActions 		Install/uninstall a simple unsigned package with an app file
//! @SYMTestExpectedResults	Executable installed/uninstalled, hash extracted
//! @SYMDevelopedForRelease	Yankee

//START_TESTCASE API-SEC-UISA-AppTest-I-0001
//RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini tstapp
//RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_tstapp
//END_TESTCASE API-SEC-UISA-AppTest-I-0001


// embeded tests

//! @SYMTestCaseID		API-SEC-UISA-EmbeddedSISFiles-I-B-0001
//! @SYMTestCaseDesc		Install package with embedded packages
//! @SYMTestPriority		High
//! @SYMTestActions 		Install package and embedded packages
//! @SYMTestExpectedResults	Package and embedded packages installed
//! @SYMDevelopedForRelease	Yankee

START_TESTCASE API-SEC-UISA-EmbeddedSISFiles-I-B-0001

//Ought to fail so left out currently
//RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini embed2nc
//RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini u_embed2nc

RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini embed1
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini u_embed1

RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini embed1nc
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini u_embed1nc

RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini embed2
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\testembedded.ini u_embed2

END_TESTCASE API-SEC-UISA-EmbeddedSISFiles-I-B-0001


//! @SYMTestCaseID		API-SEC-UISA-SignedTest-I-B-0001
//! @SYMTestCaseDesc		Install simple SIS file with 1 signature
//! @SYMTestPriority		Critical
//! @SYMTestActions 		Files from a signed package are installed/uninstalled 
//! @SYMTestExpectedResults	Files are installed/uninstalled
//! @SYMDevelopedForRelease	Yankee
// Signed SIS tests

START_TESTCASE API-SEC-UISA-SignedTest-I-B-0001

RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\signed.ini longname_rsa_l1
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\signed.ini u_longname_rsa_l1
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\signed.ini optionsnc_rsa_l2
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\signed.ini u_optionsnc_rsa_l2

END_TESTCASE API-SEC-UISA-SignedTest-I-B-0001


//! @SYMTestCaseID		API-SEC-UISA-CapTest-I-0001
//! @SYMTestCaseDesc		Install signed executables and check/grant their caps
//! @SYMTestPriority		Critical
//! @SYMTestActions 		Files from a signed package are installed/uninstalled 
//! @SYMTestExpectedResults	Files are installed/uninstalled
//! @SYMDevelopedForRelease	Yankee
// Signed SIS tests

START_TESTCASE API-SEC-UISA-CapTest-I-0001

RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\caps.ini tswiallcapabilities
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\caps.ini u_tswiallcapabilities
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\caps.ini tswinocapability
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\caps.ini u_tswinocapability
//RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\caps.ini tswinocapability2
//RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\caps.ini u_tswinocapability2
//RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\caps.ini tswinocapability3
//RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\caps.ini u_tswinocapability3
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\caps.ini tswisignedcap_8
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\caps.ini u_tswisignedcap_8
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\caps.ini tswisystemcapability
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\caps.ini u_tswisystemcapability
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\caps.ini tswiusergrantable
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\caps.ini u_tswiusergrantable
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\caps.ini tswiusergrantable_all
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\caps.ini u_tswiusergrantable_all
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\caps.ini tswiusergrantable_some
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\caps.ini u_tswiusergrantable_some
RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\caps.ini tswiusergrantable_none
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\caps.ini u_tswiusergrantable_none

END_TESTCASE API-SEC-UISA-CapTest-I-0001


//! @SYMTestCaseID		API-SEC-UISA-MissingDepTest-I-B-0001
//! @SYMTestCaseDesc		Install SIS file with missing dependency
//! @SYMTestPriority		High 
//! @SYMTestActions 		Missing dependency prevents SIS package installation 
//! @SYMTestExpectedResults	Files are not installed
//! @SYMDevelopedForRelease	Yankee
// Missing dependency tests

START_TESTCASE API-SEC-UISA-MissingDepTest-I-B-0001

RUN_TEST_STEP_RESULT -10136 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini baddepend

END_TESTCASE API-SEC-UISA-MissingDepTest-I-B-0001


//! @SYMTestCaseID		API-SEC-UISA-Sids-I-B-0001
//! @SYMTestCaseDesc		Test installation of two executables with the same SID
//! @SYMTestPriority		Medium
//! @SYMTestActions 		Tries to install various combinations of executables with the same SID
//! @SYMTestExpectedResults	Only one executable with a certain SID will be allowed on the device at once
//! @SYMDevelopedForRelease	Yankee

START_TESTCASE API-SEC-UISA-Sids-I-B-0001

RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testsidcheck_A
RUN_TEST_STEP_RESULT -11 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testsidcheck_B
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_testsidcheck_A

RUN_TEST_STEP 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testsidcheck_B
RUN_TEST_STEP_RESULT -11 100 tuiscriptadaptors InstallMemStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini testsidcheck_A
RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_testsidcheck_B

END_TESTCASE API-SEC-UISA-Sids-I-B-0001


// Ensure that SWIS shuts down after the above tests to make sure heap checks run
RUN_TEST_STEP 5 tuiscriptadaptors SwisNotRunning