测试
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
软件测试是指执行旨在发现错误以及异常或异常行为的程序。对所有 Android 开发者而言,测试和测试驱动开发 (TDD) 是软件开发流程的关键步骤。有助于降低商业软件和企业软件中的缺陷率。
要为 Associate Android Developer 认证考试做准备,开发者应执行以下操作:
- 深入了解测试的基础知识
- 能够编写实用的本地 JUnit 测试
- 了解 Espresso 界面测试框架
- 了解如何编写实用的自动化 Android 测试
资源
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-07-27。
[null,null,["最后更新时间 (UTC):2022-07-27。"],[[["\u003cp\u003eSoftware testing is crucial for identifying errors and unexpected behavior in software, ultimately reducing defects in released products.\u003c/p\u003e\n"],["\u003cp\u003eAndroid developers preparing for the Associate Android Developer certification should have a strong grasp of testing fundamentals, including writing JUnit and Espresso tests.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers need to be proficient in creating effective automated Android tests to ensure the quality and reliability of their applications.\u003c/p\u003e\n"]]],[],null,["# Testing\n\nSoftware testing is the process of executing a program with the intent of\nfinding errors and abnormal or unexpected behavior. Testing and test-driven\ndevelopment (TDD) is a critically important step of the software development\nprocess for all Android developers. It helps to reduce defect rates in\ncommercial and enterprise software.\n\nTo prepare for the Associate Android Developer certification exam, developers should:\n\n- Thoroughly understand the fundamentals of testing\n- Be able to write useful local JUnit tests\n- Understand the Espresso UI test framework\n- Know how to write useful automated Android tests\n\nResources\n---------\n\n- [Android Developers -\\\u003e Fundamentals of testing](https://developer.android.com/training/testing/fundamentals)\n- [Android Developers -\\\u003e Automate UI tests](https://developer.android.com/training/testing/ui-testing/)\n- [Codelabs -\\\u003e Unit tests](https://codelabs.developers.google.com/codelabs/android-training-unit-tests/index.html#0)\n- [Codelabs -\\\u003e Android Testing -\\\u003e Unit testing with JUnit and Mockito](https://codelabs.developers.google.com/codelabs/android-testing/index.html#0)\n- [Codelabs -\\\u003e Android Testing -\\\u003e Espresso for UI testing](https://codelabs.developers.google.com/codelabs/android-training-espresso-for-ui-testing/index.html#0)"]]