A partire dal 27 marzo 2025, ti consigliamo di utilizzare android-latest-release
anziché aosp-main
per compilare e contribuire ad AOSP. Per ulteriori informazioni, vedi Modifiche ad AOSP.
Vendor Test Suite e infrastruttura per Android 10 e versioni precedenti
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
La Android Vendor Test Suite (VTS) fornisce nuove funzionalità per i test di Android e promuove un processo di sviluppo basato sui test. Per aiutare la comunità di sviluppo Android a interagire con i dati di test, Android include le seguenti risorse di test:
- Tutorial video.
Descrive i video sull'esecuzione e lo sviluppo di VTS e CTS-on-GSI su Android 9 e Android 8.1.
- Test di sistema con VTS.
Descrive come utilizzare VTS per testare un'implementazione di sistema nativo Android, configurare un ambiente di test e poi testare una patch utilizzando un piano VTS.
- Framework di test. Fornisce dettagli sull'utilizzo del framework di test VTS. Sono inclusi:
- Comandi shell del dispositivo.
Istruzioni su come utilizzare i comandi della shell del dispositivo per eseguire i binari di test lato target, per ottenere/impostare proprietà, variabili d'ambiente e informazioni di sistema e per avviare/arrestare il framework Android.
- Modelli di test.
Dettagli sulla configurazione e sull'utilizzo dei modelli di test per i moduli di test che non sono una sottoclasse di Python lato host di BaseTest del programma di esecuzione VTS.
- Test HAL consapevole del nome del servizio. Dettagli sul supporto di Android 9 per ottenere il nome del servizio di una determinata istanza HAL in base al dispositivo su cui è in esecuzione il VTS.
- Controllo di testabilità HAL.
Dettagli sul supporto di Android 9 per un metodo di runtime
che utilizza la configurazione del dispositivo per identificare i test VTS da saltare per il dispositivo di destinazione.
- Test su più dispositivi. Istruzioni per la configurazione dei test che richiedono l'interazione tra più dispositivi Android.
- Test VTS con ramdisk di debug. Istruzioni su come utilizzare un ramdisk di debug per consentire l'esecuzione di VTS con un'immagine di sistema generica (GSI).
- Dashboard VTS. Interfaccia utente basata sul web per visualizzare i risultati del VTS. Sono inclusi dettagli su:
- Configurazione. Istruzioni per l'impostazione e la configurazione della dashboard VTS.
- Database. Un backend scalabile per supportare la dashboard di integrazione continua.
- Interfaccia utente. Un'interfaccia utente coesa che utilizza il Material Design per visualizzare in modo efficace informazioni su risultati dei test, profilazione e copertura.
- Infrastruttura del lab. Descrive l'architettura di un'infrastruttura di test automatico per l'esecuzione di VTS, CTS o altri test su dispositivi partner con Generic System Image (GSI) AOSP.
Richiede un controller host.
- Test di rendimento di binder e hwbinder. Strumenti per misurare la velocità effettiva e la latenza.
Per ulteriori dettagli, consulta il
video sui prodotti VTS per Android prodotto da Google Developers e il
documento Treble: aggiornamenti software rapidi mediante la creazione di un equilibrio in un ecosistema software attivo di stakeholder distribuiti a livello globale, che è senza costi per i membri dell'ACM e che i non membri possono acquistare o leggere l'abstract.
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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."]]