Introduction

SymbianUnitTest Framework consists of several components:
 Components

Test Framework:

Implemented as symbianunittestunitfw.dll, it is the core part of SymianUnitTest to handle all unit testing activities.
 
Unit Test Runner:
The test runner component is used for driving the test framework. It provides a unified interface to console and graphic UIs.
 
Test Code:
It is the user’s test cases which are implemented as a DLL file.
 
Result & Logs:
The test report will be generated at c:\sut\SymbianUnitTestResults.html
If the logging is enabled while building and the c:\logs\sut directory exists, SymbianUnitTest will write debug information during test case execution.
 
ConsoleUI:
Implemented as symbianunittest.exe, it provides a console interface to users to run test cases via command line.
 
Usage (will explained in the later section):

Symbianunittest.exe –tests [-cases] [-alloc] [-help] [-output] [-timeout] [-noprompt]

 

ConsoleUI accepts user input from keyboard, CSymbianUnitTestCommandParser deals with command line options. Then CSymbianUnitTestRunner starts to handle the test cases by communicating with Symbian Unit Test Framework via MSymbianUnitTestObserver interface. Each test case is executed in a separate thread. At the end of the test case execution, Test Framework generates test result in user specified format.