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.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Android UIConductor
(UICD) è uno strumento che consente agli utenti di creare flussi di lavoro di test registrando le interazioni con l'interfaccia utente e convalidando i contenuti della schermata. OmniLab ATS supporta l'esecuzione di test esportati da UICD.
Configura
Per eseguire i test UICD con OmniLab ATS, devi importare la configurazione di UIConductor, che contiene le suite di test e le azioni del dispositivo necessarie.
Apri Impostazioni e vai alla scheda Set di configurazione.
Fai clic su Importa e seleziona l'insieme di configurazione UIConductor. Potresti dover
autorizzare OmniLab ATS ad accedere a Google Cloud Storage.
Figura 1. Importazione della configurazione di UIConductor
Esegui test
Pianifica un test di UIConductor (in Suite di test >
UIConductor). Questa suite di test può essere utilizzata per eseguire qualsiasi test UICD esportato.
Figura 2. Pianificazione di un'esecuzione di test UICD
Aggiungi Install UIConductor per installare i driver UICD necessari.
Figura 3. Aggiunta dell'azione del dispositivo richiesta
Seleziona i test UICD da eseguire. Per impostazione predefinita, il file deve essere un'archiviazione zip contenente file di test JSON esportati da UICD.
Figura 4. Selezione dei file di test da eseguire
Avvia l'esecuzione del test e attendi il completamento. Gli screenshot, i dump XML e i log
generati durante l'esecuzione saranno disponibili nei file di output.
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,["# Run UIConductor tests with OmniLab ATS\n\n[Android UIConductor](https://github.com/google/android-uiconductor)\n(UICD) is a tool that lets users create testing workflows by recording UI\ninteractions and validating the screen content. OmniLab ATS supports running\ntests exported from UICD.\n| **Note:** Avoid sharing the same host machine for both OmniLab ATS and UICD as this could introduce unnecessary conflict.\n\nSetup\n-----\n\nTo run UICD tests with OmniLab ATS, you must import the **UIConductor**\nconfiguration, which contains the necessary test suites and device actions.\n\n1. Open **Settings** and navigate to the **Config Sets** tab.\n\n2. Click **Import** and select the **UIConductor** config set. You might need to\n authorize OmniLab ATS to access Google Cloud Storage.\n\n **Figure 1.** Importing the UIConductor configuration\n\nRun tests\n---------\n\n1. Schedule a **UIConductor Test** test run (under **Test Suites** \\\u003e\n **UIConductor**). This test suite can be used to run any exported UICD tests.\n\n **Figure 2.** Scheduling a UICD test run\n | **Note:** UICD global variables can be set by adding `--global-variables default \"`\u003cvar translate=\"no\"\u003ekey=value,key2=value2,...\u003c/var\u003e`\"` to the command line. Do not include the $ prefix in the key names.\n2. Add the **Install UIConductor** to install the necessary UICD drivers.\n\n **Figure 3.** Adding the required device action\n3. Select the UICD tests to run. By default, the file is expected to be a zip\n archive containing JSON test files exported from UICD.\n\n **Figure 4.** Selecting the test files to execute\n | **Note:** To export your test files from UICD, either right-click a test case or folder and **Download** or click **Project** \\\u003e **Export Zip** to download all test cases marked as \"top level.\"\n4. Start the test run and wait for completion. Screenshots, XML dumps, and logs\n generated during the run will be available in the output files."]]