localisation/apparchitecture/tef/T_EndTaskStep.cpp
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 2006-2009 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 the License "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".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    13 // Description:
    13 // Description:
    14 // The following test cases test the funtionality of RuleBased plugins framework.
    14 // The following test cases test the funtionality of RuleBased plugins framework.
    15 // 
    15 // 
    16 //
    16 //
    17 
    17 
    18 
       
    19 
       
    20 /**
    18 /**
    21  @file
    19  @file
    22  @test
    20  @test
    23  @internalComponent - Internal Symbian test code
    21  @internalComponent - Internal Symbian test code
    24 */
    22 */
    25 
    23 
    26 #include <apacmdln.h>
    24 #include <apacmdln.h>
    27 #include <apgwgnam.h>
    25 #include <apgwgnam.h>
    28 
    26 
    29 #include <appfwk_test.h>
    27 #include "appfwk_test.h"
    30 #include "T_EndTaskStep.h"
    28 #include "T_EndTaskStep.h"
    31 #include "TEndTaskTestApp\EndTaskTestAppExternalInterface.h"
    29 #include "TEndTaskTestApp/EndTaskTestAppExternalInterface.h"
    32 
    30 
    33 CTEndTaskStep::CTEndTaskStep()
    31 CTEndTaskStep::CTEndTaskStep()
    34 	{
    32 	{
    35 	// Call base class method to set up the human readable name for logging
    33 	// Call base class method to set up the human readable name for logging
    36 	SetTestStepName(KT_EndTaskStep);		
    34 	SetTestStepName(KT_EndTaskStep);		
   262 	User::After(1000000);
   260 	User::After(1000000);
   263 	fileName = info.iFullName; 
   261 	fileName = info.iFullName; 
   264 	CApaCommandLine* cmdLn = CApaCommandLine::NewLC();     
   262 	CApaCommandLine* cmdLn = CApaCommandLine::NewLC();     
   265 	cmdLn->SetDocumentNameL(KNullDesC);					//need to start without resource file
   263 	cmdLn->SetDocumentNameL(KNullDesC);					//need to start without resource file
   266 	cmdLn->SetExecutableNameL(fileName);
   264 	cmdLn->SetExecutableNameL(fileName);
   267 	TInt result = aLs.StartApp(*cmdLn);
   265 	
   268 	//Wait 1 sec for App to start
   266 	TThreadId threadId;
   269 	User::After(1000000);
   267 	TRequestStatus status = KRequestPending;
       
   268 	TInt result = aLs.StartApp(*cmdLn, threadId, &status);
       
   269 	User::WaitForRequest(status);
   270 	CleanupStack::PopAndDestroy(cmdLn);
   270 	CleanupStack::PopAndDestroy(cmdLn);
   271 	return result;
   271 	return result;
   272 	}
   272 	}
   273 
   273 
   274 TVerdict CTEndTaskStep::doTestStepL()
   274 TVerdict CTEndTaskStep::doTestStepL()