Auto-tools/Projects/Robocop/WritingTests: Difference between revisions

m
Line 1: Line 1:
= Setup =
= Setup =


Writing a test for Robocop shouldn't be very hard, but there is a very 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.
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 inside what
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 should have:
The top of the test must have:
<pre>
<pre>
#filter substitution
#filter substitution
Confirmed users
1,759

edits