XML SchemaTestDriver is driven by a single input XML Schema that defines the tasks to be performed. This XML schema is also called as driver file and is detailed in the following section.
Tests are organised as Conventions usedConventions used in the following sections are explained below:
Each box represents an XML element also called as a tag (see Figure 1),
where top rectangle is the name of the tag, Task that can be run within a main task is called a subtask. <driver>The generic XML structure defining tasks that are used to run tests is shown below:
The The following is the structure of a typical driver file: <task>
The
Any operation including a non-test related operation, can be run
using the following tasks, placed within the
The diagram shows the operations that can be performed under a task. To simplify the process of running the common tasks, such as executing a test or build Symbian code, subtasks are made available to these tasks which combine any of the four tasks into a single tag. The details of the subtask tags and their attributes are discussed in the respective sections. Operations are categorised based on the phase of the TestDriver in which these operations are executed:
TestDriver uses two main commands
Note: All operations in a task are executed in the order they appear in the XML file. Tasks can be run in two modes:
When all operations in a task are completed, the TestDriver waits for subtasks to finish or kill them if they have timed out before doing the clean-up. Additional tasks<driverInfo>
Each driver file contains <reference>
This subtask allows you to refer to another task in the current or
another XML file. This acts like an import statement, where you need to specify
the fully qualified URI using the attribute Example for <reference>
The following is an example XML file using the
This task refers to the file <transfers>
This task allows you to transfer a file from the PC to the Symbian
device. When used within the
Copyright ©2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. License: SFL
|