feat: add AWS Device Farm provider with comprehensive test coverage#255
Open
bheemreddy-samsara wants to merge 1 commit intoempirical-run:mainfrom
Open
Conversation
This release introduces complete AWS Device Farm integration for mobile app testing, enabling teams to run tests on real devices in AWS's device cloud. Features: - Complete AWS Device Farm provider implementation for Android and iOS - Automated app upload with intelligent ARN persistence across test runs - Remote session management with proper cleanup on failures - Automatic video recording and download capability for test sessions - Flexible configuration with custom capabilities and session parameters - Support for both explicit appArn and buildPath configurations Critical Fixes: - Preserve appArn during provider construction for explicit configurations - Stop AWS remote sessions when WebDriver.newSession fails to prevent leaks - Add required app capability for Appium sessions to work out of the box - Handle AWS signature query parameters correctly in WebDriver connections - Implement async cleanup callbacks for proper resource management - Fix video download stream handling for node-fetch v3 compatibility Technical Improvements: - Added comprehensive test suite with 15 tests covering all functionality - Implemented proper async cleanup callbacks for resource management - Enhanced error handling with descriptive error messages - Added support for AWS region configuration - Improved WebDriver connection handling with query parameter support - Added pre-commit hooks to prevent lint errors - Minor refactoring in emulator provider for cleaner code This enables Playwright tests to run on real devices via AWS Device Farm with automatic video capture attached to test reports.
🦋 Changeset detectedLatest commit: d454246 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive AWS Device Farm integration for mobile app testing, enabling teams to run tests on real devices in AWS's device cloud.
Features
Technical Details
Configuration Example
This provider enables teams to leverage AWS Device Farm's extensive device library for comprehensive mobile testing without maintaining physical device labs.
Testing
All tests pass: