Open
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new iOS-specific API to launch an app with custom process arguments and environment variables via the mobile: launchApp execute-method, and validates it with an integration test.
Changes:
- Added
IOSCommandExecutionHelper.LaunchAppWithArgumentsto executemobile: launchAppwith optional arguments/environment. - Exposed the helper via
IOSDriver.LaunchAppWithArguments. - Added an iOS integration test covering launching an app with arguments and environment variables.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| test/integration/IOS/Device/AppTests.cs | Adds an integration test exercising the new launch-with-args API. |
| src/Appium.Net/Appium/iOS/IOSDriver.cs | Adds a public driver method that forwards to the iOS command helper. |
| src/Appium.Net/Appium/iOS/IOSCommandExecutionHelper.cs | Implements the execute-script helper for mobile: launchApp with args/env support. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
List of changes
This pull request adds support for launching iOS apps with custom process arguments and environment variables via the Appium .NET client. It introduces a new helper method, exposes it through the
IOSDriverAPI, and adds an integration test to verify the new functionality.iOS App Launch Enhancements:
LaunchAppWithArgumentstoIOSCommandExecutionHelperthat allows launching an app on an iOS device with optional command line arguments and environment variables, using themobile: launchAppAppium script.LaunchAppWithArgumentsfunctionality through theIOSDriverclass, making it available to client code.Testing:
CanLaunchAppWithArgumentsinAppTests.csto verify that an app can be launched with specific arguments and environment variables, and that it starts correctly in the foreground.Types of changes
What types of changes are you proposing/introducing to the .NET client?
Put an
xin the boxes that applyDocumentation
This can be done by navigating to the documentation section on http://appium.io selecting the appropriate command/endpoint and clicking the 'Edit this doc' link to update the C# example
Integration tests
Details
Please provide more details about changes if necessary. You can provide code samples showing how they work and possible use cases if there are new features. Also, you can create gists with pasted C# code samples or put them here using markdown.
About markdown please read Mastering markdown and Writing on GitHub