appinstall_plat/appmngr2runtimeapi/tsrc/conf/ui_appmngr2runtimeapitest_winscw.cfg
changeset 80 9dcba1ee99f7
parent 77 d1838696558c
equal deleted inserted replaced
77:d1838696558c 80:9dcba1ee99f7
     1 //
       
     2 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 // 
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 // 
       
    12 // Contributors:
       
    13 // 
       
    14 // Description: AppMngr2 STIF test configuration file for WINSCW emulator
       
    15 //
       
    16 
       
    17 
       
    18 // Common definitions to all test cases
       
    19 [Define]
       
    20 KNumberToRepeatOOMTest 50
       
    21 KSisxPluginUid 20016BF6
       
    22 KMidletPluginUid 20016BF8
       
    23 KWidgetPluginUid 20016BFA
       
    24 [Enddefine]
       
    25 
       
    26 
       
    27 // All tests combined into one test case as subroutines for ATS3.
       
    28 // This is to make sure that tests are run sequentially. Tests will
       
    29 // fail if they are run in parallel (at most one installer instance
       
    30 // can be active at a time).
       
    31 [Test]
       
    32 title AppMngr2 Runtime API Tests
       
    33 callsub AppMngr2_OOM_Test
       
    34 bringtoforeground
       
    35 callsub AppMngr2_SISX_Test
       
    36 callsub AppMngr2_Widget_Test
       
    37 sendtobackground
       
    38 [Endtest]
       
    39 
       
    40 
       
    41 [Sub AppMngr2_OOM_Test]
       
    42 print AppMngr2_OOM_Test
       
    43 create appmngr2runtimeapitest test
       
    44 
       
    45 oomignorefailure ON
       
    46 loop KNumberToRepeatOOMTest
       
    47 oomheapfailnext LOOP_COUNTER
       
    48 test LoadAllPlugins
       
    49 endloop
       
    50 oomignorefailure OFF
       
    51 oomheaptonormal
       
    52 
       
    53 delete test
       
    54 [EndSub]
       
    55 
       
    56 
       
    57 [Sub AppMngr2_SISX_Test]
       
    58 print AppMngr2_SISX_Test
       
    59 create appmngr2runtimeapitest test
       
    60 
       
    61 test CheckFilesExist e:\testing\data\ sistest_winscw.sisx
       
    62 
       
    63 test LoadPlugin KSisxPluginUid
       
    64 test CheckPluginsLoaded KSisxPluginUid
       
    65 test LoadIcons
       
    66 test GetAdditionalDirsToScan
       
    67 
       
    68 test GetInstallationFiles e:\testing\data\
       
    69 test CheckInstallationFiles sistest_winscw.sisx
       
    70 
       
    71 // Commented out because Details dialog does not get presskey events
       
    72 //test ShowInstallationFileDetails sistest_winscw.sisx
       
    73 //pause 2000
       
    74 //presskey global EKeyDevice0		// Ok to close details dialog 
       
    75 //pause 2000
       
    76 //presskey global EKeyDevice0		// Additional press (if the above missed)
       
    77 //waittestclass test
       
    78 //test CheckShowDetailsEnded
       
    79 
       
    80 test StartInstallFile sistest_winscw.sisx
       
    81 pause 2000
       
    82 presskey global EKeyDevice0		// Confirm install
       
    83 pause 2000
       
    84 presskey global EKeyDevice0		// Accept untrusted
       
    85 pause 2000
       
    86 presskey global EKeyDevice0		// Owerwrite existing (if present)
       
    87 pause 2000
       
    88 presskey global EKeyDevice0		// Additional press (if some of the above missed)
       
    89 waittestclass test
       
    90 test CheckInstallEnded
       
    91 
       
    92 test GetInstalledApps
       
    93 test CheckAppInstalled sistest
       
    94 
       
    95 // Commented out because Details dialog does not get presskey events
       
    96 //test ShowInstalledDetails sistest
       
    97 //pause 2000
       
    98 //presskey global EKeyDevice0		// Ok to close details dialog 
       
    99 //pause 2000
       
   100 //presskey global EKeyDevice0		// Additional press (if the above missed)
       
   101 //waittestclass test
       
   102 //test CheckShowDetailsEnded
       
   103 
       
   104 test StartUninstallApp sistest
       
   105 pause 2000
       
   106 presskey global EKeyDevice0		// Accept uninstall
       
   107 pause 2000
       
   108 presskey global EKeyDevice0		// Additional press (if the above missed)
       
   109 waittestclass test
       
   110 test CheckUninstallEnded
       
   111 
       
   112 delete test
       
   113 [EndSub]
       
   114 
       
   115 
       
   116 [Sub AppMngr2_Widget_Test]
       
   117 print AppMngr2_Widget_Test
       
   118 create appmngr2runtimeapitest test
       
   119 
       
   120 test CheckFilesExist e:\testing\data\ widgettest.wgz
       
   121 
       
   122 test LoadPlugin KWidgetPluginUid
       
   123 test CheckPluginsLoaded KWidgetPluginUid
       
   124 test LoadIcons
       
   125 test GetAdditionalDirsToScan
       
   126 
       
   127 test GetInstallationFiles e:\testing\data\
       
   128 test CheckInstallationFiles widgettest.wgz
       
   129 
       
   130 // Commented out because Details dialog does not get presskey events
       
   131 //test ShowInstallationFileDetails widgettest.wgz
       
   132 //pause 2000
       
   133 //presskey global EKeyDevice0		// Ok to close details dialog 
       
   134 //pause 2000
       
   135 //presskey global EKeyDevice0		// Additional press (if the above missed)
       
   136 //waittestclass test
       
   137 //test CheckShowDetailsEnded
       
   138 
       
   139 test StartInstallFile widgettest.wgz
       
   140 pause 2000
       
   141 presskey global EKeyDevice0		// Confirm install (and overwrite existing if present)
       
   142 pause 2000
       
   143 presskey global EKeyDevice0		// Select internal memory
       
   144 pause 2000
       
   145 presskey global EKeyDevice0		// Additional press (if some of the above missed)
       
   146 waittestclass test
       
   147 test CheckInstallEnded
       
   148 
       
   149 test GetInstalledApps
       
   150 test CheckAppInstalled widgettest
       
   151 
       
   152 // Commented out because Details dialog does not get presskey events
       
   153 //test ShowInstalledDetails widgettest
       
   154 //pause 2000
       
   155 //presskey global EKeyDevice0		// Ok to close details dialog 
       
   156 //pause 2000
       
   157 //presskey global EKeyDevice0		// Additional press (if the above missed)
       
   158 //waittestclass test
       
   159 //test CheckShowDetailsEnded
       
   160 
       
   161 test StartUninstallApp widgettest
       
   162 pause 2000
       
   163 presskey global EKeyDevice0		// Accept uninstall
       
   164 pause 2000
       
   165 presskey global EKeyDevice0		// Additional press (if the above missed)
       
   166 waittestclass test
       
   167 test CheckUninstallEnded
       
   168 
       
   169 delete test
       
   170 [EndSub]
       
   171