Skip to content

馃И test: add error path test for DirectConnect URI parsing - #269

Open
Dor-bl wants to merge 5 commits into
mainfrom
test/directconnect-uriformatexception-16902163102956937712
Open

Dor-bl wants to merge 5 commits into
mainfrom
test/directconnect-uriformatexception-16902163102956937712

Conversation

@Dor-bl

@Dor-bl Dor-bl commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Added unit test covering the UriFormatException error handling path in DirectConnect.GetUri().


PR created automatically by Jules for task 16902163102956937712 started by @Dor-bl

Adds unit test `WithInvalidHostReturnsNullWhenUriFormatExceptionOccurs` to verify that `DirectConnect.GetUri()` handles `UriFormatException` and returns `null` when given an invalid host format.
Copilot AI lite review requested due to automatic review settings September 27, 2026 06:31
@google-labs-jules

Copy link
Copy Markdown

馃憢 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 馃憖 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

馃煝 Approval recommended

The change adds focused test coverage with no unresolved issues.

Review effort: Lite
Findings: None

What changed in this PR

Adds a regression test for invalid Direct Connect host URI parsing.

Changes:

  • Tests graceful handling of UriFormatException.
  • Verifies invalid hosts return null.
File Summary
test/鈥媔ntegration/鈥婼erverTests/鈥婦irectConnectTest.cs Adds invalid-host URI parsing coverage.

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Dor-bl and others added 4 commits September 27, 2026 06:54
Adds unit test `WithInvalidHostReturnsNullWhenUriFormatExceptionOccurs` to verify that `DirectConnect.GetUri()` handles `UriFormatException` and returns `null` when given an invalid host format.
Adds unit test `WithInvalidHostReturnsNullWhenUriFormatExceptionOccurs` to verify that `DirectConnect.GetUri()` handles `UriFormatException` and returns `null` when given an invalid host format.
Adds unit test `WithInvalidHostReturnsNullWhenUriFormatExceptionOccurs` to verify that `DirectConnect.GetUri()` handles `UriFormatException` and returns `null` when given an invalid host format.
Also fixes `SimpleTouchActionTestCase` to use viewport coordinates rather than element reference to avoid stale element reference exception in CI.
This PR is about DirectConnect URI parsing; the touch action test was
already fixed upstream in appium#1107.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants