|
1 // |
|
2 // Copyright (c) 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 the License "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: |
|
15 // |
|
16 // |
|
17 PRINT Run tsif OOM Suite Tests |
|
18 |
|
19 // Delete the SCR Database file |
|
20 LOAD_SUITE tscr |
|
21 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini db_file |
|
22 |
|
23 LOAD_SUITE tUsifSuite |
|
24 |
|
25 // ************************ SIF Component OOM test cases ************************ |
|
26 //! @SYMTestCaseID API-SEC-SIF-tsif-oom-0001 |
|
27 //! @SYMTestCaseDesc Test OOM on server side |
|
28 //! @SYMTestStatus 3. Released |
|
29 |
|
30 START_TESTCASE API-SEC-SIF-tsif-oom-0001 |
|
31 |
|
32 // by file name - simulate OOM at server side |
|
33 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tsif\tsif.ini NonNativeInstallByFileNameOOM |
|
34 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tsif\tsif.ini NonNativeUninstallByNameAndVendorOOM |
|
35 // by file name - simulate OOM at client side |
|
36 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tsif\tsif.ini InstallClientOOM |
|
37 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tsif\tsif.ini UninstallClientOOM |
|
38 // by file handle |
|
39 RUN_TEST_STEP 100 tUsifSuite SifInstallStep z:\tusif\tsif\tsif.ini NonNativeInstallByFileHandleOOM |
|
40 RUN_TEST_STEP 100 tUsifSuite SifUninstallStep z:\tusif\tsif\tsif.ini NonNativeUninstallByNameAndVendorOOM |
|
41 |
|
42 END_TESTCASE API-SEC-SIF-tsif-oom-0001 |
|
43 |
|
44 |
|
45 //! @SYMTestCaseID API-SEC-SIF-tsif-oom-0002 |
|
46 //! @SYMTestCaseDesc Test OOM on getting component information |
|
47 //! @SYMTestStatus 3. Released |
|
48 |
|
49 START_TESTCASE API-SEC-SIF-tsif-oom-0002 |
|
50 |
|
51 RUN_TEST_STEP 100 tUsifSuite SifGetComponentInfoStep z:\tusif\tsif\tsif.ini GetComponentInfoByFileNameOOM |
|
52 RUN_TEST_STEP 100 tUsifSuite SifGetComponentInfoStep z:\tusif\tsif\tsif.ini GetComponentInfoByFileHandleOOM |
|
53 |
|
54 END_TESTCASE API-SEC-SIF-tsif-oom-0002 |
|
55 |
|
56 |
|
57 // ************************ SIF Unit test cases ************************ |
|
58 //! @SYMTestCaseID API-SEC-SIF-tsifunit-OOM-0001 |
|
59 //! @SYMTestStatus 3. Released |
|
60 |
|
61 START_TESTCASE API-SEC-SIF-tsifunit-OOM-0001 |
|
62 |
|
63 RUN_TEST_STEP 100 tUsifSuite SifCommonUnitTestStep z:\tusif\tsif\tsif.ini SifCommonOOM |
|
64 |
|
65 END_TESTCASE API-SEC-SIF-tsifunit-OOM-0001 |
|
66 |
|
67 |
|
68 // Wait 3 seconds in order to let the SIF server shutdown itself |
|
69 DELAY 3 |
|
70 |
|
71 PRINT Complate_te_Sif_Tests |