Confirmed users
1,759
edits
(→APIs) |
m (→Setup) |
||
Line 1: | Line 1: | ||
= Setup = | = Setup = | ||
Writing a test for Robocop shouldn't be very hard, but there is a | Writing a test for Robocop shouldn't be very hard, but there is a limited API as of yet. Copying a test from the examples is the best way to start. The flow of the test will go from starting the application to killing it. | ||
Your test should be in the file test[Case].java.in | Your test should be in the file test[Case].java.in -- see mobile/android/base/tests. | ||
It will have three methods in the class test[Case]: setUp(), test[Case](), and tearDown(). setUp gets called at the beginning and starts fennec | It will have three methods in the class test[Case]: setUp(), test[Case](), and tearDown(). setUp gets called at the beginning and starts fennec. | ||
The top of the test | The top of the test must have: | ||
<pre> | <pre> | ||
#filter substitution | #filter substitution |