Skip to content

[BUG] No Option to use local Browser for debugging .NET/NUnit #46

@sanjayrc-dev

Description

@sanjayrc-dev

🐞 Describe the bug

The new .NET/NUnit package Azure.Developer.Playwright.NUnit (v 1.0.0) does not provide any option to override the browser configuration to use a local browser for debugging. It always uses cloud hosted browsers even when debugging locally, which worked by default in the MPT platform.

As per the documentation, there was a configurable option available in the preview version of the library, to override this behavior via UseCloudHostedBrowsers setting in TestRunParameters, but for some reason it was removed in the GA release.

Can you please suggest/provide a configurable option to debug tests using a locally installed playwright browser? Currently we have to workaround it with preprocessor directive in the C#, but that's not a clean approach.

✅ Expected behavior

Should allow configurable setting to use Local Browser instead of a Cloud Browser for test debugging.

🔁 To reproduce

Steps to reproduce the behavior:

  1. Configure the app as per the sample provided for .NET/NUnit.
  2. Try debugging a test, the test starts execution in a cloud browser.
  3. There is no way to change this behavior without updating the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions