appinstall_plat/appmngr2runtimeapi/tsrc/conf/ui_appmngr2runtimeapitest_winscw.cfg
//
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "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: AppMngr2 STIF test configuration file for WINSCW emulator
//
// Common definitions to all test cases
[Define]
KNumberToRepeatOOMTest 50
KSisxPluginUid 20016BF6
KMidletPluginUid 20016BF8
KWidgetPluginUid 20016BFA
[Enddefine]
// All tests combined into one test case as subroutines for ATS3.
// This is to make sure that tests are run sequentially. Tests will
// fail if they are run in parallel (at most one installer instance
// can be active at a time).
[Test]
title AppMngr2 Runtime API Tests
callsub AppMngr2_OOM_Test
bringtoforeground
callsub AppMngr2_SISX_Test
callsub AppMngr2_Widget_Test
sendtobackground
[Endtest]
[Sub AppMngr2_OOM_Test]
print AppMngr2_OOM_Test
create appmngr2runtimeapitest test
oomignorefailure ON
loop KNumberToRepeatOOMTest
oomheapfailnext LOOP_COUNTER
test LoadAllPlugins
endloop
oomignorefailure OFF
oomheaptonormal
delete test
[EndSub]
[Sub AppMngr2_SISX_Test]
print AppMngr2_SISX_Test
create appmngr2runtimeapitest test
test CheckFilesExist e:\testing\data\ sistest_winscw.sisx
test LoadPlugin KSisxPluginUid
test CheckPluginsLoaded KSisxPluginUid
test LoadIcons
test GetAdditionalDirsToScan
test GetInstallationFiles e:\testing\data\
test CheckInstallationFiles sistest_winscw.sisx
// Commented out because Details dialog does not get presskey events
//test ShowInstallationFileDetails sistest_winscw.sisx
//pause 2000
//presskey global EKeyDevice0 // Ok to close details dialog
//pause 2000
//presskey global EKeyDevice0 // Additional press (if the above missed)
//waittestclass test
//test CheckShowDetailsEnded
test StartInstallFile sistest_winscw.sisx
pause 2000
presskey global EKeyDevice0 // Confirm install
pause 2000
presskey global EKeyDevice0 // Accept untrusted
pause 2000
presskey global EKeyDevice0 // Owerwrite existing (if present)
pause 2000
presskey global EKeyDevice0 // Additional press (if some of the above missed)
waittestclass test
test CheckInstallEnded
test GetInstalledApps
test CheckAppInstalled sistest
// Commented out because Details dialog does not get presskey events
//test ShowInstalledDetails sistest
//pause 2000
//presskey global EKeyDevice0 // Ok to close details dialog
//pause 2000
//presskey global EKeyDevice0 // Additional press (if the above missed)
//waittestclass test
//test CheckShowDetailsEnded
test StartUninstallApp sistest
pause 2000
presskey global EKeyDevice0 // Accept uninstall
pause 2000
presskey global EKeyDevice0 // Additional press (if the above missed)
waittestclass test
test CheckUninstallEnded
delete test
[EndSub]
[Sub AppMngr2_Widget_Test]
print AppMngr2_Widget_Test
create appmngr2runtimeapitest test
test CheckFilesExist e:\testing\data\ widgettest.wgz
test LoadPlugin KWidgetPluginUid
test CheckPluginsLoaded KWidgetPluginUid
test LoadIcons
test GetAdditionalDirsToScan
test GetInstallationFiles e:\testing\data\
test CheckInstallationFiles widgettest.wgz
// Commented out because Details dialog does not get presskey events
//test ShowInstallationFileDetails widgettest.wgz
//pause 2000
//presskey global EKeyDevice0 // Ok to close details dialog
//pause 2000
//presskey global EKeyDevice0 // Additional press (if the above missed)
//waittestclass test
//test CheckShowDetailsEnded
test StartInstallFile widgettest.wgz
pause 2000
presskey global EKeyDevice0 // Confirm install (and overwrite existing if present)
pause 2000
presskey global EKeyDevice0 // Select internal memory
pause 2000
presskey global EKeyDevice0 // Additional press (if some of the above missed)
waittestclass test
test CheckInstallEnded
test GetInstalledApps
test CheckAppInstalled widgettest
// Commented out because Details dialog does not get presskey events
//test ShowInstalledDetails widgettest
//pause 2000
//presskey global EKeyDevice0 // Ok to close details dialog
//pause 2000
//presskey global EKeyDevice0 // Additional press (if the above missed)
//waittestclass test
//test CheckShowDetailsEnded
test StartUninstallApp widgettest
pause 2000
presskey global EKeyDevice0 // Accept uninstall
pause 2000
presskey global EKeyDevice0 // Additional press (if the above missed)
waittestclass test
test CheckUninstallEnded
delete test
[EndSub]