Changes

Jump to: navigation, search

Auto-tools/Projects/Robocop

9 bytes added, 02:33, 23 March 2012
no edit summary
With advent of NativeFennec, a new framework was needed to test the UI of the Mobile Browser. Robotium was identified as a useful framework to take advantage of, but is not complete. Robocop incorporates all of Activity, Instrumentation, and Robotium Classes to inject events into the new Java front-end of Fennec.
== Setup ==
=== Step one: Build Native Fennec ===
* First [https://developer.mozilla.org/en/Mozilla_Source_Code_%28Mercurial%29| grab the source]
* NOTE *: {objdir} is a placeholder; the name of your object directory should not matter.
== Running tests ==
=== Set up the MOZ_HOST_BIN environment variable ===
<pre>TEST_PATH=testLoad make mochitest-robotium</pre>
== Writing tests ==
W.I.P.
<pre>
</pre>
== Frequently found Errors ==
OOM Error. This is an error found after use of Robocop frequently, but once it has happened, Fennec itself continues to crash. To fix it, simply uninstall and reinstall. This does not occur of frequent use of Robocop, as I have run 30 iterations of just robocop without it throwing this error.
Infrequent Runtime Errors. Two have been known to occur: One, where Fennec freezes when loading a page, the other where the page loads, but has 0 content. These are worked around by restarting the test.
== Notes ==
*If you are writing tests for Robocop, see [[https://wiki.mozilla.org/Auto-tools/Projects/Robocop/WritingTests Writing Tests]] for more API information
76
edits

Navigation menu