提供意見
測試開發工作流程
要將測試集成到平台持續測試服務中,它們應符合此頁面上的指南並遵循此推薦流程。
使用Soong 構建系統 進行簡單測試配置 。 使用測試映射 可以直接在 Android 源代碼樹中輕鬆創建提交前和提交後的測試規則。 使用Atest 在本地運行測試。 測試類型 支持的測試類型有:
功能測試對測試用例做出通過或失敗的斷言,而度量測試通常重複執行一個動作來收集時序度量。
使用標準化的輸入/輸出格式,無需為每個測試定制結果解析和後處理,並且通用測試工具可用於符合慣例的所有測試。有關 Android 中包含的持續測試框架,請參閱Trade Federation 概述 。
測試用例指南 {guidelines} 通過持續測試服務執行的測試用例應該是封閉 的,這意味著所有依賴項都被聲明並與測試一起提供。請參閱Google 測試博客上的 Hermetic Servers 以了解此原理。簡而言之,密封測試不需要 :
谷歌賬戶登錄 連接配置(電話/Wi-Fi/藍牙/NFC) 傳入的測試參數 由測試工具為特定測試用例執行的設置或拆卸
提供意見
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-06-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
想進一步說明嗎?