Confirmed users
1,759
edits
(→APIs) |
(→Setup) |
||
Line 5: | Line 5: | ||
= Setup = | = Setup = | ||
Copying a test from the examples is the best way to start. | |||
Your test should be in the file test[Case].java.in -- see mobile/android/base/tests. | Your test should be in the file test[Case].java.in -- see mobile/android/base/tests. | ||
The top of | The flow of the test will go from starting the application to killing it. | ||
The top of each test case file must have: | |||
<pre> | <pre> | ||
#filter substitution | #filter substitution | ||
package @ANDROID_PACKAGE_NAME@.tests | package @ANDROID_PACKAGE_NAME@.tests | ||
</pre> | </pre> | ||
Each test case will have three methods in the class test[Case]: setUp(), test[Case](), and tearDown(). setUp gets called at the beginning and starts fennec. | |||
= APIs = | = APIs = |