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:

  1. Edit the .driver file

  2. Identify the task which includes the test case that needs a fresh environment to run.

  3. 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>
  4. Save the .driver file and run the tests

See also

XML Schema