-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Android device type check and improve UI Test cake scripts (#…
…24495) * Improve Android device type check to use screen size For Android visual tests, they should be run with the right device image (currently a Nexus 5X API 30). However, there's no easy way to check the device type for Appium. The check that was there before works on CI since the DEVICE_SKIN environment variable is set there (set by the android.cake script). And it can work locally if folks run android.cake then launch VS from that console session to get the env variable - but it doesn't work if VS is run separately (normal case). So update this with a different check. Getting the actual Android device type requires using adb. We might eventually do that, but for now just use a screen size check as a proxy for the device type. Also update the failure message to give good instructions. * Add a "uitest-prepare" target to android.cake uitest-prepare will build the test app, launch the emulator, and deploy the test app. But it won't actually run any tests. * Validate that JAVA_HOME is set Also display the Android image name * Check Android device capabilties for a match * Add uitest-prepare target for ios.cake to match android
- Loading branch information
1 parent
9486321
commit 566b859
Showing
4 changed files
with
50 additions
and
23 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