QA SoftVision Team/Mobile/Writing tests: Difference between revisions

Jump to navigation Jump to search
(Undo revision 517137 by Csuciu (talk))
Line 29: Line 29:
= Basic structure of the test =  
= Basic structure of the test =  


  package org.mozilla.fennec_root.tests; // Robotium test package
#filter substitution
  package @ANDROID_PACKAGE_NAME@.tests;
import org.mozilla.fennec_root.*; // import the package in order to be able to reuse classes if needed
   
   
import @ANDROID_PACKAGE_NAME@.*;
 
  /*
  /*
  Insert info about the test here - a basic description of what the test does
  Insert info about the test here - a basic description of what the test does
Line 58: Line 59:
* If your tests extends BaseTest then you will not need to add the methods setUp() and tearDown() as they are already defined in BaseTest
* If your tests extends BaseTest then you will not need to add the methods setUp() and tearDown() as they are already defined in BaseTest
* If you need to do extra clean-up, like removing entries you added in a database for e.g., the tearDown() method can be overwrittern but make sure to call '''super.tearDown()''' as needed in the method. The same is applicable for setUp().
* If you need to do extra clean-up, like removing entries you added in a database for e.g., the tearDown() method can be overwrittern but make sure to call '''super.tearDown()''' as needed in the method. The same is applicable for setUp().
= APIs  =
= APIs  =
Robotium itself provides a rich API through the Solo class - javadocs for Solo are available at [1].
Robotium itself provides a rich API through the Solo class - javadocs for Solo are available at [1].
Confirmed users
1,620

edits

Navigation menu