E2E test framework for tests with complex environment requirements.
Bumping min Python version requirement to 3.11. Modernized the repo's packaging mechanism. Removed legacy code and dependencies.
AdbProxy
.get_available_host_port
is now deprecated and will be removed
in the next major release. Please rely on the OS to allocate ports.fastboot
calls.Full Changelog: https://github.com/google/mobly/compare/1.12.2...1.12.3
Bug fixes and improvements to better support users who construct their own
suite based on test_runner
APIs and suite_runner
.
This release introduces the new generic Mobly snippet base client and the new Android snippet client built on top. The new snippet base enables us to better scale Mobly snippets across various platforms.
The old Android snippet client is now considered deprecated, and will be removed in the following release. Please update your code accordingly:
snippet_client
-> snippet_client_v2
snippet_event
-> mobly.snippet.callback_event
callback_handler
-> callback_handler_v2
The generate_setup_tests
stage is renamed to pre_run
to better reflect its
true role: steps that happen before all the test case methods are finalized.
This is a pure rename with no functional changes. Please migrate your code as
the generate_setup_tests
stage will stop working completely in the next
release.
DEBUG
via cli arg.generate_setup_tests
stage is now pre_run
.repeat
and retry
of test cases.android_device
now picks up fastboot
devices if given *
.psutil
in favor of native Py3
features.This release focuses on code quality improvement, refactoring, and legacy code removal.
Py2-specific workarounds and deprecated APIs are removed in this release. We are also refactoring to use 2-space indentation and unit test system.
repeat
and retry
.monsoon
controllerThis release contains minor fixes and improvements.
AndroidDevice
_print_test_name
.This is likely the last major release that preserves Py2 compatibility.
AndroidDevice
now has a new is_emulator
property.AndroidDevice
.utils.concurrent_exec
.Due to the standardization of output files for both Mobly and AndroidDevice
controller, if you have custom parser of Mobly outputs, you need to adjust
your parsing logic to accommodate the changes.
AndroidDevice
's output files have been standardized #633test_bed
to testbed
in code #641AndroidDevice
's service manager behavior for reboot and USB disconnect.TestRunner#run
. Suite users have to explicitly use the new logger context around TestRunner#run
.BaseTestClass
as a context as it has been a no-op for several releases.BaseTestClass#clean_up
which was deprecated in 1.8.1.AndroidDevice#load_sl4a
.AdbProxy
.AndroidDevice
service managementAndroidDevice
's getprop
calls, including caching.http://mobly.readthedocs.io
show all the classes
properly.