Restarting the device
The TestDriver provides a plug-in that enables you to restart the target
device during an automated test.
Note: This feature is applicable to hardware platforms only.
On emulator platforms the .driver
file content related to this
feature is ignored.
This feature is useful in cases where the test case you want to run needs
a fresh environment.
The following steps guide you in configuring TestDriver to restart the
device:
-
Edit the .driver
file
-
Identify the task which includes the test case that needs a fresh
environment to run.
-
Set the preRebootDevice attribute of that task to
"true", as show in the following example:
<task name="test1" timeout="100000" preRebootDevice="true">
<executeOnSymbian>
<testExecuteScript PCPath="${epocroot}\epoc32\release\${platform}\${build}\z\systemtest\ST_Http_v6Cases.script" SymbianPath="c:\systemtest\ST_Http_v6Cases.script"/>
<testCasesList operator="include">
<testCase target="8981"/>
</testCasesList>
</testExecuteScript>
</executeOnSymbian>
</task>
-
Save the .driver
file and run the tests