dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.84k stars 1.67k forks source link

.NET MAUI UI Testing Strategy #11236

Open PureWeen opened 1 year ago

PureWeen commented 1 year ago

Summary

As a developer I can run tests against my application that exercise the UI as an end user and validate the results.

Tasks

ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

NickDarvey commented 1 year ago

@davidortinau, how likely is this to make into MAUI .NET 8? I see it's P1, does that mean absolutely-won't-ship-without-it? I'm trying to evaluate options here for cross-platform development.

Edit: https://github.com/dotnet/maui/blob/main/docs/ReleasePlanning.md So... likely?

Edit: #14488, #15191

James-McMenamin commented 11 months ago

@davidortinau, how likely is this to make into MAUI .NET 8? I see it's P1, does that mean absolutely-won't-ship-without-it? I'm trying to evaluate options here for cross-platform development.

Edit: https://github.com/dotnet/maui/blob/main/docs/ReleasePlanning.md So... likely?

Edit: #14488, #15191

With EoL on Xamarin approaching at breakneck speeds we still have no viable option for testing applications in MAUI, or even hope on the horizon. Would love to know the answer to this. @davidortinau

dedevXamarin commented 9 months ago

Is there any word on this? Xamarin.UITest is very reliable. It's sad to see something that works pretty well die like this. I assume I'll have to write all of my tests from scratch in appium?

christian26A commented 3 months ago

Is there any word on this? Xamarin.UITest is very reliable. It's sad to see something that works pretty well die like this. I assume I'll have to write all of my tests from scratch in appium?

AppCenter will retire next year. Were you able to work on appium? We are also using Xamarin.UITest and planning to look for an alternative.

AdamDiament commented 3 months ago

We use Xamarin UI test, and the tests do run on our MAUI android app locally after we upgraded from Xamarin. However, REPL is broken which makes further development a lot harder. With app center now slated for retirement next year, it looks like we need a new framework - is Appium the MS recommended / supported way now? e.g.

https://learn.microsoft.com/en-us/samples/dotnet/maui-samples/uitest-appium-nunit/

AdamDiament commented 3 months ago

Just found this, where microsoft recommend browserstack as the supported ui testing platform. Browserstack does not support Xamarin UI test, but it does support Appium for C# https://learn.microsoft.com/en-us/appcenter/retirement