ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
ชุดทดสอบและโครงสร้างพื้นฐานของผู้ให้บริการสำหรับ Android 10 และต่ำกว่า
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ชุดทดสอบผู้ให้บริการ Android (VTS) มีฟังก์ชันการทำงานใหม่มากมายสำหรับการทดสอบ Android และส่งเสริมกระบวนการพัฒนาที่ขับเคลื่อนด้วยการทดสอบ Android มีแหล่งข้อมูลการทดสอบต่อไปนี้เพื่อช่วยชุมชนนักพัฒนาแอป Android โต้ตอบกับข้อมูลทดสอบ
- วิดีโอแนะนำ
อธิบายวิดีโอเกี่ยวกับการเรียกใช้และการพัฒนา VTS และ CTS-on-GSI ใน Android 9 และ Android 8.1
- การทดสอบระบบด้วย VTS
อธิบายวิธีใช้ VTS เพื่อทดสอบการติดตั้งใช้งานระบบเนทีฟของ Android, ตั้งค่าสภาพแวดล้อมการทดสอบ จากนั้นทดสอบแพตช์โดยใช้แผน VTS
- เฟรมเวิร์กการทดสอบ ให้รายละเอียดเกี่ยวกับการใช้เฟรมเวิร์กการทดสอบ VTS ซึ่งรวมถึง
- คำสั่งเชลล์ของอุปกรณ์
วิธีการใช้คำสั่งเชลล์ของอุปกรณ์เพื่อเรียกใช้ไบนารีการทดสอบฝั่งเป้าหมาย เพื่อรับ/ตั้งค่าพร็อพเพอร์ตี้ ตัวแปรสภาพแวดล้อม และข้อมูลระบบ รวมถึงเพื่อเริ่ม/หยุดเฟรมเวิร์ก Android
- ทดสอบเทมเพลต
รายละเอียดเกี่ยวกับการกําหนดค่าและใช้เทมเพลตการทดสอบสําหรับโมดูลการทดสอบที่ไม่ใช่คลาสย่อย Python ฝั่งโฮสต์ของ BaseTest ของโปรแกรมรันไทม์ VTS
- การทดสอบ HAL ที่รับรู้ชื่อบริการ รายละเอียดเกี่ยวกับการรองรับของ Android 9 ในการรับชื่อบริการของอินสแตนซ์ HAL ที่ระบุตามอุปกรณ์ที่ VTS ทำงานอยู่
- การตรวจสอบความสามารถในการทดสอบ HAL
รายละเอียดเกี่ยวกับการรองรับเมธอดรันไทม์ของ Android 9 ที่ใช้การกำหนดค่าอุปกรณ์เพื่อระบุการทดสอบ VTS ที่ควรข้ามสำหรับอุปกรณ์เป้าหมายนั้น
- การทดสอบในอุปกรณ์หลายเครื่อง วิธีการกําหนดค่าการทดสอบที่ต้องมีการโต้ตอบระหว่างอุปกรณ์ Android หลายเครื่อง
- การทดสอบ VTS ด้วย RAMdisk ที่ใช้แก้ไขข้อบกพร่อง วิธีการเกี่ยวกับวิธีใช้แรมดิสก์สำหรับแก้ไขข้อบกพร่องเพื่อเปิดใช้ VTS กับอิมเมจระบบทั่วไป (GSI)
- แดชบอร์ด VTS อินเทอร์เฟซผู้ใช้บนเว็บสําหรับดูผลลัพธ์ VTS
มีรายละเอียดเกี่ยวกับสิ่งต่อไปนี้
- ตั้งค่า วิธีการตั้งค่าและกำหนดค่าแดชบอร์ด VTS
- ฐานข้อมูล แบ็กเอนด์ที่ปรับขนาดได้เพื่อรองรับแดชบอร์ดการผสานรวมอย่างต่อเนื่อง
- อินเทอร์เฟซผู้ใช้ อินเทอร์เฟซผู้ใช้ที่เชื่อมโยงกันโดยใช้ Material Design เพื่อแสดงข้อมูลเกี่ยวกับผลการทดสอบ การสร้างโปรไฟล์ และการครอบคลุมอย่างมีประสิทธิภาพ
- โครงสร้างพื้นฐานของ Lab อธิบายสถาปัตยกรรมของโครงสร้างพื้นฐานการทดสอบอัตโนมัติสําหรับการเรียกใช้ VTS, CTS หรือการทดสอบอื่นๆ ในอุปกรณ์ของพาร์ทเนอร์ที่ใช้ Generic System Image (GSI) ของ AOSP
ต้องมีตัวควบคุมโฮสต์
- การทดสอบประสิทธิภาพของ binder และ hwbinder เครื่องมือวัดปริมาณข้อมูลและเวลาในการตอบสนอง
ดูรายละเอียดเพิ่มเติมได้ที่วิดีโอเกี่ยวกับผลิตภัณฑ์ VTS ของ Android ที่จัดทำโดย Google Developers และบทความ Treble: การอัปเดตซอฟต์แวร์อย่างรวดเร็วด้วยการสร้างสมดุลในระบบนิเวศซอฟต์แวร์ที่ใช้งานอยู่ของผู้มีส่วนเกี่ยวข้องทั่วโลก ซึ่งสมาชิก ACM สามารถอ่านได้โดยไม่มีค่าใช้จ่าย ส่วนผู้ที่ไม่ได้เป็นสมาชิกสามารถซื้อหรืออ่านข้อมูลสรุปได้
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา 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,["# Vendor Test Suite and infrastructure for Android 10 and lower\n\nThe Android Vendor Test Suite (VTS) provides extensive new functionality for\nAndroid testing and promotes a test-driven development process. To help the\nAndroid development community interact with test data, Android includes the\nfollowing testing resources:\n\n- [Video Tutorials.](/docs/core/tests/vts/vts-video) Describes the videos on running and developing VTS and CTS-on-GSI on Android 9 and Android 8.1.\n- [Systems Testing with VTS.](/docs/core/tests/vts/systems) Describes how to use VTS to test an Android native system implementation, set up a testing environment, then test a patch using a VTS plan.\n- **Test Framework.** Provides details on using the VTS test framework. Includes:\n - [Device shell commands](/docs/core/tests/vts/shell-commands). Instructions on how to use device shell commands to execute target-side test binaries, to get/set properties, environment variables, and system information, and to start/stop the Android framework.\n - [Test templates](/docs/core/tests/vts/test-templates). Details on configuring and using test templates for test modules that are not host-side Python subclass of VTS runner's BaseTest.\n - [Service name aware HAL\n testing](/docs/core/tests/vts/sna-hal-testing). Details on Android 9 support for obtaining the service name of a given HAL instance based on the device on VTS is running.\n - [HAL testability check](/docs/core/tests/vts/hal-testability). Details on Android 9 support for a runtime method that uses the device configuration to identify which VTS tests should be skipped for that device target.\n - [Multi-device\n testing](/docs/core/tests/vts/multi-device-testing). Instructions for configuring tests that require interaction between multiple Android devices.\n - [VTS testing with debug ramdisk](/docs/core/tests/vts/vts-on-gsi). Instructions on how to use a debug ramdisk to enable running VTS with a generic system image (GSI).\n- **VTS Dashboard.** Web-based user interface for viewing VTS results. Includes details on:\n - [Setup](/docs/core/tests/vts/setup). Instructions for setting up and configuring the VTS Dashboard.\n - [Database](/docs/core/tests/vts/database). A scalable back-end to support the continuous integration dashboard.\n - [User Interface](/docs/core/tests/vts/ui). A cohesive user interface that uses material design to effectively display information about test results, profiling, and coverage.\n- **Lab infrastructure.** Describes the architecture of an [automated testing\n infrastructure](/docs/core/tests/vts/automated-test-infra) for running VTS, CTS, or other tests on partner devices running the AOSP [Generic System Image (GSI)](/docs/setup/create/gsi). Requires a [Host Controller](/docs/core/tests/vts/host-controller).\n- [binder and hwbinder\n performance tests](/docs/core/tests/vts/performance). Tools for measuring throughput and latency.\n\n\nFor additional details, refer to the\n[Android\nVTS Products video](https://www.youtube.com/watch?v=7BX7oSHc7nk&list=PLWz5rJ2EKKc9JOMtoWWMJHFHgvXDoThva) produced by Google Developers, and the\n[Treble:\nFast Software Updates by Creating an Equilibrium in an Active Software\nEcosystem of Globally Distributed Stakeholders](https://dl.acm.org/doi/10.1145/3358237) paper, which is free\nfor ACM members and non-members can purchase or read the abstract."]]