Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test Automation] More elegant handling of platform incompatibilities
When writing tests using InteractionTestUtil and InteractiveTest[Api], you can now specify how you want to handle a known situation in which an action might not work on a particular platform, in a particular binary or environment, in a particular job, etc. Examples include running a test with the Screenshot() verb outside of a pixel_tests job, or trying to activate an inactive surface on some flavors of Linux (it is, for example, not currently possible to raise a window programmatically in vanilla Wayland). This provides us with an elegant way of handling known incompatibilities. Test-writers are given the option - if they know a particular step might fail due to such an incompatibility - to specify exactly how the test should handle the faulty step. Options include: - Fail (default) - Skip the test - Halt the test (and succeed if there are no other errors) - Ignore the step and continue Specifying anything but the default requires a reason directly in the code itself, as this is an override of expected behavior and may limit test coverage depending on how it is used. Tests are provided at every level to ensure correct behavior. Bug: 1396074 Change-Id: I93a1bef95fcef6e917ceefc2efb546e4fccd5b2a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4114944 Reviewed-by: Erik Chen <erikchen@chromium.org> Reviewed-by: Kuan Huang <kuanhuang@chromium.org> Commit-Queue: Dana Fried <dfried@chromium.org> Cr-Commit-Position: refs/heads/main@{#1085188}
- Loading branch information
Dana Fried
authored and
Chromium LUCI CQ
committed
Dec 19, 2022
1 parent
3b11b90
commit d913cb9
Showing
37 changed files
with
1,331 additions
and
566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.