Zhao Yazhi _android Test

Source: Internet
Author: User
Test concepts

Black box testing from the perspective of whether you care about the internal structure and the implementation of the software: only the process and results of program execution are concerned
White Box testing: Write test methods or test cases based on source code
Gray box test: Between the White box test and the black box test
The process of software development is divided by stages with a. Unit test
B. Integration Testing
C. Confirm the test
D. System Testing
E. Acceptance Testing
F. Regression testing
G.alpha Test

New test project test new test Project



New Test class




Create test class in this class new test class inherit Androidtestcase class configuration test device and Class library configuration test device
Configuring the Class Library



Androidmanifest.xml parsing
TARGETPACKAGE Specifies the same package as the app



Run the test class


Test success and test failure Test success:

Test failed:

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.