b/25371149 Owner:wiley

Clone this repo:
  1. 9c5db19 Merge upstream-main. am: 480bc27115 am: 0dfc391aee am: 40dc43029b am: 16e1162548 am: f7603d8e85 by Xin Li · 1 year, 11 months ago android-u-rb-dp-10-gpl android14-dev android14-mainline-healthfitness-release android14-qpr1-release android14-qpr1-s2-release android14-qpr2-release android14-qpr2-s1-release android14-qpr2-s2-release main master aml_cfg_341510000 aml_hef_341114030 aml_hef_341311010 aml_hef_341415040 aml_hef_341512030 aml_rkp_341012000 aml_rkp_341015010 aml_rkp_341114000 aml_rkp_341311000 aml_rkp_341510000 android-14.0.0_r16 android-14.0.0_r17 android-14.0.0_r18 android-14.0.0_r19 android-14.0.0_r20 android-14.0.0_r21 android-14.0.0_r22 android-14.0.0_r23 android-14.0.0_r24 android-14.0.0_r25 android-14.0.0_r26 android-14.0.0_r27 android-14.0.0_r29 android-14.0.0_r30 android-14.0.0_r31 android-15-dp-2-gpl android-u-qpr1-beta-1-gpl android-u-qpr1-beta-2.2-gpl android-u-qpr2-beta-1-gpl android-u-qpr2-beta-2-gpl android-u-qpr2-beta-3-gpl android-u-qpr3-beta-1-gpl android-u-qpr3-beta-2-gpl android-u-rb-dp-10-gpl
  2. f7603d8 Merge upstream-main. am: 480bc27115 am: 0dfc391aee am: 40dc43029b am: 16e1162548 by Xin Li · 1 year, 11 months ago main-16k-with-phones android-u-beta-1-gpl android-u-beta-2-gpl android-u-beta-3-gpl android-u-beta-4-gpl
  3. 16e1162 Merge upstream-main. am: 480bc27115 am: 0dfc391aee am: 40dc43029b by Xin Li · 1 year, 11 months ago
  4. 40dc430 Merge upstream-main. am: 480bc27115 am: 0dfc391aee by Xin Li · 1 year, 11 months ago main-16k android-t-qpr1-beta-2-gpl
  5. 0dfc391 Merge upstream-main. am: 480bc27115 by Xin Li · 1 year, 11 months ago

Autotest: Automated integration testing for Android and ChromeOS Devices

Autotest is a framework for fully automated testing. It was originally designed to test the Linux kernel, and expanded by the ChromeOS team to validate complete system images of ChromeOS and Android.

Autotest is composed of a number of modules that will help you to do stand alone tests or setup a fully automated test grid, depending on what you are up to. A non extensive list of functionality is:

  • A body of code to run tests on the device under test. In this setup, test logic executes on the machine being tested, and results are written to files for later collection from a development machine or lab infrastructure.

  • A body of code to run tests against a remote device under test. In this setup, test logic executes on a development machine or piece of lab infrastructure, and the device under test is controlled remotely via SSH/adb/some combination of the above.

  • Developer tools to execute one or more tests. test_that for ChromeOS and test_droid for Android allow developers to run tests against a device connected to their development machine on their desk. These tools are written so that the same test logic that runs in the lab will run at their desk, reducing the number of configurations under which tests are run.

  • Lab infrastructure to automate the running of tests. This infrastructure is capable of managing and running tests against thousands of devices in various lab environments. This includes code for both synchronous and asynchronous scheduling of tests. Tests are run against this hardware daily to validate every build of ChromeOS.

  • Infrastructure to set up miniature replicas of a full lab. A full lab does entail a certain amount of administrative work which isn't appropriate for a work group interested in automated tests against a small set of devices. Since this scale is common during device bringup, a special setup, called Moblab, allows a natural progressing from desk -> mini lab -> full lab.

Run some autotests

See the guides to test_that and test_droid:

test_droid Basic Usage

test_that Basic Usage

Write some autotests

See the best practices guide, existing tests, and comments in the code.

Autotest Best Practices

Grabbing the latest source

git clone https://chromium.googlesource.com/chromiumos/third_party/autotest

Hacking and submitting patches

See the coding style guide for guidance on submitting patches.

Coding Style

Pre-upload hook dependencies

You need to run utils/build_externals.py to set up the dependencies for pre-upload hook tests.

Setting up Lucifer

Setting up Lucifer