Defining TEF Step Hierarchy

TEFUnit is capable of executing TEF steps. You must implement a global CreateTEFTestStep(), as shown below, to instantiate them.

GLDEF_C CTestStep* CreateTEFTestStep(const TdesC& aStepName, CTEFUnitServer& aServer)
    {
    // Initialise test step object to NULL if no TEF steps are assigned             
      CTestStep* testStep = NULL;
    If(aStepName == KSampleStep1)
        testStep = new CSampleStep1();
    else if(aStepName == KSampleStep2)
        testStep = new CSampleStep2(aServer);
    else if(aStepName == KSampleStep3)
        testStep = new CSampleStep3(aServer);
    return testStep;
    }

This function performs in the same way as the TEF function CTestServer::CreateTestStep().