From MozillaWiki
Jump to: navigation, search

This document is designed to explain how to create the mozilla reference image for testing on maemo devices using a MiniSD card as the boot device. It will also describe how to image this image to other N810 units for use in the production environment.

Reference Image

This section will explain the steps to setup a Windows Mobile device for automation testing. Please see device specific sections for flashing a new image or adjusting specific settings.

Keep in mind, most communication with the device will happen remotely over a telnet style session from a host computer to the device.

Here are some original notes for the [HTCTouchPro]

Setting up the wifi


Adjust device settings

reserved spot for adjusting power, screen, networking and other related settings

  • adjust power settings to not shutdown while plugged in
    • settings->system(tab)->power
  • regedit to turn off security alerts/warnings
  • find your ip address
    • settings->connections(tab)->advanced(tab)

Install test-agent

Download test-agent from blassey's people account:

The code for test-agent is located here if you want to build it yourself:

I find it best to do this with Opera on the device, then use the File Explorer on the device to move the downloaded .exe and move it to \

Setup test-agent to run on boot

Create a startup link in \windows\startup. I have one to download [here] (just download it and copy it to \windows\startup, then reboot your device and you can telnet to it)

Alternatively you can create this manuallly: Click on the test-agent in the device file manager, then on your host machine telnet to the IP, port 27020 and

$>cd \windows\startup
$>push testagent.lnk

telnet to the IP, port 27020 again, and


Verify that you can telnet to the IP port 27020 after it comes back up.

Daily Reboot

good idea to include this, need to figure out how to do this

Binary and test data

TODO: actually test this process out and make it cleaner

Download the latest Fennec binary from:

Unpack that to a local directory (such as \tests)

download test binaries + data for host OS and setup

edit the httpd stuff to act as a webserver



checkout talos to your host machine:

* cvs -d co -d talos mozilla/testing/performance/talos 

Download patch from bug 474478 to the root of your talos tree:

Apply patch to cvs tree via patch -p0 < mypatch.diff

Download this other patch from bug 474478:

Unzip the files and add them to the root of the talos tree


Push the tp4 pageset to the webserver root.

Copy talos/getInfo.html , talos/page_load_test , and talos/startup_test into the webserver root.

Config + Running

Run PerfConfigurator similar to this:

* python -v -e \\tests\\fennec\\fennec.exe -t omnia2 -b mobile-browser --activeTests ts --sampleConfig mobile.config --browserWait 60 --noChrome --output local.config --remoteDevice --remotePort 27020 --webServer --deviceRoot \\tests\\talos
** Note: is the ip of my device from step #2
         --remotePort of 27020 is default for test-agent from step 1
         --deviceRoot is where to copy talos bits and profile to
         --webServer is the ip address of the webserver hosting the pageset

Finally run:

* python local.config