aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2024-01-22Cache `AndroidDevice#model` to reduce fastboot calls (#910)Ang Li
fastboot calls are expensive and can increase USB flakiness when issued in large amount. So we should reduce fastboot calls whenever possible
2024-01-22Bump min Python ver to 3.11. (#909)Ang Li
Now that Python3 releases regularly, we will start bumping Mobly's required min Python version more frequently. Currently 3.11 is the oldest `bugfix` support level ver. So we are bumping to 3.11. Also remove usage of the deprecated `pipes`, and applied formatter
2024-01-07Count should only count retries and not repeats. (#906)boon
2023-12-28Add parent field to records to represent repeat and retry information. (#905)boon
This provides a generic way to mark the sequential relationship of test result records. The intention is to make it easier for downstream parsers to process test result records for repeat and retry cases. The `retry_parent` field is now deprecated in test result record.
2023-12-14Using tcp:0 in adb forward to pick available host port in snippet client (#904)Minghao Li
This avoids a race condition where the port picked by `portpicker` becomes occupied before adb can forward it.
2023-10-30Adding ability to run adb reverse via mobly AdbProxy, fixes #900 (#903)Sachin Sagadevan
2023-10-26Fix current formatting issues and add formatting check to CI workflow (#902)nkprasad12
* Switch to Pyink for formatting --------- Co-authored-by: Nitin Prasad <nkprasad@google.com>
2023-10-23Allow configuring snippet user. (#899)nkprasad12
Co-authored-by: Nitin Prasad <nkprasad@google.com>
2023-09-02Remove unused imports (#892)Sam Balana
2023-05-22Support am instrument options by adding a snippet config class (#886)Minghao Li
2023-04-25Do not start logcat service when the Andriod device is in fastboot mode. (#881)Ang Li
2023-04-25Properly end the test when expects has an error within teardown test. (#882)boon
2023-04-18Fix the print test list logic in `test_runner` (#878)Lucas Abel
2023-03-21suite_runner improvements (#875)Lucas Abel
As of the test runner: * Parse only known arguments. * Handle -l, --list_tests option. * Handle -tb, --test_bed option. * Handle -v, --verbose option. Also, do not force test name to only contains one dot `.` by passing `maxsplit=1` to `test_name.split`. This allow for more complex generated test names.
2023-02-14Fix unhandling of possible recursion error on `ExceptionRecord.__deepcopy__` ↵Lucas Abel
(#870)
2023-02-06Fix unit test failures on Python 3.11 (#869)Minghao Li
2023-02-02Progressively increase intervals between adb root attempts (#867)antofara
* Extend the longest possible wait for `adb root` because the low end devices require more time to reconnect after `adb root`. * Fix a typo
2023-01-13 Ensure the termination of the `teardown_class` record. (#864)Ang Li
2023-01-13Adjust timeout strategy for `AdbProxy#getprop` (#863)Ang Li
Because this command can take surprisingly long, like when the device used is a virtual device over network. * Extend the default timeout. * Allow custom timeout value.
2022-12-12Handle SIGTERM in Mobly. (#858)boon
2022-12-06Don't mutate BaseTestClass.record_data() argument. (#856)Jon Wolverton
2022-11-30Add debug logging for fastboot commands. (#854)Aidan Holm
This is equivalent in functionality to the existing logging for ADB commands. Co-authored-by: Aidan Holm <alfh@google.com>
2022-11-03Expose the method to set new log prefix in PrefixLoggerAdapter (#852)Minghao Li
2022-08-26Create a prefix logger adapter class to add prefix to logs (#849)Minghao Li
2022-08-15Always create the `AndroidDevice` object specific log directory. (#848)Ang Li
Create upon access if `log_path` doesn't exist
2022-08-02Fix calling `generate_tests` in the `setup_genearted_tests` stage. (#847)Ang Li
Although it is deprecated, we need to keep it working until the complete removal.
2022-08-01Rename the `setup_generated_tests` stage to `pre_run`. (#844)Ang Li
Users have identified more legit use cases where operations before `setup_class` are needed. The `setup_generated_tests` stage is essentially the stage before `setup_class`. Hence we are renaming it more properly.
2022-08-01Add a --verbose argument to the test_runner to set DEBUG logging level (#840)David Duarte
Co-authored-by: Ang Li <angli@google.com>
2022-07-20Deprecate legacy snippet modules after snippet client v2 migration (#841)Minghao Li
2022-06-30Flip the default Android snippet client version to V2 (#839)Minghao Li
2022-06-24Remove argv check. Check is already done in parse_cli_args and should be ↵boon
sys.argv[1:]. (#838)
2022-06-21Add termination signal type to record. (#837)Ang Li
So this information can be parsed more easily. Without this field, the parsers would need to use regex magic or make assumptions of the trace's format to get this info.
2022-06-17Support switching to client V2 via Android Device property setting (#835)Minghao Li
2022-06-16Add error type to `ExceptionRecord`. (#836)Ang Li
So it's easier for parsers to get this info.
2022-06-09ClientBase shouldn't call "stop" if "before_starting_server" failed (#834)Minghao Li
2022-06-03Standardize Async RPC for snippet client v2 (#826)Minghao Li
* Provide a simple abstract base class for callback handlers of all platforms. * Implement the callback handler v2 for Android.
2022-05-23Client V2 cleans event client when it stops (#825)Minghao Li
2022-05-21Fix typo in run_command (#810)nkprasad12
2022-05-19Create base suite class and add run_suite_class to suite runner. (#817)boon
2022-05-19Remove client v2's unit test's dep on subprocess (#823)Minghao Li
2022-05-19Event client clears host_port and device_port attribute (#822)Minghao Li
2022-05-18Fix the bug where event client is broken after reboot (#821)Minghao Li
2022-05-17Add a flag for whether to use Snippet Client V2 (#815)Minghao Li
2022-05-08Add Snippet Client V2 for Android, Step 2 (#808)Minghao Li
2022-05-05ClientBase should call "stop" if "before_starting_server" failed (#813)Minghao Li
2022-04-14Adding Snippet Client V2 for Android, Step 1 (#804)Minghao Li
2022-04-13Refactor snippet client v2's stop server method (#807)Minghao Li
2022-04-08Rename Snippet client v2's startup sequence steps (#806)Minghao Li
Rename the startup sequence steps (hopefully) for the better.
2022-03-22run yapf to fix format (#801)Minghao Li
2022-03-22Add a new base class for snippet client (#795)Minghao Li
This is the first PR to kick off the standardization of Mobly snippet client, which would enable us to scale the snippet mechanism to a broader set of platforms. Once the new snippet client code is proven, we will enable it by default and remove the old snippet client under `android_device_lib`.