Releases: google/mobly
Mobly Release 1.13: SL4A Removal and Test Suite Improvements
Removed all SL4A related code. Improved test suite mechanism.
New
- Support test case selection and listing for test suites.
- Support selecting test cases within single test class using regular
expressions. - Record suite meta information in the test summary file.
- Support
fastbootcommand execution with customized binary path. - Support
fastbootcommand execution using the latest serial when the device
changes its serial during a test. - Support getting the service alias by service class.
Breaking Changes
- Removal of all SL4A related code.
- Removal of the
generate_setup_testsstage, which was deprecated in version
1.12.
Fixes
- Improved the error message for snippet loading errors.
- Updated documents and docstrings.
Mobly Release 1.12.4: Improvements
Maintenance release with small improvements and fixes.
New
- Introduced
apk_utilsmodule for Android apk install/uninstall.
Fixes
- Bugs in snippet client.
- Noise in console output on Mac.
Mobly Release 1.12.3: Proper Repeat and Retry Reporting
Bumping min Python version requirement to 3.11.
Modernized the repo's packaging mechanism.
Removed legacy code and dependencies.
New
- Support am instrument options in snippet client.
- Support adb reverse in
AdbProxy. - Improved mechanism for tracking repeat and retry records in test report.
Breaking Changes
- [Deprecation]
get_available_host_portis now deprecated and will be removed
in the next major release. Please rely on the OS to allocate ports.
Fixes
- Eliminated redundant
fastbootcalls.
Full Changelog: 1.12.2...1.12.3
Mobly Release 1.12.2: Improve Support for Custom Suites
Bug fixes and improvements to better support users who construct their own
suite based on test_runner APIs and suite_runner.
Fixes
- Make print test case name feature usable.
- Ensure default log path exists.
- Missing info in test records are now populated.
- Enable Android devices in bootloader mode to be picked up in registration.
Mobly Release 1.12.1: Minor Improvements and Fixes
New
- A logger adapter that makes it easier for modules to add their own log line prefixes
Fixes
is_emulatorproperty now works for Cuttlefish image- Handle SIGTERM properly
- Fixed missing result fields and output directories
Mobly Release 1.12: New Snippet Base Client and a New `pre_run` Stage
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_v2snippet_event->mobly.snippet.callback_eventcallback_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.
New
- Added the new Mobly snippet base client.
- Added the new Android snippet client v2 based on the new base client.
- Support changing Mobly's logger level to
DEBUGvia cli arg. - Termination signal type is now included in result records.
Breaking Changes
- The old Android snippet client is deprecated.
- The
generate_setup_testsstage is nowpre_run.
Fixes
- Various issues in the Android snippet client.
Mobly Release 1.11.1: Support Test Case repeat and retry.
New
- Native support for
repeatandretryof test cases. - Additional assertion APIs.
android_devicenow picks upfastbootdevices if given*.
Fixes
- Removed the usage of
psutilin favor of nativePy3features.
Mobly Release 1.11: Py2 Deprecation and Repeat/Retry Support
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.
New
- Framework support for test case level
repeatandretry.
Breaking Changes
- Removal of Py2 support
- Removal of the
monsooncontroller
Fixes
- Various improvements in Android device controller
- More metadata collected for test runs
Mobly Release 1.10.1: Incremental fixes
Mobly Release 1.10.1: Incremental fixes
This release contains minor fixes and improvements.
New
- API for taking screenshots in
AndroidDevice - Option to change the logging verbosity of the Mobly snippet client. The
default logging size is now capped.
Fixes
- Resource leakage in
_print_test_name. - IDE compatibility.
- Bugs in unit tests.
Mobly Release 1.10: Framework and `AndroidDevice` Output Improvements
This is likely the last major release that preserves Py2 compatibility.
New
AndroidDevicenow has a newis_emulatorproperty.- Better multi-user support in
AndroidDevice. - Standardized logging and output file names.
- Improvement in
utils.concurrent_exec. - Support class-based decorator on Mobly test methods.
Breaking Changes
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.
- Major change in output directory structure #650
- Names of
AndroidDevice's output files have been standardized #633 - Changed multiple references of
test_bedtotestbedin code #641
Fixes
AndroidDevice's service manager behavior for reboot and USB disconnect.