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