os/boardsupport/haitest/bspsvs/suite/bsp/mmc/scripts/BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 //
     2 // Copyright (c) 2005-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:
    15 //
    16 
    17 LOAD_SUITE	T_mmcsd
    18 
    19 
    20 START_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0001
    21 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MANUALMediaChange-0001
    22 //! @SYMTestCaseDesc		Load Logical Device Driver.
    23 //! @SYMTestPriority		high
    24 //! @SYMTestActions		Load D_MMCSDIF LDD Driver
    25 //! @SYMTestExpectedResults	KErrNone
    26 //! @SYMTestType		CIT
    27 //! @SYMCreationDate		6/5/2008
    28 //! @SYMAuthor			Saravanakumar
    29 //! @SYMTestStatus		Implemented
    30 //! @SYMAPI			User::LoadLogicalDevice(const TDesC {ref});
    31 	START_TEST_BLOCK	100			T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.ini
    32 		CREATE_OBJECT	MMCSDSession		mmcsdsession1
    33 		COMMAND		mmcsdsession1		NewL
    34 		COMMAND		mmcsdsession1		LoadDriver		BASE-BSP-MMC-DRIVER-LDDName-CMD0001
    35 		COMMAND		mmcsdsession1		~
    36 	END_TEST_BLOCK
    37 END_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0001
    38 
    39 
    40 START_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0002
    41 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MANUALMediaChange-0002
    42 //! @SYMTestCaseDesc		Checks the Door State and Validate
    43 //! @SYMTestPriority		high
    44 //! @SYMTestActions		1. Open the Driver handle
    45 //!				2. Checks the Current Door State.
    46 //!				3. Display Door State.
    47 //!				4. Test door closed?
    48 //!				5. Validate Door States.
    49 //!				6. Close the driver handle
    50 //! @SYMTestExpectedResults	KErrNone
    51 //! @SYMTestType		CIT
    52 //! @SYMCreationDate		6/5/2008
    53 //! @SYMAuthor			Saravanakumar
    54 //! @SYMTestStatus		Implemented
    55 //! @SYMAPI			DMMCMediaChange::DoDoorOpen();
    56 //!				DMMCMediaChange::DoDoorClosed()
    57 //!				DMMCSocket::iDoorOpened()
    58 	START_TEST_BLOCK	500	 		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.ini
    59 		CREATE_OBJECT	MMCSDSession		mmcsdsession1
    60 		CREATE_OBJECT	MMCSDMediaChange	mmcsdmediachange1
    61 		COMMAND		mmcsdsession1		NewL
    62 		COMMAND		mmcsdsession1		DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
    63 		COMMAND		mmcsdmediachange1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
    64 		COMMAND		mmcsdmediachange1	utilityPromptMessage	BASE-BSP-MMC-DRIVER-Message1-CMD0002
    65 		COMMAND		mmcsdmediachange1	MediaState		BASE-BSP-MMC-DRIVER-MediaState-CMD0002
    66 		COMMAND		mmcsdsession1		Close
    67 		COMMAND		mmcsdmediachange1	~
    68 		COMMAND		mmcsdsession1		~
    69 	END_TEST_BLOCK
    70 END_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0002
    71 
    72 
    73 START_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0003
    74 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MANUALMediaChange-0003
    75 //! @SYMTestCaseDesc		Checks the Door State and Validate
    76 //! @SYMTestPriority		high
    77 //! @SYMTestActions		1. Open the Driver handle
    78 //!				2. Checks the Current Door State.
    79 //!				3. Display Door State.
    80 //!				4. Test door opened?
    81 //!				5. Validate Door States.
    82 //!				6. Close the driver handle
    83 //! @SYMTestExpectedResults	KErrNone
    84 //! @SYMTestType		CIT
    85 //! @SYMCreationDate		6/5/2008
    86 //! @SYMAuthor			Saravanakumar
    87 //! @SYMTestStatus		Implemented
    88 //! @SYMAPI			DMMCMediaChange::DoDoorOpen();
    89 //!				DMMCMediaChange::DoDoorClosed()
    90 //!				DMMCSocket::iDoorOpened()
    91 	START_TEST_BLOCK	500	 		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.ini
    92 		CREATE_OBJECT	MMCSDSession		mmcsdsession1
    93 		CREATE_OBJECT	MMCSDMediaChange	mmcsdmediachange1
    94 		COMMAND		mmcsdsession1		NewL
    95 		COMMAND		mmcsdsession1		DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
    96 		COMMAND		mmcsdmediachange1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
    97 		COMMAND		mmcsdmediachange1	utilityPromptMessage	BASE-BSP-MMC-DRIVER-Message1-CMD0003
    98 		COMMAND		mmcsdmediachange1	MediaState		BASE-BSP-MMC-DRIVER-MediaState-CMD0003
    99 		COMMAND		mmcsdmediachange1	utilityPromptMessage	BASE-BSP-MMC-DRIVER-Message2-CMD0003
   100 		COMMAND		mmcsdsession1		Close
   101 		COMMAND		mmcsdmediachange1	~
   102 		COMMAND		mmcsdsession1		~
   103 	END_TEST_BLOCK
   104 END_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0003
   105 
   106 
   107 START_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0004
   108 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MANUALMediaChange-0004
   109 //! @SYMTestCaseDesc		Checks the Door State and Validate
   110 //! @SYMTestPriority		high
   111 //! @SYMTestActions		1. Open the Driver handle
   112 //!				2. Checks the Current Door State.
   113 //!				3. Display Door State.
   114 //!				4. Test door opened?
   115 //!				5. Validate Door States.
   116 //!				6. Close the driver handle
   117 //! @SYMTestExpectedResults	KErrNone
   118 //! @SYMTestType		CIT
   119 //! @SYMCreationDate		6/5/2008
   120 //! @SYMAuthor			Saravanakumar
   121 //! @SYMTestStatus		Implemented
   122 //! @SYMAPI			DMMCMediaChange::ForceMediaChange();
   123 //!				DMMCMediaChange::DoDoorClosed();
   124 //!				DMMCMediaChange::DoDoorOpen();
   125 	START_TEST_BLOCK	500			T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.ini
   126 		CREATE_OBJECT	MMCSDSession		mmcsdsession1
   127 		CREATE_OBJECT	MMCSDMediaChange	mmcsdmediachange1
   128 		COMMAND		mmcsdsession1		NewL
   129 		COMMAND		mmcsdsession1		DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
   130 		COMMAND		mmcsdmediachange1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
   131 		COMMAND		mmcsdmediachange1	utilityPromptMessage	BASE-BSP-MMC-DRIVER-Message1-CMD0004
   132 		COMMAND		mmcsdmediachange1	MediaState		BASE-BSP-MMC-DRIVER-MediaState-CMD0004
   133 		COMMAND		mmcsdmediachange1	ForceMediaChange
   134 		COMMAND		mmcsdmediachange1	MediaState		BASE-BSP-MMC-DRIVER-ForcedMediaState-CMD0004
   135 		COMMAND		mmcsdsession1		Close
   136 		COMMAND		mmcsdmediachange1	~
   137 		COMMAND		mmcsdsession1		~
   138 	END_TEST_BLOCK
   139 END_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0004
   140 
   141 
   142 START_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0005
   143 //! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MANUALMediaChange-0005
   144 //! @SYMTestCaseDesc		UnLoad Logical Device Driver.
   145 //! @SYMTestPriority		high
   146 //! @SYMTestActions		Load D_MMCSDIF LDD Driver
   147 //! @SYMTestExpectedResults	KErrNone
   148 //! @SYMTestType		CIT
   149 //! @SYMCreationDate		1/4/2008
   150 //! @SYMAuthor			Saravanakumar
   151 //! @SYMTestStatus		Implemented
   152 //! @SYMAPI			User::FreeLogicalDevice(const TDesC {ref})
   153 	START_TEST_BLOCK	100	 		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.ini
   154 		CREATE_OBJECT	MMCSDSession		mmcsdsession1
   155 		COMMAND		mmcsdsession1		NewL
   156 		COMMAND		mmcsdsession1		UnLoadDriver		BASE-BSP-MMC-DRIVER-LDDName-CMD0001
   157 		COMMAND		mmcsdsession1		~
   158 	END_TEST_BLOCK
   159 END_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0005