QA SoftVision Team/Mobile/Writing tests: Difference between revisions
< QA SoftVision Team | Mobile
Jump to navigation
Jump to search
(Created page with "= Getting Started = * You can find information about setting up the enviroment for running the tests [https://wiki.mozilla.org/QA_SoftVision_Team/Mobile/Robocop_automation_setup ...") |
|||
Line 2: | Line 2: | ||
* You can find information about setting up the enviroment for running the tests [https://wiki.mozilla.org/QA_SoftVision_Team/Mobile/Robocop_automation_setup here] | * You can find information about setting up the enviroment for running the tests [https://wiki.mozilla.org/QA_SoftVision_Team/Mobile/Robocop_automation_setup here] | ||
* Please make sure to look over [https://wiki.mozilla.org/Auto-tools/Projects/Robocop/WritingTests this page] for some general information about Robocop tests. | * Please make sure to look over [https://wiki.mozilla.org/Auto-tools/Projects/Robocop/WritingTests 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() { | |||
} | |||
} |
Revision as of 08:33, 10 September 2012
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() { } }