When testing with Robotium, you can export your test results, using Junitreport to achieve
Junit-report:https://github.com/jsankey/android-junit-report
1, set up an Android test project, import Robotium package, and establish a good test case;
2, right-click Test Project →properties→java Build path→libraries, clicking Add External JARs; Select Android-junit-report-1.5.8.jar to add:
3, modify the test project Androidmanifest file, as follows:
4, right-click Test Project---Run as---run configurations, under test will instrumentation runner repaired as follows
5. Then run the Android JUnit test and run the test case to generate the Junit-report.xml file in the Files folder under the project's folder under testing
6. Export the generated Junit_report.xml file using the ADB pull command:
ADB pull/data/data/(your app package name)/files/junit-report.xml e:/
7. Open the file to see the test report:
You can see that the error message of this test
Android Automated Test-robotium (vii) using JUNIT_REPORT test report