Android Testing

原文:android開發(fā)者培訓文檔之Testing

  • Android提供了一個集成的測試框架,可以幫助你測試您的應(yīng)用程序的各個方面
  • The AndroidSDK and Testing Support Library提供了一些工具和API能讓你在模擬器和真機中運行測試程序
  • 可以在Android Studio或者命令行中構(gòu)建和執(zhí)行測試程序

閱讀以下資源,你可以熟悉Android應(yīng)用測試

  • 測試的相關(guān)概念:熟悉APP測試的相關(guān)概念和學習一些Google提供的工具和庫

  • 測試概念

    • 首先,得掌握 JUnit的基礎(chǔ)知識:
      • JUnit是一個簡單的框架來寫重復的測試。這是單元測試框架的xUnit架構(gòu)的一個實例。
    • JUnit的一個demo
    • Android testing is based on JUnit. In general, a JUnit test is a method whose statements test a part of the application. You organize test methods into classes called test cases. You can further organize these classes into test suites.
  • In JUnit, you build one or more test classes and use a test runner to execute them. In Android, you use Android Studio (or the Android Plugin for Gradle) to build one or more test source files into an Android test app.

  • Android Testing Support Library

  • 開始測試

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容

  • The test application demonstrates these key points:An And...
    思考的犀牛閱讀 381評論 0 0
  • afinalAfinal是一個android的ioc,orm框架 https://github.com/yangf...
    passiontim閱讀 15,568評論 2 45
  • Android測試代碼實驗室 學習目的:如何使用Android Testing Support Library即A...
    jackLee閱讀 1,607評論 1 3
  • 人人都知道好習慣對于自己的好處,但也同樣知道培養(yǎng)一個好習慣十分的困難:或許夭折而亡,或許半途而廢。也正因如此,我們...
    糊魚爛鹽閱讀 703評論 0 4
  • 我想,人這一生會遇到很多人,然后不停的錯過,不停的相遇,每遇到一個人的時候,我們永遠也想不到后續(xù)會如何。 今天我想...
    木木家的木木閱讀 413評論 0 2