Confirmed users
905
edits
No edit summary |
|||
| Line 282: | Line 282: | ||
* You can see the screenshot of the output the moment the test failed | * You can see the screenshot of the output the moment the test failed | ||
== Debugging using logs == | == Debugging using logs == | ||
* You can use mAsserter. | * You can use mAsserter.dumpLog(Sting) or mAsserter.ok(true, Sting, String) to print any string or value of any variable | ||
* Note that you will need to cast the variable to String in order to print it: String.valueOf(Variable) | * Note that you will need to cast the variable to String in order to print it: String.valueOf(Variable) | ||
= Updating your test directory = | = Updating your test directory = | ||
It is not always necessary to rebuild Fennec to use new tests. If you are updating the build with your own test, ensure that your test has been added to the manifest in /PATH/TO/FENNEC/SOURCE/mobile/android/base/tests/robocop.ini . | It is not always necessary to rebuild Fennec to use new tests. If you are updating the build with your own test, ensure that your test has been added to the manifest in /PATH/TO/FENNEC/SOURCE/mobile/android/base/tests/robocop.ini . | ||