ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
ลองแยกกักตัวอีกครั้ง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ดูเอกสารประกอบเกี่ยวกับการทดสอบอีกครั้งอัตโนมัติเพื่อทำความเข้าใจวิธีการทํางานของฟีเจอร์ลองอีกครั้ง
เมื่อทำการลองอีกครั้ง หากอุปกรณ์เข้าสู่สถานะที่ไม่ถูกต้องซึ่งไม่อนุญาตให้การทดสอบสําเร็จอีกต่อไป ใช้ฟีเจอร์การแยกอุปกรณ์ กู้คืนอุปกรณ์ให้เป็นสถานะเริ่มต้นใหม่ และอนุญาตให้การทดสอบทำงานและดำเนินการสำเร็จ
เปิดใช้ฟีเจอร์
คุณสามารถเปิดใช้การแยกการลองอีกครั้งได้ด้วยตัวเลือกต่อไปนี้นอกเหนือจากตัวเลือกการลองอีกครั้ง
--retry-isolation-grade <FULLY_ISOLATED|REBOOT_ISOLATED>
หรือปิดใช้ด้วย
--retry-isolation-grade NOT_ISOLATED
ฟีเจอร์นี้ปิดใช้อยู่โดยค่าเริ่มต้น
ระดับการแยกต่างหาก
ระดับการแยกแสดงถึงระดับการแยกที่เราต้องการกําหนดค่าระหว่างการลองอีกครั้ง
- FULLY_ISOLATED จะล้างและรีเซ็ตอุปกรณ์โดยสมบูรณ์โดยเรียกใช้ target_preparers ที่กําหนดค่าไว้ของการกำหนดค่าอีกครั้ง
- REBOOT_ISOLATED จะรีบูตอุปกรณ์
หมายเหตุเกี่ยวกับชุดเครื่องมือทดสอบความเข้ากันได้ (CTS)
ปัจจุบันการเรียกใช้ CTS ของพาร์ทเนอร์ Android ไม่รองรับ FULLY_ISOLATED
ผลลัพธ์มีลักษณะเป็นอย่างไร
ผู้รายงานผลลัพธ์จะได้รับเครื่องหมายว่าโมดูลหรือการเรียกใช้หนึ่งๆ ทำงานแบบแยกส่วน และสามารถเลือกแสดงเครื่องหมายในรายงานได้
- ที่ระดับโมดูล ระบบจะตั้งค่าพร็อพเพอร์ตี้
module-isolated
เป็นระดับการแยก
- ที่ระดับการเรียกใช้ ระบบจะตั้งค่าพร็อพเพอร์ตี้
run-isolated
เป็นระดับการแยก
ตัวอย่างเช่น โมดูลแรกที่ทำงานหลังจากแยกจะได้รับการรายงานเป็น module-isolated:FULLY_ISOLATED
การทดสอบแบบแยกจะให้สัญญาณที่แรง ไม่ว่าจะผ่านหรือไม่ผ่าน เจ้าของการทดสอบควรมั่นใจได้ในระดับสูงว่าไม่มีสถานะที่ไม่ถูกต้องจากการทดสอบครั้งก่อนในอุปกรณ์
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# Retry isolation\n\nSee the [Automatic Test Retry documentation](/docs/core/tests/tradefed/testing/through-tf/auto-retry)\nto understand how the retry feature works.\n\nWhen executing retries, if the device has entered into a bad state\nthat does not allow tests to succeed anymore. Use the isolation\nfeature restore the device into a fresh initial\nstate and allow tests to run and succeed.\n\nEnable the feature\n------------------\n\nThe retry isolation can be enabled with the follow options in addition to the\nretry options: \n\n --retry-isolation-grade \u003cFULLY_ISOLATED|REBOOT_ISOLATED\u003e\n\nor disabled with: \n\n --retry-isolation-grade NOT_ISOLATED\n\nThe feature is disabled by default.\n\n### Different grade of isolation\n\nThe isolation grade represents the extent of the isolation we want to configure\nbetween retries:\n\n- FULLY_ISOLATED will completely wipe \\& resetup the device by rerunning the configured target_preparers of the configuration\n- REBOOT_ISOLATED will reboot the device\n\n### Note on Compatibility Test Suite (CTS)\n\nAndroid partner runs of CTS currently do not support FULLY_ISOLATED\n\nWhat do the results look like?\n------------------------------\n\nResult reporters receive a marker that a given module or run was running in\nisolation and can elect to display the marker in their report.\n\n- At the module level the `module-isolated` property will be set to its isolation grade.\n- At the run level the `run-isolated` property will be set to its isolation grade.\n\nFor example: the first module running after being isolated will be reported as\n`module-isolated:FULLY_ISOLATED`.\n\nA test run in isolation provides a strong signal. Be it pass or fail, the\ntest owner should have high confidence that no bad state from a previous\ntest was left on the device."]]