QA SoftVision Team/Mobile/Writing tests
< QA SoftVision Team | Mobile
Jump to navigation
Jump to search
Getting Started
- You can find information about setting up the enviroment for running the tests here
- Please make sure to look over this page for some general information about Robocop tests.
- Robocop is a Java API based on the Robotium API used for automation testing on the Android OS
- The existing test cases can be found in the sorce directory under the folder mobile/android/base/tests
- The class that will cover the text will have to be named the same as the test file
- The test file name should be test[Feature_to_be_tested].java.in
- The test must be included in the same package as all other Robocop tests
Basic structure of the test =
package org.mozilla.fennec_root.tests;
import org.mozilla.fennec_root.*;
/*
Insert info about the test here - a basic description of what the test does
*/
public class test[Feature_to_be_tested] extends BaseTest {
@Override
protected int getTestType() {
return TEST_MOCHITEST; -- Test type should remain Mochitest
}
/*
* This is the class constructor
* This function will contatin the test that will be ran
*/
public void testLoad() {
}
}