Android Automated Test-robotium (vii) using JUNIT_REPORT test report

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.