I plan to perform android automated testing in the future. Today I found a very good tool. I will study it later:
The download address is as follows:
Http://code.google.com/p/robotium/downloads/list
This is the configuration method:
1. Ensure the environment
1. You have installed eclipse
2. the android environment has been configured in Eclipse.
3. A simulator has been created.
Step 2
1. Start Eclipse and run New --> Project --> Android Project --> Create Project from existing sample --> NotePad to import the built-in example.
2. Download three files in the official down column. Two are the required jar packages, and the other is the notepad test example.
(The latest version is 2.1 Featured. We will not download the latest version)
3. then execute File --> Import --> Existing Project into workspace --> Select archive file --> ExampleTestProject_v2.1.zip to Import the example. (If an error occurs, you may need to Import the two jar files you just mentioned in this Project. import project --> Properties --> Java Build Path --> Add (external) jar)
4. Right-click the imported test example and Run As --> Run As Android JUnit Test.
If there is no accident, the simulator will be automatically started and run.
Author h0222