appfw/apparchitecture/tef/T_WindowChainingStep.CPP
branchRCL_3
changeset 62 924385140d98
parent 0 2e3d3ce01487
child 63 c2c61fdca848
equal deleted inserted replaced
58:0818dd463d41 62:924385140d98
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-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".
    21 
    21 
    22 #include <apgcli.h>
    22 #include <apgcli.h>
    23 #include "T_WindowChainingStep.h"
    23 #include "T_WindowChainingStep.h"
    24 #include "TWindowChaining.h"
    24 #include "TWindowChaining.h"
    25 #include <apacmdln.h>
    25 #include <apacmdln.h>
       
    26 #include "T_SisFileInstaller.h"
       
    27 
       
    28 _LIT(KWinChainAppSisFile, "z:\\apparctest\\apparctestsisfiles\\t_winchainLaunch.sis");
       
    29 _LIT(KWinChainAppComponent, "t_winchainLaunch");
       
    30 
       
    31 _LIT(KWinChainChildAppSisFile, "z:\\apparctest\\apparctestsisfiles\\t_winchainChild.sis");
       
    32 _LIT(KWinChainChildAppComponent, "t_winchainChild");
       
    33 
       
    34 
    26 
    35 
    27 /**
    36 /**
    28    @SYMTestCaseID TODO
    37    @SYMTestCaseID TODO
    29   
    38   
    30    @SYMPREQ DEFECT 053778 - Window Chaining
    39    @SYMPREQ DEFECT 053778 - Window Chaining
   110 		SetTestStepResult(EPass);
   119 		SetTestStepResult(EPass);
   111 	else
   120 	else
   112 		SetTestStepResult(EFail);
   121 		SetTestStepResult(EFail);
   113 	}
   122 	}
   114 	
   123 	
       
   124 
       
   125 TVerdict CT_WindowChainingStep::doTestStepPreambleL()
       
   126     {
       
   127     CSisFileInstaller sisInstaller;
       
   128     INFO_PRINTF2(_L("Installing sis file from -> %S"), &KWinChainChildAppSisFile);
       
   129     sisInstaller.InstallSisL(KWinChainChildAppSisFile);
       
   130     INFO_PRINTF2(_L("Installing sis file from -> %S"), &KWinChainAppSisFile);
       
   131     sisInstaller.InstallSisAndWaitForAppListUpdateL(KWinChainAppSisFile);  
       
   132     
       
   133     SetTestStepResult(EPass);
       
   134     return TestStepResult();    
       
   135     }
       
   136 
       
   137 
       
   138 TVerdict CT_WindowChainingStep::doTestStepPostambleL()
       
   139     {
       
   140     CSisFileInstaller sisInstaller;
       
   141     sisInstaller.UninstallSisL(KWinChainChildAppComponent);
       
   142     sisInstaller.UninstallSisL(KWinChainAppComponent);
       
   143     
       
   144     return TestStepResult();    
       
   145     }
       
   146 
       
   147 
   115 TVerdict CT_WindowChainingStep::doTestStepL()
   148 TVerdict CT_WindowChainingStep::doTestStepL()
   116 {
   149 {
   117 	__UHEAP_MARK;
   150 	__UHEAP_MARK;
   118 		
   151 		
   119 	INFO_PRINTF1(_L("Test Started"));
   152 	INFO_PRINTF1(_L("Test Started"));