installationservices/swi/test/swicaptests/scripts/swicaptests.script
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 //
     1 //
     2 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     4 // This component and the accompanying materials are made available
     5 // under the terms of the License "Eclipse Public License v1.0"
     5 // under the terms of the License "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    16 //! @file
    16 //! @file
    17 // SWI Capability tests
    17 // SWI Capability tests
    18 PRINT Run all SWIS capability tests
    18 PRINT Run all SWIS capability tests
    19 
    19 
    20 LOAD_SUITE aprcaptestframework
    20 LOAD_SUITE aprcaptestframework
    21 LOAD_SUITE tuiscriptadaptors
    21 
    22 LOAD_SUITE tscr // To delete the SCR DB
       
    23 
    22 
    24 //! @SYMTestCaseID 		API-SEC-SWI-CapTests-I-0001
    23 //! @SYMTestCaseID 		API-SEC-SWI-CapTests-I-0001
    25 //! @SYMTestCaseDesc 		Runs the whole suite of test cases for SWI interfaces. Both negtive and positive tests are included
    24 //! @SYMTestCaseDesc 		Runs the whole suite of test cases for SWI interfaces. Both negtive and positive tests are included
    26 //! @SYMTestPriority 		High
    25 //! @SYMTestPriority 		High
    27 //! @SYMTestStatus		3. Released
    26 //! @SYMTestStatus		3. Released
    28 //! @SYMTestActions 		Tests IPC calls from different capabilities
    27 //! @SYMTestActions 		Tests IPC calls from different capabilities
    29 //! @SYMTestExpectedResults 	KErrPermissionDenied received on calls which should fail
    28 //! @SYMTestExpectedResults 	KErrPermissionDenied received on calls which should fail
    30 //! @SYMDevelopedForRelease 	Yankee
    29 //! @SYMDevelopedForRelease 	Yankee
    31 
    30 
       
    31 
    32 START_TESTCASE API-SEC-SWI-CapTests-I-0001
    32 START_TESTCASE API-SEC-SWI-CapTests-I-0001
    33 
    33 
    34 RUN_UTILS MkDir c:\tswi\
    34 RUN_UTILS MkDir c:\tswi\
    35 RUN_UTILS MkDir c:\tswi\swicaptests
    35 RUN_UTILS MkDir c:\tswi\swicaptests
    36 RUN_UTILS MkDir c:\tswi\swicaptests\data
    36 RUN_UTILS MkDir c:\tswi\swicaptests\data
    37 RUN_UTILS CopyFile z:\tswi\swicaptests\data\testdoc.txt c:\tswi\swicaptests\data\testdoc.txt
    37 RUN_UTILS CopyFile z:\tswi\swicaptests\data\testdoc.txt c:\tswi\swicaptests\data\testdoc.txt
    38 
       
    39 // Delete the existing DB and install a test pacakage (so that ComponentId of 1 is valid)
       
    40 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini db_file
       
    41 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\swicaptests\scripts\swicaptests.ini simple
       
    42 
       
    43 RUN_TEST_STEP 100 aprcaptestframework RunThoroughCapabilityChecks z:\tswi\swicaptests\scripts\swicaptests.ini swicaptests
    38 RUN_TEST_STEP 100 aprcaptestframework RunThoroughCapabilityChecks z:\tswi\swicaptests\scripts\swicaptests.ini swicaptests
    44 
    39 
    45 // Uninstall the test pacakage and delete the DB so that it does not interfere with remaining tests
       
    46 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\swicaptests\scripts\swicaptests.ini u_simple
       
    47 RUN_TEST_STEP 100 tscr SCRDeleteDbFile z:\tusif\tscr\tscr.ini db_file
       
    48 
       
    49 END_TESTCASE API-SEC-SWI-CapTests-I-0001
    40 END_TESTCASE API-SEC-SWI-CapTests-I-0001