Changes

Jump to: navigation, search

Auto-tools/Projects/Robocop

63 bytes added, 19:18, 16 October 2012
What happens when a test is run
Our tests are run from the talos and mochitest scripts. These rely on devicemanager and other scripts/tools in the harness directory. Here is what happens:
* create a fresh profile and copy it to the device(/mnt/sdcard/tests/profile)
* we generate robotium.config and push it to the device
$ adb shell cat /mnt/sdcard/tests/robotium.config
host=http://mochi.test:8888/tests # mochi.test is defined in the profile proxy auto config
rawhost=http://192.168.1.73:8888/tests # used for some tests
* we push [https://wiki.mozilla.org/Auto-tools/Projects/Robocop/FennecIDs fennec_ids.txt] to the device(/mnt/sdcard/tests/fennec_ids.txt)
* for each test case, in [[https://wiki.mozilla.org/Auto-tools/Projects/Robocop/robocop_ini robocop.ini]] we launch fennec. Here is an example of the first test case testallpagesTab:
am instrument -w -e deviceroot /mnt/sdcard/tests -e class org.mozilla.fennec.tests.testAllPagesTab org.mozilla.roboexample.test/org.mozilla.fennec.FennecInstrumentationTestRunner
Confirm
3,376
edits

Navigation menu