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.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description:
sl@0
    15
//
sl@0
    16
sl@0
    17
LOAD_SUITE	T_mmcsd
sl@0
    18
sl@0
    19
sl@0
    20
START_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0001
sl@0
    21
//! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MANUALMediaChange-0001
sl@0
    22
//! @SYMTestCaseDesc		Load Logical Device Driver.
sl@0
    23
//! @SYMTestPriority		high
sl@0
    24
//! @SYMTestActions		Load D_MMCSDIF LDD Driver
sl@0
    25
//! @SYMTestExpectedResults	KErrNone
sl@0
    26
//! @SYMTestType		CIT
sl@0
    27
//! @SYMCreationDate		6/5/2008
sl@0
    28
//! @SYMAuthor			Saravanakumar
sl@0
    29
//! @SYMTestStatus		Implemented
sl@0
    30
//! @SYMAPI			User::LoadLogicalDevice(const TDesC {ref});
sl@0
    31
	START_TEST_BLOCK	100			T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.ini
sl@0
    32
		CREATE_OBJECT	MMCSDSession		mmcsdsession1
sl@0
    33
		COMMAND		mmcsdsession1		NewL
sl@0
    34
		COMMAND		mmcsdsession1		LoadDriver		BASE-BSP-MMC-DRIVER-LDDName-CMD0001
sl@0
    35
		COMMAND		mmcsdsession1		~
sl@0
    36
	END_TEST_BLOCK
sl@0
    37
END_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0001
sl@0
    38
sl@0
    39
sl@0
    40
START_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0002
sl@0
    41
//! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MANUALMediaChange-0002
sl@0
    42
//! @SYMTestCaseDesc		Checks the Door State and Validate
sl@0
    43
//! @SYMTestPriority		high
sl@0
    44
//! @SYMTestActions		1. Open the Driver handle
sl@0
    45
//!				2. Checks the Current Door State.
sl@0
    46
//!				3. Display Door State.
sl@0
    47
//!				4. Test door closed?
sl@0
    48
//!				5. Validate Door States.
sl@0
    49
//!				6. Close the driver handle
sl@0
    50
//! @SYMTestExpectedResults	KErrNone
sl@0
    51
//! @SYMTestType		CIT
sl@0
    52
//! @SYMCreationDate		6/5/2008
sl@0
    53
//! @SYMAuthor			Saravanakumar
sl@0
    54
//! @SYMTestStatus		Implemented
sl@0
    55
//! @SYMAPI			DMMCMediaChange::DoDoorOpen();
sl@0
    56
//!				DMMCMediaChange::DoDoorClosed()
sl@0
    57
//!				DMMCSocket::iDoorOpened()
sl@0
    58
	START_TEST_BLOCK	500	 		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.ini
sl@0
    59
		CREATE_OBJECT	MMCSDSession		mmcsdsession1
sl@0
    60
		CREATE_OBJECT	MMCSDMediaChange	mmcsdmediachange1
sl@0
    61
		COMMAND		mmcsdsession1		NewL
sl@0
    62
		COMMAND		mmcsdsession1		DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
sl@0
    63
		COMMAND		mmcsdmediachange1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
sl@0
    64
		COMMAND		mmcsdmediachange1	utilityPromptMessage	BASE-BSP-MMC-DRIVER-Message1-CMD0002
sl@0
    65
		COMMAND		mmcsdmediachange1	MediaState		BASE-BSP-MMC-DRIVER-MediaState-CMD0002
sl@0
    66
		COMMAND		mmcsdsession1		Close
sl@0
    67
		COMMAND		mmcsdmediachange1	~
sl@0
    68
		COMMAND		mmcsdsession1		~
sl@0
    69
	END_TEST_BLOCK
sl@0
    70
END_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0002
sl@0
    71
sl@0
    72
sl@0
    73
START_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0003
sl@0
    74
//! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MANUALMediaChange-0003
sl@0
    75
//! @SYMTestCaseDesc		Checks the Door State and Validate
sl@0
    76
//! @SYMTestPriority		high
sl@0
    77
//! @SYMTestActions		1. Open the Driver handle
sl@0
    78
//!				2. Checks the Current Door State.
sl@0
    79
//!				3. Display Door State.
sl@0
    80
//!				4. Test door opened?
sl@0
    81
//!				5. Validate Door States.
sl@0
    82
//!				6. Close the driver handle
sl@0
    83
//! @SYMTestExpectedResults	KErrNone
sl@0
    84
//! @SYMTestType		CIT
sl@0
    85
//! @SYMCreationDate		6/5/2008
sl@0
    86
//! @SYMAuthor			Saravanakumar
sl@0
    87
//! @SYMTestStatus		Implemented
sl@0
    88
//! @SYMAPI			DMMCMediaChange::DoDoorOpen();
sl@0
    89
//!				DMMCMediaChange::DoDoorClosed()
sl@0
    90
//!				DMMCSocket::iDoorOpened()
sl@0
    91
	START_TEST_BLOCK	500	 		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.ini
sl@0
    92
		CREATE_OBJECT	MMCSDSession		mmcsdsession1
sl@0
    93
		CREATE_OBJECT	MMCSDMediaChange	mmcsdmediachange1
sl@0
    94
		COMMAND		mmcsdsession1		NewL
sl@0
    95
		COMMAND		mmcsdsession1		DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
sl@0
    96
		COMMAND		mmcsdmediachange1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
sl@0
    97
		COMMAND		mmcsdmediachange1	utilityPromptMessage	BASE-BSP-MMC-DRIVER-Message1-CMD0003
sl@0
    98
		COMMAND		mmcsdmediachange1	MediaState		BASE-BSP-MMC-DRIVER-MediaState-CMD0003
sl@0
    99
		COMMAND		mmcsdmediachange1	utilityPromptMessage	BASE-BSP-MMC-DRIVER-Message2-CMD0003
sl@0
   100
		COMMAND		mmcsdsession1		Close
sl@0
   101
		COMMAND		mmcsdmediachange1	~
sl@0
   102
		COMMAND		mmcsdsession1		~
sl@0
   103
	END_TEST_BLOCK
sl@0
   104
END_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0003
sl@0
   105
sl@0
   106
sl@0
   107
START_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0004
sl@0
   108
//! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MANUALMediaChange-0004
sl@0
   109
//! @SYMTestCaseDesc		Checks the Door State and Validate
sl@0
   110
//! @SYMTestPriority		high
sl@0
   111
//! @SYMTestActions		1. Open the Driver handle
sl@0
   112
//!				2. Checks the Current Door State.
sl@0
   113
//!				3. Display Door State.
sl@0
   114
//!				4. Test door opened?
sl@0
   115
//!				5. Validate Door States.
sl@0
   116
//!				6. Close the driver handle
sl@0
   117
//! @SYMTestExpectedResults	KErrNone
sl@0
   118
//! @SYMTestType		CIT
sl@0
   119
//! @SYMCreationDate		6/5/2008
sl@0
   120
//! @SYMAuthor			Saravanakumar
sl@0
   121
//! @SYMTestStatus		Implemented
sl@0
   122
//! @SYMAPI			DMMCMediaChange::ForceMediaChange();
sl@0
   123
//!				DMMCMediaChange::DoDoorClosed();
sl@0
   124
//!				DMMCMediaChange::DoDoorOpen();
sl@0
   125
	START_TEST_BLOCK	500			T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.ini
sl@0
   126
		CREATE_OBJECT	MMCSDSession		mmcsdsession1
sl@0
   127
		CREATE_OBJECT	MMCSDMediaChange	mmcsdmediachange1
sl@0
   128
		COMMAND		mmcsdsession1		NewL
sl@0
   129
		COMMAND		mmcsdsession1		DriverOpen		BASE-BSP-MMC-DRIVER-StackNumber
sl@0
   130
		COMMAND		mmcsdmediachange1	NewL			BASE-BSP-MMC-DRIVER-SessionWrapperName
sl@0
   131
		COMMAND		mmcsdmediachange1	utilityPromptMessage	BASE-BSP-MMC-DRIVER-Message1-CMD0004
sl@0
   132
		COMMAND		mmcsdmediachange1	MediaState		BASE-BSP-MMC-DRIVER-MediaState-CMD0004
sl@0
   133
		COMMAND		mmcsdmediachange1	ForceMediaChange
sl@0
   134
		COMMAND		mmcsdmediachange1	MediaState		BASE-BSP-MMC-DRIVER-ForcedMediaState-CMD0004
sl@0
   135
		COMMAND		mmcsdsession1		Close
sl@0
   136
		COMMAND		mmcsdmediachange1	~
sl@0
   137
		COMMAND		mmcsdsession1		~
sl@0
   138
	END_TEST_BLOCK
sl@0
   139
END_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0004
sl@0
   140
sl@0
   141
sl@0
   142
START_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0005
sl@0
   143
//! @SYMTestCaseID		BASE-BSP-MMC-DRIVER-MANUALMediaChange-0005
sl@0
   144
//! @SYMTestCaseDesc		UnLoad Logical Device Driver.
sl@0
   145
//! @SYMTestPriority		high
sl@0
   146
//! @SYMTestActions		Load D_MMCSDIF LDD Driver
sl@0
   147
//! @SYMTestExpectedResults	KErrNone
sl@0
   148
//! @SYMTestType		CIT
sl@0
   149
//! @SYMCreationDate		1/4/2008
sl@0
   150
//! @SYMAuthor			Saravanakumar
sl@0
   151
//! @SYMTestStatus		Implemented
sl@0
   152
//! @SYMAPI			User::FreeLogicalDevice(const TDesC {ref})
sl@0
   153
	START_TEST_BLOCK	100	 		T_mmcsd			\base\mmcsd\BASE-BSP-MMC-MEDIACHANGE-DRIVER-MANUAL.ini
sl@0
   154
		CREATE_OBJECT	MMCSDSession		mmcsdsession1
sl@0
   155
		COMMAND		mmcsdsession1		NewL
sl@0
   156
		COMMAND		mmcsdsession1		UnLoadDriver		BASE-BSP-MMC-DRIVER-LDDName-CMD0001
sl@0
   157
		COMMAND		mmcsdsession1		~
sl@0
   158
	END_TEST_BLOCK
sl@0
   159
END_TESTCASE			BASE-BSP-MMC-DRIVER-MANUALMediaChange-0005