Reflashing the device
The TestDriver provides a plug-in that allows you to reflash the device
with a new ROM image 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.
The following example shows you how to reflash the device with a new ROM
and restart it:
-
Edit the .driver
file
-
Identify the point at which the new ROM is required.
-
Insert a <task>
element containing a
<flashrom>
tag which specifies the ROM image to be used.
-
Set the preRebootDevice attribute of the
<task>
element containing the <flashrom>
tag to true, as shown below:
<task name="deviceReflash" timeout="100000" preRebootDevice="true">
<flashrom PCPath="D:\sys$rom.bin"/>
<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 test.