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

Line 26: Line 26:


Each test class must have three methods:  
Each test class must have three methods:  
<pre>
protected void setUp() // Starts Fennec and sets up commonly used member variables. This is usually very similar for every test class.
protected void setUp() // Starts Fennec and sets up commonly used member variables. This is usually very similar for every test class.
public void test[YourFeature]() // Your test code goes here. Use the Robocop API to access Fennec elements, click, send keys, and assert conditions.
public void test[YourFeature]() // Your test code goes here. Use the Robocop API to access Fennec elements, click, send keys, and assert conditions.
Line 40: Line 41:
[testMasterPassword]
[testMasterPassword]
[testDeviceSearchEngine]
[testDeviceSearchEngine]
<b>[testMyFeature]</b>
[testMyFeature] # NEW!
 
</pre>
</pre>


Confirmed users
1,759

edits