Video address:
Http://www.chuanke.com/v1983382-135467-384869.html
This content is actually already in use, I in an article robotium-only apk file test has already spoken this content, and oneself also uses Python+wxpython to write the interface program, realizes the run case+ obtains the XML result +xml turns html+ The ability to send mail
Main content:
First, test requirements
1. Statistic the execution time of each case
2, which case success, failure
3. The failed case gives log
4. Generate Web page HTML report results
II. deployment of the environment
Take Robotium as an example, the required environment:
1, JDK1.7, Android development environment
2. Robotium Jar Package
3. Android-junit-report.jar Bag
Iii. principle of report generation
Go to the official website: http://zutubi.com/, click Open Source to access the download page
Quick Start
For the impatient, this is a overview of how to integrate the runner with Ant builds. Note all modifications is made to your test project, i.e. the project which implements the JUnit tests :
The following is the principle:
1, com.zutubi.android.junitreport.junitreporttestrunner--concrete see above description, need to modify the place is two, one is instrumentation tag, one is run as the run Configuration, modifying the value of instrumentation runner
2. Call mechanism:
Three-layer Package:
Junit report---"Robotium---" instrumentation
Iv. scripts for automated follow-up collection work
Script Run TestCase
Script 2--Pull the XML out of the phone memory card
Script 3--to convert XML into HTML
Script 4--incorporate HTML reports into manual, stress, performance reports
Script 5--send a message
done! Still need to write ...
Android-junit-report test report Generation--android Automated Test learning process