TEFUnit Overview and ConceptsOverviewTEFUnit provides a C++ library for building unit tests. It is often used in conjunction with TestDriver, which enables you to build and run unit tests on a device or an emulator, and to get a report on the test result. There are several benefits of using TEFUnit.
You must have a good knowledge of Symbian C++, Object Oriented Programming (OOPS) concepts and using TEF. ConceptsTest SuiteA test suite is a collection of test units and test suites. When a suite is contained within a suite it is referred to as a sub-suite. TEFUnit ComponentsThe main component of TEFUnit is:
How TEFUnit worksTEFUnit is a standard TEF test server with a set of enhancements and is packaged as a static library. Before reading this you should understand how TEF works. Refer to How TEF Works section in TEF Overview and Concepts. TEFUnit is an extension to the standard TEF that allow suites of tests to be run. Instead of deriving a server class from CTestServer you must create a small number of global functions which define the executable's server name and its test hierarchy. Though you may create TEF style test steps TEFUnit provides base classes for creating test suites. Test suites can be nested to form a hierarchy. TEFUnit allows corresponding extensions to the format of the script that drives the TEF. Test step commands can specify suites, sub-suites and tests as well as test steps. Basic TEF scripts can be used with TEFUnit executables. TEFUnit scripts, however, do not work with basic TEF servers. The diagram below shows the components provided by TEF in blue, those provided by TEFUnit in yellow and those that you must provide in green.
Copyright ©2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. License: SFL
|