fep/frontendprocessor/test/src/TFEP1TESTTARGET.CPP
branchRCL_3
changeset 20 ebd48d2de13c
parent 11 c8fb4cf7b3ae
child 21 ecbabf52600f
equal deleted inserted replaced
19:ac7e4d1d9209 20:ebd48d2de13c
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    16 // Send them to the dialog box for the FEP to intercept and to display on the editboxes of the target dialog box.
    16 // Send them to the dialog box for the FEP to intercept and to display on the editboxes of the target dialog box.
    17 // NOTE: This test is mostly automated as the result of the dialog boxes is checked. However, due to time constraints
    17 // NOTE: This test is mostly automated as the result of the dialog boxes is checked. However, due to time constraints
    18 // it has not been investigated a way to automate parts of it, particularly key combinations of 'shift+A', 'shift+B' or 'shift+S',
    18 // it has not been investigated a way to automate parts of it, particularly key combinations of 'shift+A', 'shift+B' or 'shift+S',
    19 // which still rely on a live creature checking that the output on the screen is correct (that creature may want to put a delay
    19 // which still rely on a live creature checking that the output on the screen is correct (that creature may want to put a delay
    20 // when sending messages to be able to see that message, otherwise it may be too fast for it/him/her).
    20 // when sending messages to be able to see that message, otherwise it may be too fast for it/him/her).
    21 // 
    21 //
    22 //
    22 //
    23 
    23 
    24 /**
    24 /**
    25  @file
    25  @file
    26  @test
    26  @test
    38 #include "TFEP1TESTTARGET.hrh"
    38 #include "TFEP1TESTTARGET.hrh"
    39 
    39 
    40 
    40 
    41 
    41 
    42 const TUid KUidTFep1 = { 0x102024D0 };
    42 const TUid KUidTFep1 = { 0x102024D0 };
       
    43 const TUid KUidTFep4 = { 0x1028716D };
    43 
    44 
    44 // String literal to represent the language-specific resource file path.
    45 // String literal to represent the language-specific resource file path.
    45 _LIT(KFep1TestTargetResourceFilePath, "z:\\system\\test\\fepbasetest\\tfep1testtarget.r01");
    46 _LIT(KFep1TestTargetResourceFilePath, "z:\\system\\test\\fepbasetest\\tfep1testtarget.r01");
    46 
    47 
    47 // global variables
    48 // global variables
    48 TBuf<16> gTextNormalEdwin;
    49 TBuf<16> gTextNormalEdwin;
    49 TBuf<16> gTextNormalNumEdwin;
    50 TBuf<16> gTextNormalNumEdwin;
    50 TBuf<16> gTextKatakanaEdwin;
    51 TBuf<16> gTextKatakanaEdwin;
    51 TBuf<32> gTextPhoneticalEdwin;
    52 TBuf<32> gTextPhoneticalEdwin;
       
    53 TBuf<32> gTextCJKEdwin;
    52 
    54 
    53 // expected results (according to FEP1 settings and the actions performed in the CFep1TestTargetUi::RunTestStepL method below)
    55 // expected results (according to FEP1 settings and the actions performed in the CFep1TestTargetUi::RunTestStepL method below)
    54 _LIT(KExpectedTextNormalEdwin, "ABCGHIJKLMQRST@");
    56 _LIT(KExpectedTextNormalEdwin, "ABCGHIJKLMQRST@");
    55 _LIT(KExpectedTextNormalNumEdwin, "1230056");
    57 _LIT(KExpectedTextNormalNumEdwin, "1230056");
    56 _LIT(KExpectedTextKatakanaEdwin, "EFG");
    58 _LIT(KExpectedTextKatakanaEdwin, "EFG");
    57 _LIT(KExpectedTextPhoneticalEdwin, "JulietteKiloLimaMNO");
    59 _LIT(KExpectedTextPhoneticalEdwin, "JulietteKiloLimaMNO");
       
    60 _LIT(KExpectedTextCJKEdwin, "!\x0411\x0E02\x2E81\x303A\x4E19\xAD00\xD840\xDC00\xD87E\xDC00 !\"#");
    58 
    61 
    59 
    62 
    60 /*************************************************************
    63 /*************************************************************
    61  **  
    64  **
    62  **  TTstResourceFileId - TCleanupItem derived class
    65  **  TTstResourceFileId - TCleanupItem derived class
    63  **  
    66  **
    64  *************************************************************/
    67  *************************************************************/
    65 /*
    68 /*
    66 	Encapsulates the clean up operations. The class unloads the resource file from the list maintained by CCoeEnv 
    69 	Encapsulates the clean up operations. The class unloads the resource file from the list maintained by CCoeEnv
    67 */
    70 */
    68 TTstResourceFileId::TTstResourceFileId(CCoeEnv& aConeEnvironment, TInt aResourceFileId)
    71 TTstResourceFileId::TTstResourceFileId(CCoeEnv& aConeEnvironment, TInt aResourceFileId)
    69 	:TCleanupItem(UnloadResourceFile, this),
    72 	:TCleanupItem(UnloadResourceFile, this),
    70 	 iConeEnvironment(aConeEnvironment),
    73 	 iConeEnvironment(aConeEnvironment),
    71 	 iResourceFileId(aResourceFileId)
    74 	 iResourceFileId(aResourceFileId)
    79 	}
    82 	}
    80 
    83 
    81 
    84 
    82 
    85 
    83 /*************************************************************
    86 /*************************************************************
    84  **  
    87  **
    85  **  CTstTestTargetDialog - CEikDialog derived class
    88  **  CTstTestTargetDialog - CEikDialog derived class
    86  **  
    89  **
    87  *************************************************************/
    90  *************************************************************/
    88 
    91 
    89 /**
    92 /**
    90   This fucntion is derived to perform the pre-layout dialog initialisation.\n
    93   This fucntion is derived to perform the pre-layout dialog initialisation.\n
    91   This is called by the dialog framework before the dialog is sized and laid out. \n
    94   This is called by the dialog framework before the dialog is sized and laid out. \n
    98 	inputCapabilities.SetCapabilities(TCoeInputCapabilities::EJapaneseKatakanaHalfWidth|TCoeInputCapabilities::ENavigation);
   101 	inputCapabilities.SetCapabilities(TCoeInputCapabilities::EJapaneseKatakanaHalfWidth|TCoeInputCapabilities::ENavigation);
    99 	halfWidthKatakanaEdwin.SetInputCapabilitiesL(inputCapabilities);
   102 	halfWidthKatakanaEdwin.SetInputCapabilitiesL(inputCapabilities);
   100 	CEikEdwin& phoneticAlphabetEdwin=*static_cast<CEikEdwin*>(Control(EControlIdPhoneticAlphabetEdwin));
   103 	CEikEdwin& phoneticAlphabetEdwin=*static_cast<CEikEdwin*>(Control(EControlIdPhoneticAlphabetEdwin));
   101 	inputCapabilities=phoneticAlphabetEdwin.InputCapabilities();
   104 	inputCapabilities=phoneticAlphabetEdwin.InputCapabilities();
   102 	phoneticAlphabetEdwin.SetInputCapabilitiesL(TCoeInputCapabilities(TCoeInputCapabilities::EWesternAlphabetic|TCoeInputCapabilities::ENavigation, inputCapabilities.FepAwareTextEditor(), inputCapabilities.CaptionRetrieverForFep(), TUid::Uid(KTfep1Uid), this));
   105 	phoneticAlphabetEdwin.SetInputCapabilitiesL(TCoeInputCapabilities(TCoeInputCapabilities::EWesternAlphabetic|TCoeInputCapabilities::ENavigation, inputCapabilities.FepAwareTextEditor(), inputCapabilities.CaptionRetrieverForFep(), TUid::Uid(KTfep1Uid), this));
       
   106 	CEikEdwin& cjkEdwin=*static_cast<CEikEdwin*>(Control(EControlIdCJKEdwin));
       
   107 	inputCapabilities=cjkEdwin.InputCapabilities();
       
   108 	inputCapabilities.SetCapabilities(TCoeInputCapabilities::EAllText|TCoeInputCapabilities::ENavigation);
       
   109 	cjkEdwin.SetInputCapabilitiesL(inputCapabilities);
   103 	}
   110 	}
   104 
   111 
   105 
   112 
   106 TBool CTstTestTargetDialog::OkToExitL(TInt /*aKeyCode*/)
   113 TBool CTstTestTargetDialog::OkToExitL(TInt /*aKeyCode*/)
   107 	{
   114 	{
   108     RDebug::Print(_L("**************************************************************"));
   115     RDebug::Print(_L("**************************************************************"));
   109     RDebug::Print(_L("****                OK or CANCEL key pressed                  "));
   116     RDebug::Print(_L("****                OK or CANCEL key pressed                  "));
   110     RDebug::Print(_L("**************************************************************\n"));
   117     RDebug::Print(_L("**************************************************************\n"));
   111     
   118 
   112 	// Get fields text values...
   119 	// Get fields text values...
   113 	CEikEdwin* edwinNormal = static_cast<CEikEdwin*>(Control(EControlIdNormalEdwin));
   120 	CEikEdwin* edwinNormal = static_cast<CEikEdwin*>(Control(EControlIdNormalEdwin));
   114 	edwinNormal->GetText(gTextNormalEdwin);
   121 	edwinNormal->GetText(gTextNormalEdwin);
   115 
   122 
   116 	CEikEdwin* edwinNormalNum = static_cast<CEikEdwin*>(Control(EControlIdNormalNumEdwin));
   123 	CEikEdwin* edwinNormalNum = static_cast<CEikEdwin*>(Control(EControlIdNormalNumEdwin));
   120 	edwinKatana->GetText(gTextKatakanaEdwin);
   127 	edwinKatana->GetText(gTextKatakanaEdwin);
   121 
   128 
   122 	CEikEdwin* edwinPhonetical = static_cast<CEikEdwin*>(Control(EControlIdPhoneticAlphabetEdwin));
   129 	CEikEdwin* edwinPhonetical = static_cast<CEikEdwin*>(Control(EControlIdPhoneticAlphabetEdwin));
   123 	edwinPhonetical->GetText(gTextPhoneticalEdwin);
   130 	edwinPhonetical->GetText(gTextPhoneticalEdwin);
   124 
   131 
       
   132 	CEikEdwin* edwinCJK = static_cast<CEikEdwin*>(Control(EControlIdCJKEdwin));
       
   133 	edwinCJK->GetText(gTextCJKEdwin);
       
   134 
   125 	//It's always ok to return OK in our case...
   135 	//It's always ok to return OK in our case...
   126 	return ETrue;
   136 	return ETrue;
   127 	}
   137 	}
   128 
   138 
   129 
   139 
   130 /**
   140 /**
   131    Flag TRUE for support of Phonetic alphabets 
   141    Flag TRUE for support of Phonetic alphabets
   132 */
   142 */
   133 TBool CTstTestTargetDialog::SupportsPhoneticAlphabet() const
   143 TBool CTstTestTargetDialog::SupportsPhoneticAlphabet() const
   134 	{
   144 	{
   135 	return ETrue;
   145 	return ETrue;
   136 	}
   146 	}
   137 
   147 
   138 
   148 
   139 
   149 
   140 
   150 
   141 /*************************************************************
   151 /*************************************************************
   142  **  
   152  **
   143  **  CFep1TestTargetUi
   153  **  CFep1TestTargetUi
   144  **  
   154  **
   145  *************************************************************/
   155  *************************************************************/
   146 
   156 
   147 CFep1TestTargetUi::CFep1TestTargetUi(CTmsTestStep* aStep) :
   157 CFep1TestTargetUi::CFep1TestTargetUi(CTmsTestStep* aStep) :
   148   	CTestAppUi(aStep, KNullDesC)
   158   	CTestAppUi(aStep, KNullDesC)
   149 	{
   159 	{
   152 CFep1TestTargetUi::~CFep1TestTargetUi()
   162 CFep1TestTargetUi::~CFep1TestTargetUi()
   153 	{
   163 	{
   154 	}
   164 	}
   155 
   165 
   156 /**
   166 /**
   157   Install the FEP.\n 
   167   Install the FEP.\n
   158   Set the windows server event as User defined.\n
   168   Set the windows server event as User defined.\n
   159   Connect the client session to widows server.\n 
   169   Connect the client session to widows server.\n
   160   Create the Client side handle \n
   170   Create the Client side handle \n
   161   Send the user events and close the session on completion\n
   171   Send the user events and close the session on completion\n
   162 */
   172 */
   163 void CFep1TestTargetUi::ConstructL()
   173 void CFep1TestTargetUi::ConstructL()
   164 	{
   174 	{
   165     RDebug::Print(_L("**************************************************************"));
   175     RDebug::Print(_L("**************************************************************"));
   166     RDebug::Print(_L("****           CFep1TestTargetUi::ConstructL                  "));
   176     RDebug::Print(_L("****           CFep1TestTargetUi::ConstructL                  "));
   167     RDebug::Print(_L("**************************************************************\n"));
   177     RDebug::Print(_L("**************************************************************\n"));
   168  
   178 
   169 	CTestAppUi::ConstructL();
   179 	CTestAppUi::ConstructL();
   170 
   180 
   171 	iCoeEnv->InstallFepL(KNullUid);
   181 	iCoeEnv->InstallFepL(KNullUid);
   172 	iCoeEnv->InstallFepL(KUidTFep1);
   182 	iCoeEnv->InstallFepL(KUidTFep1);
   173 
   183 
   194 
   204 
   195 void CFep1TestTargetUi::RunTestStepL(TInt aStep)
   205 void CFep1TestTargetUi::RunTestStepL(TInt aStep)
   196 	{
   206 	{
   197 	switch(aStep)
   207 	switch(aStep)
   198 		{
   208 		{
   199 		
   209 
   200 //----------------------------------------------------------------------------------------------
   210 //----------------------------------------------------------------------------------------------
   201 
   211 
   202 /**
   212 /**
   203    @SYMTestCaseID 		UIF-FEPTEST-0004
   213    @SYMTestCaseID 		UIF-FEPTEST-0004
   204    @SYMPREQ				0000
   214    @SYMPREQ				0000
   205    @SYMTestCaseDesc  	Offer key events to the dialog having the TFEP1 activated.
   215    @SYMTestCaseDesc  	Offer key events to the dialog having the TFEP1 activated.
   206    @SYMTestPriority 	High 
   216    @SYMTestPriority 	High
   207    @SYMTestStatus 		Implemented
   217    @SYMTestStatus 		Implemented
   208    @SYMTestActions 		Simulate key events sent to the dialog box, and do some actions with the fep,
   218    @SYMTestActions 		Simulate key events sent to the dialog box, and do some actions with the fep,
   209    						like commit, cancel and go back to add a 'missing' letter.
   219    						like commit, cancel and go back to add a 'missing' letter.
   210    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   220    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   211  */
   221  */
   218 			TUint code = 'A' + aStep - 1;
   228 			TUint code = 'A' + aStep - 1;
   219 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   229 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   220 			SendKey(code);
   230 			SendKey(code);
   221 			}
   231 			}
   222 			break;
   232 			break;
   223 			
   233 
   224 		case 4:
   234 		case 4:
   225 			{
   235 			{
   226 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'ABC'"));
   236 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'ABC'"));
   227 			SendKey(EKeyEnter);			
   237 			SendKey(EKeyEnter);
   228 			}
   238 			}
   229 			break;
   239 			break;
   230 
   240 
   231 		case 5: case 6: case 7: 
   241 		case 5: case 6: case 7:
   232 			{
   242 			{
   233 			TUint code = 'D' + aStep - 5;
   243 			TUint code = 'D' + aStep - 5;
   234 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   244 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   235 			SendKey(code);
   245 			SendKey(code);
   236 			}
   246 			}
   237 			break;
   247 			break;
   238 			
   248 
   239 		case 8:
   249 		case 8:
   240 			{
   250 			{
   241 			INFO_PRINTF1(_L("...simulate Key Event Escape ---> Cancels 'DEF'"));
   251 			INFO_PRINTF1(_L("...simulate Key Event Escape ---> Cancels 'DEF'"));
   242 			SendKey(EKeyEscape);			
   252 			SendKey(EKeyEscape);
   243 			}
   253 			}
   244 			break;
   254 			break;
   245 
   255 
   246 		case 9: case 10: case 11: 
   256 		case 9: case 10: case 11:
   247 			{
   257 			{
   248 			TUint code = 'H' + aStep - 9;
   258 			TUint code = 'H' + aStep - 9;
   249 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   259 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   250 			SendKey(code);
   260 			SendKey(code);
   251 			}
   261 			}
   252 			break;
   262 			break;
   253 			
   263 
   254 		case 12: case 13: case 14: case 15: case 16:
   264 		case 12: case 13: case 14: case 15: case 16:
   255 			{
   265 			{
   256 			INFO_PRINTF1(_L("...simulate Key Cursor Left --->  Go left 5 positions (should not go further than the previous 'H' however"));
   266 			INFO_PRINTF1(_L("...simulate Key Cursor Left --->  Go left 5 positions (should not go further than the previous 'H' however"));
   257 			SendKey(EKeyLeftArrow);			
   267 			SendKey(EKeyLeftArrow);
   258 			}
   268 			}
   259 			break;
   269 			break;
   260 
   270 
   261 		case 17:
   271 		case 17:
   262 			{
   272 			{
   267 			break;
   277 			break;
   268 
   278 
   269 		case 18:
   279 		case 18:
   270 			{
   280 			{
   271 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'GHIJ'"));
   281 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'GHIJ'"));
   272 			SendKey(EKeyEnter);			
   282 			SendKey(EKeyEnter);
   273 			}
   283 			}
   274 			break;
   284 			break;
   275 
   285 
   276 		case 19: case 20: case 21: case 22: case 23:
   286 		case 19: case 20: case 21: case 22: case 23:
   277 			{
   287 			{
   278 			INFO_PRINTF1(_L("...simulate Key Cursor Right --->  Go right few positions in case we were within inline editing fep mode"));
   288 			INFO_PRINTF1(_L("...simulate Key Cursor Right --->  Go right few positions in case we were within inline editing fep mode"));
   279 			SendKey(EKeyRightArrow);			
   289 			SendKey(EKeyRightArrow);
   280 			if(aStep == 23)
   290 			if(aStep == 23)
   281 				{
   291 				{
   282 				RecordTestResultL();
   292 				RecordTestResultL();
   283 				}
   293 				}
   284 			}
   294 			}
   289 
   299 
   290 /**
   300 /**
   291    @SYMTestCaseID 		UIF-FEPTEST-0005
   301    @SYMTestCaseID 		UIF-FEPTEST-0005
   292    @SYMPREQ				0000
   302    @SYMPREQ				0000
   293    @SYMTestCaseDesc  	Repeat the same as the other but changing mode (inline <--> non inline)
   303    @SYMTestCaseDesc  	Repeat the same as the other but changing mode (inline <--> non inline)
   294    @SYMTestPriority 	High 
   304    @SYMTestPriority 	High
   295    @SYMTestStatus 		Implemented
   305    @SYMTestStatus 		Implemented
   296    @SYMTestActions 		Simulate key events sent to the dialog box, and do some actions with the fep,
   306    @SYMTestActions 		Simulate key events sent to the dialog box, and do some actions with the fep,
   297    						like commit, cancel and go back to add a 'missing' letter.
   307    						like commit, cancel and go back to add a 'missing' letter.
   298    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   308    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   299  */
   309  */
   302 
   312 
   303 		case 51:
   313 		case 51:
   304 			{
   314 			{
   305 			SetTestStepID(_L("UIF-FEPTEST-0005"));
   315 			SetTestStepID(_L("UIF-FEPTEST-0005"));
   306 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + I' ---> Changes fep mode!"));
   316 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + I' ---> Changes fep mode!"));
   307 			SendKey('I', EModifierRightShift);			
   317 			SendKey('I', EModifierRightShift);
   308 			}
   318 			}
   309 			break;
   319 			break;
   310 
   320 
   311 		case 52: case 53: case 54: 
   321 		case 52: case 53: case 54:
   312 			{
   322 			{
   313 			TUint code = 'K' + aStep - 52;
   323 			TUint code = 'K' + aStep - 52;
   314 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   324 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   315 			SendKey(code);
   325 			SendKey(code);
   316 			}
   326 			}
   317 			break;
   327 			break;
   318 			
   328 
   319 		case 55:
   329 		case 55:
   320 			{
   330 			{
   321 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'KLM'"));			// Submit "KLM" ----> We should have "ABCGHIJKLM"
   331 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'KLM'"));			// Submit "KLM" ----> We should have "ABCGHIJKLM"
   322 			SendKey(EKeyEnter);			
   332 			SendKey(EKeyEnter);
   323 			}
   333 			}
   324 			break;
   334 			break;
   325 
   335 
   326 		case 56: case 57: case 58: 
   336 		case 56: case 57: case 58:
   327 			{
   337 			{
   328 			TUint code = 'N' + aStep - 56;
   338 			TUint code = 'N' + aStep - 56;
   329 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   339 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   330 			SendKey(code);
   340 			SendKey(code);
   331 			}
   341 			}
   332 			break;
   342 			break;
   333 			
   343 
   334 		case 59:
   344 		case 59:
   335 			{
   345 			{
   336 			INFO_PRINTF1(_L("...simulate Key Event Escape ---> Cancels 'NOP'"));
   346 			INFO_PRINTF1(_L("...simulate Key Event Escape ---> Cancels 'NOP'"));
   337 			SendKey(EKeyEscape);			
   347 			SendKey(EKeyEscape);
   338 			}
   348 			}
   339 			break;
   349 			break;
   340 
   350 
   341 		case 60: case 61: case 62: 
   351 		case 60: case 61: case 62:
   342 			{
   352 			{
   343 			TUint code = 'R' + aStep - 60;
   353 			TUint code = 'R' + aStep - 60;
   344 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   354 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   345 			SendKey(code);
   355 			SendKey(code);
   346 			}
   356 			}
   347 			break;
   357 			break;
   348 			
   358 
   349 		case 63: case 64: case 65: case 66: case 67:
   359 		case 63: case 64: case 65: case 66: case 67:
   350 			{
   360 			{
   351 			INFO_PRINTF1(_L("...simulate Key Cursor Left --->  Go left 5 positions (should not go further than the previous 'R' however"));
   361 			INFO_PRINTF1(_L("...simulate Key Cursor Left --->  Go left 5 positions (should not go further than the previous 'R' however"));
   352 			SendKey(EKeyLeftArrow);			
   362 			SendKey(EKeyLeftArrow);
   353 			}
   363 			}
   354 			break;
   364 			break;
   355 
   365 
   356 		case 68:
   366 		case 68:
   357 			{
   367 			{
   362 			break;
   372 			break;
   363 
   373 
   364 		case 69:
   374 		case 69:
   365 			{
   375 			{
   366 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'QRST'"));	// Submit "QRST" ----> We should have "ABCGHIJKLMQRST"
   376 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'QRST'"));	// Submit "QRST" ----> We should have "ABCGHIJKLMQRST"
   367 			SendKey(EKeyEnter);			
   377 			SendKey(EKeyEnter);
   368 			}
   378 			}
   369 			break;
   379 			break;
   370 
   380 
   371 		case 70: case 71: case 72: case 73: case 74:
   381 		case 70: case 71: case 72: case 73: case 74:
   372 			{
   382 			{
   373 			INFO_PRINTF1(_L("...simulate Key Cursor Right --->  Go right few positions in case we were within inline editing fep mode"));
   383 			INFO_PRINTF1(_L("...simulate Key Cursor Right --->  Go right few positions in case we were within inline editing fep mode"));
   374 			SendKey(EKeyRightArrow);			
   384 			SendKey(EKeyRightArrow);
   375 			if(aStep == 74)
   385 			if(aStep == 74)
   376 					{
   386 					{
   377 					RecordTestResultL();
   387 					RecordTestResultL();
   378 					}
   388 					}
   379 			}
   389 			}
   384 
   394 
   385 /**
   395 /**
   386    @SYMTestCaseID 		UIF-FEPTEST-0006
   396    @SYMTestCaseID 		UIF-FEPTEST-0006
   387    @SYMPREQ				0000
   397    @SYMPREQ				0000
   388    @SYMTestCaseDesc  	Test changing focus
   398    @SYMTestCaseDesc  	Test changing focus
   389    @SYMTestPriority 	High 
   399    @SYMTestPriority 	High
   390    @SYMTestStatus 		Implemented
   400    @SYMTestStatus 		Implemented
   391    @SYMTestActions 		Simulate key events to change focus of the Fep window and move the windows around.
   401    @SYMTestActions 		Simulate key events to change focus of the Fep window and move the windows around.
   392    						In addition, simulate the key event that sends the Fep window to the current dialog cursor.
   402    						In addition, simulate the key event that sends the Fep window to the current dialog cursor.
   393    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   403    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   394  */
   404  */
   397 
   407 
   398 		case 101:
   408 		case 101:
   399 			{
   409 			{
   400 			SetTestStepID(_L("UIF-FEPTEST-0006"));
   410 			SetTestStepID(_L("UIF-FEPTEST-0006"));
   401 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + N' ---> Moves the Fep window to dialog cursor!"));
   411 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + N' ---> Moves the Fep window to dialog cursor!"));
   402 			SendKey('N', EModifierRightShift);			
   412 			SendKey('N', EModifierRightShift);
   403 			}
   413 			}
   404 			break;
   414 			break;
   405 
   415 
   406 		case 102:
   416 		case 102:
   407 			{
   417 			{
   408 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + F' ---> Changes focus!"));
   418 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + F' ---> Changes focus!"));
   409 			SendKey('F', EModifierRightShift);			
   419 			SendKey('F', EModifierRightShift);
   410 			}
   420 			}
   411 			break;
   421 			break;
   412 
   422 
   413 		case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 115:
   423 		case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 115:
   414 			{
   424 			{
   415 			INFO_PRINTF1(_L("...send several cursor right events to move the window"));
   425 			INFO_PRINTF1(_L("...send several cursor right events to move the window"));
   416 			for (TInt ii=10; ii>0; --ii)
   426 			for (TInt ii=10; ii>0; --ii)
   417 				SendKey(EKeyRightArrow);			
   427 				SendKey(EKeyRightArrow);
   418 			}
   428 			}
   419 			break;
   429 			break;
   420 
   430 
   421 		case 116:
   431 		case 116:
   422 			{
   432 			{
   423 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Finishes moving the Fep window!"));
   433 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Finishes moving the Fep window!"));
   424 			SendKey(EKeyEnter);			
   434 			SendKey(EKeyEnter);
   425 			RecordTestResultL();
   435 			RecordTestResultL();
   426 			}
   436 			}
   427 			break;
   437 			break;
   428 
   438 
   429 
   439 
   431 
   441 
   432 /**
   442 /**
   433    @SYMTestCaseID 		UIF-FEPTEST-0007
   443    @SYMTestCaseID 		UIF-FEPTEST-0007
   434    @SYMPREQ				0000
   444    @SYMPREQ				0000
   435    @SYMTestCaseDesc  	Test TFEP1 in HEXadecimal mode
   445    @SYMTestCaseDesc  	Test TFEP1 in HEXadecimal mode
   436    @SYMTestPriority 	High 
   446    @SYMTestPriority 	High
   437    @SYMTestStatus 		Implemented
   447    @SYMTestStatus 		Implemented
   438    @SYMTestActions 		Change Fep to HEX mode by means of the corresponding key event.
   448    @SYMTestActions 		Change Fep to HEX mode by means of the corresponding key event.
   439    						Simulate that the combination of 0x0040 produces the symbol '@'
   449    						Simulate that the combination of 0x0040 produces the symbol '@'
   440    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   450    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   441  */
   451  */
   444 
   454 
   445 		case 151:
   455 		case 151:
   446 			{
   456 			{
   447 			SetTestStepID(_L("UIF-FEPTEST-0007"));
   457 			SetTestStepID(_L("UIF-FEPTEST-0007"));
   448 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + M' ---> Changes to hex fep!"));
   458 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + M' ---> Changes to hex fep!"));
   449 			SendKey('M', EModifierRightShift);			
   459 			SendKey('M', EModifierRightShift);
   450 			}
   460 			}
   451 			break;
   461 			break;
   452 
   462 
   453 		case 153:
   463 		case 153:
   454 			{
   464 			{
   483 			break;
   493 			break;
   484 
   494 
   485 		case 157:
   495 		case 157:
   486 			{
   496 			{
   487 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits '0040' ==> At symbol (@)"));
   497 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits '0040' ==> At symbol (@)"));
   488 			SendKey(EKeyEnter);			
   498 			SendKey(EKeyEnter);
   489 			}
   499 			}
   490 			break;
   500 			break;
   491 
   501 
   492 		case 158:
   502 		case 158:
   493 			{
   503 			{
   494 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + M' ---> Changes back to normal fep!"));
   504 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + M' ---> Changes back to normal fep!"));
   495 			SendKey('M', EModifierRightShift);
   505 			SendKey('M', EModifierRightShift);
   496 			
   506 
   497 		    RDebug::Print(_L("**************************************************************"));
   507 		    RDebug::Print(_L("**************************************************************"));
   498 		    RDebug::Print(_L("****           UIF-FEPTEST-0007 Finished                      "));
   508 		    RDebug::Print(_L("****           UIF-FEPTEST-0007 Finished                      "));
   499 		    RDebug::Print(_L("**************************************************************\n"));
   509 		    RDebug::Print(_L("**************************************************************\n"));
   500 
   510 
   501 			RecordTestResultL();
   511 			RecordTestResultL();
   507 
   517 
   508 /**
   518 /**
   509    @SYMTestCaseID 		UIF-FEPTEST-0008
   519    @SYMTestCaseID 		UIF-FEPTEST-0008
   510    @SYMPREQ				0000
   520    @SYMPREQ				0000
   511    @SYMTestCaseDesc  	Text selection within a dialog box editor.
   521    @SYMTestCaseDesc  	Text selection within a dialog box editor.
   512    @SYMTestPriority 	High 
   522    @SYMTestPriority 	High
   513    @SYMTestStatus 		Implemented
   523    @SYMTestStatus 		Implemented
   514    @SYMTestActions 		To test this functionality we simulate a key event to go to the next dialog
   524    @SYMTestActions 		To test this functionality we simulate a key event to go to the next dialog
   515    						field (cursor down). Once in there, some numerical key events are sent to the
   525    						field (cursor down). Once in there, some numerical key events are sent to the
   516    						application.
   526    						application.
   517    						The selection of uncommited text and replacing it for new characters is also tested.
   527    						The selection of uncommited text and replacing it for new characters is also tested.
   526 
   536 
   527 		case 201:
   537 		case 201:
   528 			{
   538 			{
   529 			SetTestStepID(_L("UIF-FEPTEST-0008"));
   539 			SetTestStepID(_L("UIF-FEPTEST-0008"));
   530 			INFO_PRINTF1(_L("Send cursor down events to move the next dialog"));
   540 			INFO_PRINTF1(_L("Send cursor down events to move the next dialog"));
   531 			SendKey(EKeyDownArrow);			
   541 			SendKey(EKeyDownArrow);
   532 			}
   542 			}
   533 			break;
   543 			break;
   534 
   544 
   535 		case 202: case 203: case 204:
   545 		case 202: case 203: case 204:
   536 			{
   546 			{
   541 			break;
   551 			break;
   542 
   552 
   543 		case 205:
   553 		case 205:
   544 			{
   554 			{
   545 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + W' ---> Change cursor type in case of inline editing!"));
   555 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + W' ---> Change cursor type in case of inline editing!"));
   546 			SendKey('W', EModifierRightShift);			
   556 			SendKey('W', EModifierRightShift);
   547 			}
   557 			}
   548 			break;
   558 			break;
   549 			
   559 
   550 		case 206: case 207: case 208: 
   560 		case 206: case 207: case 208:
   551 			{
   561 			{
   552 			INFO_PRINTF1(_L("...simulate Key Cursor 'shift + Left' --->  Selects non-submitted text"));
   562 			INFO_PRINTF1(_L("...simulate Key Cursor 'shift + Left' --->  Selects non-submitted text"));
   553 			SendKey(EKeyLeftArrow, EModifierLeftShift|EModifierShift);
   563 			SendKey(EKeyLeftArrow, EModifierLeftShift|EModifierShift);
   554 			}
   564 			}
   555 			break;
   565 			break;
   563 			break;
   573 			break;
   564 
   574 
   565 		case 212:
   575 		case 212:
   566 			{
   576 			{
   567 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits '123'"));
   577 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits '123'"));
   568 			SendKey(EKeyEnter);			
   578 			SendKey(EKeyEnter);
   569 			}
   579 			}
   570 			break;
   580 			break;
   571 
   581 
   572 		case 213:
   582 		case 213:
   573 			{
   583 			{
   574 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + I' ---> Changes fep mode!"));
   584 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + I' ---> Changes fep mode!"));
   575 			SendKey('I', EModifierRightShift);			
   585 			SendKey('I', EModifierRightShift);
   576 			}
   586 			}
   577 			break;
   587 			break;
   578 
   588 
   579 		case 214: case 215: case 216:
   589 		case 214: case 215: case 216:
   580 			{
   590 			{
   585 			break;
   595 			break;
   586 
   596 
   587 		case 217:
   597 		case 217:
   588 			{
   598 			{
   589 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + W' ---> Change cursor type in case of inline editing!"));
   599 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + W' ---> Change cursor type in case of inline editing!"));
   590 			SendKey('W', EModifierRightShift);			
   600 			SendKey('W', EModifierRightShift);
   591 			}
   601 			}
   592 			break;
   602 			break;
   593 			
   603 
   594 		case 218: case 219: case 220: 
   604 		case 218: case 219: case 220:
   595 			{
   605 			{
   596 			INFO_PRINTF1(_L("...simulate Key Cursor 'shift + Right' --->  Selects non-submitted text"));
   606 			INFO_PRINTF1(_L("...simulate Key Cursor 'shift + Right' --->  Selects non-submitted text"));
   597 			SendKey(EKeyLeftArrow, EModifierLeftShift|EModifierShift);
   607 			SendKey(EKeyLeftArrow, EModifierLeftShift|EModifierShift);
   598 			}
   608 			}
   599 			break;
   609 			break;
   607 			break;
   617 			break;
   608 
   618 
   609 		case 224:
   619 		case 224:
   610 			{
   620 			{
   611 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits '456'"));
   621 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits '456'"));
   612 			SendKey(EKeyEnter);			
   622 			SendKey(EKeyEnter);
   613 			}
   623 			}
   614 			break;
   624 			break;
   615 
   625 
   616 		case 225: case 226: case 227:
   626 		case 225: case 226: case 227:
   617 			{
   627 			{
   618 			INFO_PRINTF1(_L("...simulate Key Cursor Left --->  Go left 3 positions (we should be between digits 3 and 4!"));
   628 			INFO_PRINTF1(_L("...simulate Key Cursor Left --->  Go left 3 positions (we should be between digits 3 and 4!"));
   619 			SendKey(EKeyLeftArrow);			
   629 			SendKey(EKeyLeftArrow);
   620 			}
   630 			}
   621 			break;
   631 			break;
   622 
   632 
   623 		case 228:
   633 		case 228:
   624 			{
   634 			{
   628 			break;
   638 			break;
   629 
   639 
   630 		case 229:
   640 		case 229:
   631 			{
   641 			{
   632 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + A' ---> Tells about what's AFTER the selected 4!"));	// Should be 56
   642 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + A' ---> Tells about what's AFTER the selected 4!"));	// Should be 56
   633 			SendKey('A', EModifierRightShift);			
   643 			SendKey('A', EModifierRightShift);
   634 			}
   644 			}
   635 			break;
   645 			break;
   636 			
   646 
   637 		case 230:
   647 		case 230:
   638 			{
   648 			{
   639 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + S' ---> Tells about what's SELECTED!"));	// Should be 4
   649 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + S' ---> Tells about what's SELECTED!"));	// Should be 4
   640 			SendKey('S', EModifierRightShift);			
   650 			SendKey('S', EModifierRightShift);
   641 			}
   651 			}
   642 			break;
   652 			break;
   643 			
   653 
   644 		case 231:
   654 		case 231:
   645 			{
   655 			{
   646 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + B' ---> Tells about what's BEFORE the selected 4!"));	// Should be 123
   656 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + B' ---> Tells about what's BEFORE the selected 4!"));	// Should be 123
   647 			SendKey('B', EModifierRightShift);			
   657 			SendKey('B', EModifierRightShift);
   648 			}
   658 			}
   649 			break;
   659 			break;
   650 
   660 
   651 		case 232: case 233:
   661 		case 232: case 233:
   652 			{
   662 			{
   658 
   668 
   659 		case 234:
   669 		case 234:
   660 			{
   670 			{
   661 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits '00'"));						// We should have 1230056
   671 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits '00'"));						// We should have 1230056
   662 			SendKey(EKeyEnter);
   672 			SendKey(EKeyEnter);
   663 			
       
   664 			
       
   665 			RecordTestResultL();
   673 			RecordTestResultL();
   666 			}
   674 			}
   667 			break;
   675 			break;
   668 
   676 
   669 
   677 
   672 
   680 
   673 /**
   681 /**
   674    @SYMTestCaseID 		UIF-FEPTEST-0009
   682    @SYMTestCaseID 		UIF-FEPTEST-0009
   675    @SYMPREQ				0000
   683    @SYMPREQ				0000
   676    @SYMTestCaseDesc  	Fep state within a dialog box editor.
   684    @SYMTestCaseDesc  	Fep state within a dialog box editor.
   677    @SYMTestPriority 	High 
   685    @SYMTestPriority 	High
   678    @SYMTestStatus 		Implemented
   686    @SYMTestStatus 		Implemented
   679    @SYMTestActions 		To test this functionality we simulate a key event to go to change the state
   687    @SYMTestActions 		To test this functionality we simulate a key event to go to change the state
   680    						variable (in TFEP1 case it's just a counter), repeating the same event few times.
   688    						variable (in TFEP1 case it's just a counter), repeating the same event few times.
   681    						he next dialog.
   689    						he next dialog.
   682    						Move to the next text editor box and go back to the previous one. State is maintained 
   690    						Move to the next text editor box and go back to the previous one. State is maintained
   683    @SYMTestExpectedResults 	The state is maintained even though we move across to other text editor boxes (partly manual)
   691    @SYMTestExpectedResults 	The state is maintained even though we move across to other text editor boxes (partly manual)
   684  */
   692  */
   685 
   693 
   686 //----------------------------------------------------------------------------------------------
   694 //----------------------------------------------------------------------------------------------
   687 		case 251:
   695 		case 251:
   688 			SetTestStepID(_L("UIF-FEPTEST-0009"));
   696 			SetTestStepID(_L("UIF-FEPTEST-0009"));
   689 
   697 
   690 		case 252: case 253: case 254: case 255:
   698 		case 252: case 253: case 254: case 255:
   691 			{
   699 			{
   692 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + T' ---> Changes State variable!"));
   700 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + T' ---> Changes State variable!"));
   693 			SendKey('T', EModifierRightShift);			
   701 			SendKey('T', EModifierRightShift);
   694 			}
   702 			}
   695 			break;
   703 			break;
   696 
   704 
   697 		case 256:
   705 		case 256:
   698 			{
   706 			{
   699 			INFO_PRINTF1(_L("Send cursor up events to move the next dialog"));
   707 			INFO_PRINTF1(_L("Send cursor up events to move the next dialog"));
   700 			SendKey(EKeyUpArrow);			
   708 			SendKey(EKeyUpArrow);
   701 			}
   709 			}
   702 			break;
   710 			break;
   703 
   711 
   704 		case 257:
   712 		case 257:
   705 			{
   713 			{
   706 			INFO_PRINTF1(_L("Send cursor down events to move the next dialog"));
   714 			INFO_PRINTF1(_L("Send cursor down events to move the next dialog"));
   707 			SendKey(EKeyDownArrow);			
   715 			SendKey(EKeyDownArrow);
   708 			}
   716 			}
   709 			break;
   717 			break;
   710 
   718 
   711 		case 258: case 259: case 260: case 261: case 262:
   719 		case 258: case 259: case 260: case 261: case 262:
   712 			{
   720 			{
   713 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + T' ---> Changes State variable!"));
   721 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + T' ---> Changes State variable!"));
   714 			SendKey('T', EModifierRightShift);			
   722 			SendKey('T', EModifierRightShift);
   715 			if(aStep == 262)
   723 			if(aStep == 262)
   716 				{
   724 				{
   717                 RDebug::Print(_L("**************************************************************"));
   725                 RDebug::Print(_L("**************************************************************"));
   718                 RDebug::Print(_L("****           UIF-FEPTEST-0009 Finished                      "));
   726                 RDebug::Print(_L("****           UIF-FEPTEST-0009 Finished                      "));
   719                 RDebug::Print(_L("**************************************************************\n"));
   727                 RDebug::Print(_L("**************************************************************\n"));
   728 
   736 
   729 /**
   737 /**
   730    @SYMTestCaseID 		UIF-FEPTEST-0010
   738    @SYMTestCaseID 		UIF-FEPTEST-0010
   731    @SYMPREQ				0000
   739    @SYMPREQ				0000
   732    @SYMTestCaseDesc  	Kata-kata dialog box editor.
   740    @SYMTestCaseDesc  	Kata-kata dialog box editor.
   733    @SYMTestPriority 	High 
   741    @SYMTestPriority 	High
   734    @SYMTestStatus 		Implemented
   742    @SYMTestStatus 		Implemented
   735    @SYMTestActions 		To test this functionality we simulate a key event to go to next dialog box 
   743    @SYMTestActions 		To test this functionality we simulate a key event to go to next dialog box
   736    						editor (Katakana dialog box). Simulate some characters and check that 
   744    						editor (Katakana dialog box). Simulate some characters and check that
   737    						they appear on the box accordingly.
   745    						they appear on the box accordingly.
   738    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   746    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   739  */
   747  */
   740 
   748 
   741 //----------------------------------------------------------------------------------------------
   749 //----------------------------------------------------------------------------------------------
   742 
   750 
   743 		case 351:
   751 		case 351:
   744 			{
   752 			{
   745 			SetTestStepID(_L("UIF-FEPTEST-0010"));
   753 			SetTestStepID(_L("UIF-FEPTEST-0010"));
   746 			INFO_PRINTF1(_L("Send cursor down events to move the next dialog"));
   754 			INFO_PRINTF1(_L("Send cursor down events to move the next dialog"));
   747 			SendKey(EKeyDownArrow);			
   755 			SendKey(EKeyDownArrow);
   748 			}
   756 			}
   749 			break;
   757 			break;
   750 
   758 
   751 		case 352: case 353: case 354:  
   759 		case 352: case 353: case 354:
   752 			{
   760 			{
   753 			SetTestStepID(_L("UIF-FEPTEST-0010"));
   761 			SetTestStepID(_L("UIF-FEPTEST-0010"));
   754 			TUint code = 'E' + aStep - 352;
   762 			TUint code = 'E' + aStep - 352;
   755 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   763 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   756 			SendKey(code);
   764 			SendKey(code);
   766 
   774 
   767 /**
   775 /**
   768    @SYMTestCaseID 		UIF-FEPTEST-0011
   776    @SYMTestCaseID 		UIF-FEPTEST-0011
   769    @SYMPREQ				0000
   777    @SYMPREQ				0000
   770    @SYMTestCaseDesc  	Phoneticall dialog box editor.
   778    @SYMTestCaseDesc  	Phoneticall dialog box editor.
   771    @SYMTestPriority 	High 
   779    @SYMTestPriority 	High
   772    @SYMTestStatus 		Implemented
   780    @SYMTestStatus 		Implemented
   773    @SYMTestActions 		To test this functionality we simulate a key event to go to next dialog box 
   781    @SYMTestActions 		To test this functionality we simulate a key event to go to next dialog box
   774    						editor (Phoneticall dialog box). Simulate some characters and check that 
   782    						editor (Phoneticall dialog box). Simulate some characters and check that
   775    						they appear on the box accordingly, i.e, converting single characters to those
   783    						they appear on the box accordingly, i.e, converting single characters to those
   776    						in the phoneticall alphabet (A-->Alpha, B-->Bravo...)
   784    						in the phoneticall alphabet (A-->Alpha, B-->Bravo...)
   777    						In addition, uninstall the Fep and write more characters, so they are not 
   785    						In addition, uninstall the Fep and write more characters, so they are not
   778    						phonetically 'translated' by the Fep. 		
   786    						phonetically 'translated' by the Fep.
   779    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   787    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
   780  */
   788  */
   781 
   789 
   782 //----------------------------------------------------------------------------------------------
   790 //----------------------------------------------------------------------------------------------
   783 
   791 
   784 		case 451:
   792 		case 451:
   785 			{
   793 			{
   786 			SetTestStepID(_L("UIF-FEPTEST-0011"));
   794 			SetTestStepID(_L("UIF-FEPTEST-0011"));
   787 			INFO_PRINTF1(_L("Send cursor down events to move the next dialog"));
   795 			INFO_PRINTF1(_L("Send cursor down events to move the next dialog"));
   788 			SendKey(EKeyDownArrow);			
   796 			SendKey(EKeyDownArrow);
   789 			}
   797 			}
   790 			break;
   798 			break;
   791 
   799 
   792 		case 452: case 453: case 454:  
   800 		case 452: case 453: case 454:
   793 			{
   801 			{
   794 			TUint code = 'J' + aStep - 452;
   802 			TUint code = 'J' + aStep - 452;
   795 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   803 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   796 			SendKey(code);
   804 			SendKey(code);
   797 			}
   805 			}
   798 			break;
   806 			break;
   799 			
   807 
   800 		case 455:
   808 		case 455:
   801 			{
   809 			{
   802 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'JulietteKiloLima'"));
   810 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'JulietteKiloLima'"));
   803 			SendKey(EKeyEnter);			
   811 			SendKey(EKeyEnter);
   804 			}
   812 			}
   805 			break;
   813 			break;
   806 
   814 
   807 		case 456:
   815 		case 456:
   808 			{
   816 			{
   817 			TUint code = 'M' + aStep - 457;
   825 			TUint code = 'M' + aStep - 457;
   818 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   826 			INFO_PRINTF2(_L("...simulate Key Event '%d'"), code);
   819 			SendKey(code);
   827 			SendKey(code);
   820 			}
   828 			}
   821 			break;
   829 			break;
   822 			
   830 
   823 		case 460:
   831 		case 460:
   824 			{
   832 			{
   825 			INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'MNO' (not Fep installed --> No Alphabetical!"));
   833 			//INFO_PRINTF1(_L("...simulate Key Event Enter ---> Submits 'MNO' (not Fep installed --> No Alphabetical!"));
   826 			SendKey(EKeyEnter);
   834 			//SendKey(EKeyEnter);
   827 			
   835 
   828 		    RDebug::Print(_L("**************************************************************"));
   836 		    RDebug::Print(_L("**************************************************************"));
   829 		    RDebug::Print(_L("****           UIF-FEPTEST-0011 Finished                      "));
   837 		    RDebug::Print(_L("****           UIF-FEPTEST-0011 Finished                      "));
   830 		    RDebug::Print(_L("**************************************************************\n"));
   838 		    RDebug::Print(_L("**************************************************************\n"));
   831 
   839 
   832 			RecordTestResultL();
   840 			RecordTestResultL();
   833 			}
   841 			}
   834 			break;
   842 			break;
   835 
   843 
       
   844 //----------------------------------------------------------------------------------------------
       
   845 
       
   846 /**
       
   847    @SYMTestCaseID 		TI18N-FEPBASE-CIT-4001
       
   848    @SYMPREQ				2471
       
   849    @SYMTestCaseDesc  	Check FEPBASE Unicode 5.0 support.
       
   850    @SYMTestPriority 	High
       
   851    @SYMTestStatus 		Implemented
       
   852    @SYMTestActions 		1. Pass BMP code points to WORD.exe
       
   853                         2. Pass non-BMP code points to WORD.exe
       
   854 
       
   855    @SYMTestExpectedResults 	When the dialog is dismissed, the text box reads as is expected.
       
   856  */
       
   857 
       
   858 //----------------------------------------------------------------------------------------------
       
   859 
       
   860 		case 461:
       
   861 			{
       
   862 			SetTestStepID(_L("TI18N-FEPBASE-CIT-4001"));
       
   863 			INFO_PRINTF1(_L("Send cursor down events to move the next dialog"));
       
   864 			SendKey(EKeyDownArrow);
       
   865 			// FEP 1 is already tested in above test cases.
       
   866 			// Now install test FEP 4 to test UTF-16 support.
       
   867 			INFO_PRINTF1(_L("Install the FEP 4"));
       
   868 			iCoeEnv->InstallFepL(KUidTFep4);
       
   869 			User::After(TTimeIntervalMicroSeconds32(2000000));
       
   870 			}
       
   871 			break;
       
   872 		case 462:
       
   873 			{
       
   874 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + M' ---> Changes to hex fep!"));
       
   875 			SendKey('M', EModifierRightShift);
       
   876 			TUint codes[] = {'0', '0', '0', '2', '1'};	// FEP 4 supports UTF-16, and need 5 digits for one Unicode value
       
   877 			for (int i = 0; i < sizeof(codes)/sizeof(TUint); i++)
       
   878 				{
       
   879 				INFO_PRINTF2(_L("...simulate Key Event '%d'"), codes[i]);
       
   880 				SendKey(codes[i]);
       
   881 				}
       
   882 			INFO_PRINTF1(_L("...simulate Key Event Enter"));
       
   883 			SendKey(EKeyEnter);
       
   884 			}
       
   885 			break;
       
   886 		case 463:
       
   887 			{
       
   888 			TUint codes[] = {'0', '0', '4', '1', '1'};	// FEP 4 supports UTF-16, and need 5 digit for one Unicode value
       
   889 			for (int i = 0; i < sizeof(codes)/sizeof(TUint); i++)
       
   890 				{
       
   891 				INFO_PRINTF2(_L("...simulate Key Event '%d'"), codes[i]);
       
   892 				SendKey(codes[i]);
       
   893 				}
       
   894 			INFO_PRINTF1(_L("...simulate Key Event Enter"));
       
   895 			SendKey(EKeyEnter);
       
   896 			}
       
   897 			break;
       
   898 		case 464:
       
   899 			{
       
   900 			TUint codes[] = {'0', '0', 'E', '0', '2'};	// FEP 4 supports UTF-16, and need 5 digit for one Unicode value
       
   901 			for (int i = 0; i < sizeof(codes)/sizeof(TUint); i++)
       
   902 				{
       
   903 				INFO_PRINTF2(_L("...simulate Key Event '%d'"), codes[i]);
       
   904 				SendKey(codes[i]);
       
   905 				}
       
   906 			INFO_PRINTF1(_L("...simulate Key Event Enter"));
       
   907 			SendKey(EKeyEnter);
       
   908 			}
       
   909 			break;
       
   910 		case 465:
       
   911 			{
       
   912 			TUint codes[] = {'0', '2', 'E', '8', '1'};	// FEP 4 supports UTF-16, and need 5 digit for one Unicode value
       
   913 			for (int i = 0; i < sizeof(codes)/sizeof(TUint); i++)
       
   914 				{
       
   915 				INFO_PRINTF2(_L("...simulate Key Event '%d'"), codes[i]);
       
   916 				SendKey(codes[i]);
       
   917 				}
       
   918 			INFO_PRINTF1(_L("...simulate Key Event Enter"));
       
   919 			SendKey(EKeyEnter);
       
   920 			}
       
   921 			break;
       
   922 		case 466:
       
   923 			{
       
   924 			TUint codes[] = {'0', '3', '0', '3', 'A'};	// FEP 4 supports UTF-16, and need 5 digit for one Unicode value
       
   925 			for (int i = 0; i < sizeof(codes)/sizeof(TUint); i++)
       
   926 				{
       
   927 				INFO_PRINTF2(_L("...simulate Key Event '%d'"), codes[i]);
       
   928 				SendKey(codes[i]);
       
   929 				}
       
   930 			INFO_PRINTF1(_L("...simulate Key Event Enter"));
       
   931 			SendKey(EKeyEnter);
       
   932 			}
       
   933 			break;
       
   934 		case 467:
       
   935 			{
       
   936 			TUint codes[] = {'0', '4', 'E', '1', '9'};	// FEP 4 supports UTF-16, and need 5 digit for one Unicode value
       
   937 			for (int i = 0; i < sizeof(codes)/sizeof(TUint); i++)
       
   938 				{
       
   939 				INFO_PRINTF2(_L("...simulate Key Event '%d'"), codes[i]);
       
   940 				SendKey(codes[i]);
       
   941 				}
       
   942 			INFO_PRINTF1(_L("...simulate Key Event Enter"));
       
   943 			SendKey(EKeyEnter);
       
   944 			}
       
   945 			break;
       
   946 		case 468:
       
   947 			{
       
   948 			TUint codes[] = {'0', 'A', 'D', '0', '0'};	// FEP 4 supports UTF-16, and need 5 digit for one Unicode value
       
   949 			for (int i = 0; i < sizeof(codes)/sizeof(TUint); i++)
       
   950 				{
       
   951 				INFO_PRINTF2(_L("...simulate Key Event '%d'"), codes[i]);
       
   952 				SendKey(codes[i]);
       
   953 				}
       
   954 			INFO_PRINTF1(_L("...simulate Key Event Enter"));
       
   955 			SendKey(EKeyEnter);
       
   956 			}
       
   957 			break;
       
   958 		case 469:
       
   959 			{
       
   960 			TUint codes[] = {'2', '0', '0', '0', '0'};
       
   961 			for (int i = 0; i < sizeof(codes)/sizeof(TUint); i++)
       
   962 				{
       
   963 				INFO_PRINTF2(_L("...simulate Key Event '%d'"), codes[i]);
       
   964 				SendKey(codes[i]);
       
   965 				}
       
   966 			INFO_PRINTF1(_L("...simulate Key Event Enter"));
       
   967 			SendKey(EKeyEnter);
       
   968 			}
       
   969 			break;
       
   970 		case 470:
       
   971 			{
       
   972 			TUint codes[] =  {'2', 'F', '8', '0', '0'};
       
   973 			for (int i = 0; i < sizeof(codes)/sizeof(TUint); i++)
       
   974 				{
       
   975 				INFO_PRINTF2(_L("...simulate Key Event '%d'"), codes[i]);
       
   976 				SendKey(codes[i]);
       
   977 				}
       
   978 			INFO_PRINTF1(_L("...simulate Key Event Enter"));
       
   979 			SendKey(EKeyEnter);
       
   980 			}
       
   981 			break;
       
   982 		case 471:
       
   983 			{
       
   984 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + X' ---> test SimulateKeyEventsL!"));
       
   985 			SendKey('X', EModifierRightShift);
       
   986 			User::After(TTimeIntervalMicroSeconds32(2000000));
       
   987 			INFO_PRINTF1(_L("...simulate Key Event 'Shift + M' ---> Changes to Pinyin!"));
       
   988 			SendKey('M', EModifierRightShift);
       
   989 			User::After(TTimeIntervalMicroSeconds32(2000000));
       
   990 			}
       
   991 			break;
       
   992 		case 472:
       
   993 			{
       
   994 			INFO_PRINTF1(_L("Uninstall the FEP 4"));
       
   995 			iCoeEnv->InstallFepL(KNullUid);
       
   996 			User::After(TTimeIntervalMicroSeconds32(2000000));
       
   997 			SendKey(EKeyEnter);
       
   998 
       
   999 			RDebug::Print(_L("**************************************************************"));
       
  1000 			RDebug::Print(_L("****           TI18N-FEPBASE-CIT-4001 Finished                      "));
       
  1001 			RDebug::Print(_L("**************************************************************\n"));
       
  1002 
       
  1003 			RecordTestResultL();
       
  1004 			}
       
  1005 			break;
   836 
  1006 
   837 //----------------------------------------------------------------------------------------------
  1007 //----------------------------------------------------------------------------------------------
   838 
  1008 
   839 /**
  1009 /**
   840    @SYMTestCaseID 		UIF-FEPTEST-0012
  1010    @SYMTestCaseID 		UIF-FEPTEST-0012
   841    @SYMPREQ				0000
  1011    @SYMPREQ				0000
   842    @SYMTestCaseDesc  	Dismiss dialog.
  1012    @SYMTestCaseDesc  	Dismiss dialog.
   843    @SYMTestPriority 	High 
  1013    @SYMTestPriority 	High
   844    @SYMTestStatus 		Implemented
  1014    @SYMTestStatus 		Implemented
   845    @SYMTestActions 		To test this functionality we simulate a key event to dismiss the dialog.
  1015    @SYMTestActions 		To test this functionality we simulate a key event to dismiss the dialog.
   846    						When the dialog is closed, CTstTestTargetDialog::OkToExitL() is called and 
  1016    						When the dialog is closed, CTstTestTargetDialog::OkToExitL() is called and
   847    						general variables are set with the values from the dialog text editors.
  1017    						general variables are set with the values from the dialog text editors.
   848    @SYMTestExpectedResults 	All global variables read as expected.
  1018    @SYMTestExpectedResults 	All global variables read as expected.
   849  */
  1019  */
   850 
  1020 
   851 //----------------------------------------------------------------------------------------------
  1021 //----------------------------------------------------------------------------------------------
   853 		case 501:
  1023 		case 501:
   854 			{
  1024 			{
   855 			SetTestStepID(_L("UIF-FEPTEST-0012"));
  1025 			SetTestStepID(_L("UIF-FEPTEST-0012"));
   856 			INFO_PRINTF1(_L("Ssimulate Key Enter Event to dismiss the dialog"));
  1026 			INFO_PRINTF1(_L("Ssimulate Key Enter Event to dismiss the dialog"));
   857 			AutoTestManager().Cancel();
  1027 			AutoTestManager().Cancel();
   858 			SendKey(EKeyEnter);			
  1028 			SendKey(EKeyEnter);
   859 			}
  1029 			}
   860 			break;
  1030 			break;
   861 			
  1031 
   862 		case 502:
  1032 		case 502:
   863 			{
  1033 			{
   864 			INFO_PRINTF1(_L("Wait for 2 seconds..."));
  1034 			INFO_PRINTF1(_L("Wait for 2 seconds..."));
   865 			User::After(TTimeIntervalMicroSeconds32(2000000));
  1035 			User::After(TTimeIntervalMicroSeconds32(2000000));
   866 			}
  1036 			}
   875 			INFO_PRINTF1(_L("Checking dialog values..."));
  1045 			INFO_PRINTF1(_L("Checking dialog values..."));
   876 			INFO_PRINTF3(_L("gTextNormalEdwin was '%S' (expected '%S')"), &gTextNormalEdwin, &KExpectedTextNormalEdwin);
  1046 			INFO_PRINTF3(_L("gTextNormalEdwin was '%S' (expected '%S')"), &gTextNormalEdwin, &KExpectedTextNormalEdwin);
   877 			INFO_PRINTF3(_L("gTextNormalNumEdwin was '%S' (expected '%S')"), &gTextNormalNumEdwin, &KExpectedTextNormalNumEdwin);
  1047 			INFO_PRINTF3(_L("gTextNormalNumEdwin was '%S' (expected '%S')"), &gTextNormalNumEdwin, &KExpectedTextNormalNumEdwin);
   878 			INFO_PRINTF3(_L("gTextKatakanaEdwin was '%S' (expected '%S')"), &gTextKatakanaEdwin, &KExpectedTextKatakanaEdwin);
  1048 			INFO_PRINTF3(_L("gTextKatakanaEdwin was '%S' (expected '%S')"), &gTextKatakanaEdwin, &KExpectedTextKatakanaEdwin);
   879 			INFO_PRINTF3(_L("gTextPhoneticalEdwin was '%S' (expected '%S')"), &gTextPhoneticalEdwin, &KExpectedTextPhoneticalEdwin);
  1049 			INFO_PRINTF3(_L("gTextPhoneticalEdwin was '%S' (expected '%S')"), &gTextPhoneticalEdwin, &KExpectedTextPhoneticalEdwin);
       
  1050 			INFO_PRINTF3(_L("gTextCJKEdwin was '%S' (expected '%S')"), &gTextCJKEdwin, &KExpectedTextCJKEdwin);
   880 
  1051 
   881 			TEST(gTextNormalEdwin == KExpectedTextNormalEdwin);
  1052 			TEST(gTextNormalEdwin == KExpectedTextNormalEdwin);
   882 			TEST(gTextNormalNumEdwin == KExpectedTextNormalNumEdwin);
  1053 			TEST(gTextNormalNumEdwin == KExpectedTextNormalNumEdwin);
   883 			TEST(gTextKatakanaEdwin == KExpectedTextKatakanaEdwin);
  1054 			TEST(gTextKatakanaEdwin == KExpectedTextKatakanaEdwin);
   884 			TEST(gTextPhoneticalEdwin == KExpectedTextPhoneticalEdwin);
  1055 			TEST(gTextPhoneticalEdwin == KExpectedTextPhoneticalEdwin);
       
  1056 			TEST(gTextCJKEdwin == KExpectedTextCJKEdwin);
   885 			RecordTestResultL();
  1057 			RecordTestResultL();
   886 			CloseTMSGraphicsStep();
  1058 			CloseTMSGraphicsStep();
   887 			}
  1059 			}
   888 			break;
  1060 			break;
   889 
  1061 
   891 			{
  1063 			{
   892 			AutoTestManager().FinishAllTestCases(CAutoTestManager::EPass);
  1064 			AutoTestManager().FinishAllTestCases(CAutoTestManager::EPass);
   893 			}
  1065 			}
   894 			break;
  1066 			break;
   895 		}
  1067 		}
   896 		
  1068 
   897 	}
  1069 	}
   898 
  1070 
   899 
  1071 
   900 
  1072 
   901 void CFep1TestTargetUi::SendKey(TUint aCode, TUint aModifiers, TInt aRepeats, TInt aScanCode)
  1073 void CFep1TestTargetUi::SendKey(TUint aCode, TUint aModifiers, TInt aRepeats, TInt aScanCode)
   908 	theKey->iCode = aCode;
  1080 	theKey->iCode = aCode;
   909 	SendEventToWindowGroups(theEvent);
  1081 	SendEventToWindowGroups(theEvent);
   910 	}
  1082 	}
   911 
  1083 
   912 
  1084 
   913 /** 
  1085 /**
   914   Handle the window events.\n
  1086   Handle the window events.\n
   915   Create a window server session and connect the client\n
  1087   Create a window server session and connect the client\n
   916   Create a client side handle for the server.\n
  1088   Create a client side handle for the server.\n
   917   Set the window event type and call the SendEventToWindowGroup().\n
  1089   Set the window event type and call the SendEventToWindowGroup().\n
   918   Close the session on completion \n
  1090   Close the session on completion \n
   919 */
  1091 */
   920 void CFep1TestTargetUi::SendEventToWindowGroups(TWsEvent&	aEvent)
  1092 void CFep1TestTargetUi::SendEventToWindowGroups(TWsEvent&	aEvent)
   921 	{
  1093 	{
   922     User::After(100000);
  1094 User::After(100000);
   923 
  1095 
   924 	RWsSession	ws;
  1096 	RWsSession	ws;
   925 	TInt theRes = ws.Connect();
  1097 	TInt theRes = ws.Connect();
   926 	TEST(theRes == KErrNone);
  1098 	TEST(theRes == KErrNone);
   927 
  1099 
   928 	RWindowGroup& winGroup = iCoeEnv->RootWin();
  1100 	RWindowGroup& winGroup = iCoeEnv->RootWin();
   929 	TInt theId = winGroup.Identifier();
  1101 	TInt theId = winGroup.Identifier();
   930 	
  1102 
   931 	aEvent.SetType(EEventKeyDown);
  1103 	aEvent.SetType(EEventKeyDown);
   932 	aEvent.SetTimeNow();
  1104 	aEvent.SetTimeNow();
   933 	ws.SendEventToWindowGroup(theId, aEvent);
  1105 	ws.SendEventToWindowGroup(theId, aEvent);
   934 		
  1106 
   935 	aEvent.SetType(EEventKey);
  1107 	aEvent.SetType(EEventKey);
   936 	aEvent.SetTimeNow();
  1108 	aEvent.SetTimeNow();
   937 	ws.SendEventToWindowGroup(theId, aEvent);
  1109 	ws.SendEventToWindowGroup(theId, aEvent);
   938 	
  1110 
   939  	aEvent.SetType(EEventKeyUp);
  1111 	aEvent.SetType(EEventKeyUp);
   940 	aEvent.SetTimeNow();
  1112 	aEvent.SetTimeNow();
   941 	ws.SendEventToWindowGroup(theId, aEvent);
  1113 	ws.SendEventToWindowGroup(theId, aEvent);
   942 	
  1114 
   943 	ws.Close();
  1115 	ws.Close();
   944 	}
  1116 	}
   945 	
  1117 
   946 /**
  1118 /**
   947   Handle the user defined events.\n
  1119   Handle the user defined events.\n
   948   Search for the resource file that support the language.\n
  1120   Search for the resource file that support the language.\n
   949   Adds the specified resource file to the list maintained by CCoeEnv. \n
  1121   Adds the specified resource file to the list maintained by CCoeEnv. \n
   950 */
  1122 */
   952 	{
  1124 	{
   953 	if(aEvent.Type() == (EEventUser + 1))
  1125 	if(aEvent.Type() == (EEventUser + 1))
   954 		{
  1126 		{
   955 		CCoeEnv& coneEnvironment=*CCoeEnv::Static();
  1127 		CCoeEnv& coneEnvironment=*CCoeEnv::Static();
   956 		TFileName* resourceFileName=new(ELeave) TFileName(KFep1TestTargetResourceFilePath);
  1128 		TFileName* resourceFileName=new(ELeave) TFileName(KFep1TestTargetResourceFilePath);
   957 	
  1129 
   958 		TBuf8<128> buf;
  1130 		TBuf8<128> buf;
   959 		buf.Copy(*resourceFileName);
  1131 		buf.Copy(*resourceFileName);
   960 	
  1132 
   961 		CleanupStack::PushL(resourceFileName);
  1133 		CleanupStack::PushL(resourceFileName);
   962 		BaflUtils::NearestLanguageFile(coneEnvironment.FsSession(), *resourceFileName);
  1134 		BaflUtils::NearestLanguageFile(coneEnvironment.FsSession(), *resourceFileName);
   963 		TTstResourceFileId resourceFileId(coneEnvironment, coneEnvironment.AddResourceFileL(*resourceFileName));
  1135 		TTstResourceFileId resourceFileId(coneEnvironment, coneEnvironment.AddResourceFileL(*resourceFileName));
   964 		CleanupStack::PopAndDestroy(resourceFileName);
  1136 		CleanupStack::PopAndDestroy(resourceFileName);
   965 		CleanupStack::PushL(resourceFileId);
  1137 		CleanupStack::PushL(resourceFileId);
   967 
  1139 
   968 		AutoTestManager().StartAutoTest();
  1140 		AutoTestManager().StartAutoTest();
   969 		dlg->ExecuteLD(R_TFT_DIALOG);
  1141 		dlg->ExecuteLD(R_TFT_DIALOG);
   970 		CleanupStack::PopAndDestroy(&resourceFileId);
  1142 		CleanupStack::PopAndDestroy(&resourceFileId);
   971 		}
  1143 		}
   972 	else 
  1144 	else
   973 		{
  1145 		{
   974 		CTestAppUi::HandleApplicationSpecificEventL(aType, aEvent);	
  1146 		CTestAppUi::HandleApplicationSpecificEventL(aType, aEvent);
   975 		}
  1147 		}
   976 	}
  1148 	}
   977 
  1149 
   978 
  1150 
   979 /*************************************************************
  1151 /*************************************************************
   980  **  
  1152  **
   981  **  CTestFep1TargetStep
  1153  **  CTestFep1TargetStep
   982  **  
  1154  **
   983  *************************************************************/
  1155  *************************************************************/
   984 
  1156 
   985 CTestFep1TargetStep::CTestFep1TargetStep()
  1157 CTestFep1TargetStep::CTestFep1TargetStep()
   986 	{
  1158 	{
   987 	SetTestStepName(KFep1TestTargetStep);
  1159 	SetTestStepName(KFep1TestTargetStep);
   990 CTestFep1TargetStep::~CTestFep1TargetStep()
  1162 CTestFep1TargetStep::~CTestFep1TargetStep()
   991 	{
  1163 	{
   992 	}
  1164 	}
   993 
  1165 
   994 
  1166 
   995 /**  
  1167 /**
   996   Call ConstructL() of CEikonEnv and initialize a pointer to CFep1TestTargetUi \n
  1168   Call ConstructL() of CEikonEnv and initialize a pointer to CFep1TestTargetUi \n
   997   Set the application's user interface object \n
  1169   Set the application's user interface object \n
   998   Call ConstructL() of CFep1TestTargetUi 
  1170   Call ConstructL() of CFep1TestTargetUi
   999 */
  1171 */
  1000 void CTestFep1TargetStep::ConstructAppL(CEikonEnv* aCoe)
  1172 void CTestFep1TargetStep::ConstructAppL(CEikonEnv* aCoe)
  1001     { // runs inside a TRAP harness
  1173     { // runs inside a TRAP harness
  1002 	aCoe->ConstructL();
  1174 	aCoe->ConstructL();
  1003 	CTestAppUi* appUi= new (ELeave) CFep1TestTargetUi(this);
  1175 	CTestAppUi* appUi= new (ELeave) CFep1TestTargetUi(this);
  1031 		}
  1203 		}
  1032 
  1204 
  1033 	__UHEAP_MARKEND;
  1205 	__UHEAP_MARKEND;
  1034 
  1206 
  1035 	INFO_PRINTF1(_L("...TestFep1Target finished!"));
  1207 	INFO_PRINTF1(_L("...TestFep1Target finished!"));
  1036 	
  1208 
  1037 	return TestStepResult();
  1209 	return TestStepResult();
  1038 	}
  1210 	}
  1039 
  1211 
  1040 
  1212