commit | 7615950aec96cd5df2c0b52699842650eb0865a6 | [log] [tgz] |
---|---|---|
author | nelsonli <nelsonli@google.com> | Thu Dec 06 15:45:27 2018 +0800 |
committer | Nelson Li <nelsonli@google.com> | Thu Dec 06 09:05:01 2018 +0000 |
tree | 0aa3aa18d78c3ca2091c3fafba57d2405dde501f | |
parent | 402857dc0a54e589dba6332e13721adecabac0da [diff] |
Atest: Raise TradeFedExitError when encountering unbalanced events. Since Tradefed event-unbalanced issue has been fixed, Atest can now raise TradeFedExitError when encountering real unbalanced(unpaired) events. BUG: 120114859 BUG: 119239432 Test: 1. ./atest_run_unittests.py The unittest of test_process_event_not_balanced() in atest_tf_test_runner_unittest.py 2. (a) vi cts/tests/autofillservice/src/android/autofillservice/cts/AuthenticationActivity.java add the following lines to let it crash. private void doIt() { if (true) { throw new IllegalStateException("ATEST, Y U NO RECOVER?"); } (b) atest CtsAutoFillServiceTestCases Then, atest should run normally without stopping. Change-Id: I89bf270af80a462e86aa14f3664d64121f0bcf45
TF is a test harness used to drive Android automated testing. It runs on test hosts and monitors the connected devices, handling test scheduling & execution and device management.
Other test harnesses like Compatibility Test Suite (CTS) and Vendor Test Suite (VTS) use TF as a basis and extend it for their particular needs.
Building TF:
More information at: https://source.android.com/devices/tech/test_infra/tradefed/