New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] add automated UI test for UWP apps #25
Comments
Thanks for request @JanabiSoft. As I'm not familiar with the UWP UI Testing scene, is there a specific testing framework you would prefer? |
hi @Oddj0b i'm not sure about the cloud but locally can be done with windows application driver and appium |
@JanabiSoft Thanks for the input, having UWP devices available is only half the work the other half is supporting a testing framework. Getting input from customers is an important step in making the right choice. |
Appium already has support for UWP, but unfortunately AppCenter doesn't support the C# Appium client. (as per - #102) An alternative would be to add UWP support to Xamarin.UITest. Either way, currently there is no possibility to write C# UI automated tests that can run on all three platforms: iOS, Android and UWP. |
Can you consider the WinAppDriver ? |
I'm not sure I understand the question. WinAppDriver is basically Appium, since it is used by Appium under the hood on UWP. |
@cosminstirbu You mentioned earlier that it is not possible to write C# UI automated tests that can run on all three platforms, what about writing 2 test systems one for mobiles and one for windows, is it possible? |
Well, right now we do in fact write C# UI automated tests for all three platforms using Appium and the .NET Appium Client. However, we run the iOS and Android ones on emulators created on Azure Devops hosted macOS Agents and the UWP on a OnPremise Windows 10 Agent. However, it would be great if we could run the iOS and Android tests on real devices on AppCenter. Writing two UI tests codebases, one for iOS / Android and one for UWP is not an option for us - too much maintenance overhead. |
Yes would be fantastic to use Xamarin UI Test for a Xamarin Forms project for all 3: iOS, Android, and UWP - seems logical. Will this be taken on any time soon? |
Xamarin.UI test can work with UWP. The Xamarin.Forms team implemented Xamarin.UI test for UWP: It just hasnt been merged into the official Xamarin.UITest. The way I see it working is using Xamarin.UITest as the testing framework and WinAppDriver, exactyl how the forms team currently do it: If you want to run on physical deviced attached you can run via an ethenet cable: Be nice if the appcenter team could play around with the idea of supporting UWP automated testing. I think a couple of teams need to communicate with each other at Microsoft to bring it all together though |
Any movement on this? As a company we need to decide if we will go 'all-in' on Xamarin.UITest, but we will need test coverage in iOS, Android and UWP. |
Any update on this? |
Hi @AvaJV no updates yet but it's something we're considering. in the meantime, we recommend trying out WinAppDriver: https://github.com/microsoft/WinAppDriver. Happy to connect you to that team if you'd like to learn more. Thanks! |
@winnieli1 I've got UWP UI tests (using the WinAppDriver and the Xamarin.Forms implementation of the UWP wrapper https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Core.Windows.UITests/WinDriverApp.cs) but I haven't found a way to automate them using Visual Studio Online. Even following this: https://github.com/microsoft/WinAppDriver/wiki/WinAppDriver-in-CI-with-Azure-Pipelines Still can't get them to automate |
Hi @JKennedy24, What kind of errors are you running into? Are you using a public "MS-hosted" agent or a private one? Feel free to create a new ticket on the WinAppDriver board and tag me. |
@JKennedy24 Is there an issue or pull request that I can follow so I can be alerted when the merge completes? |
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment. |
This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion. |
What App Center service does this feature apply to?
Testing
Describe the solution you'd like
add automated UI test for UWP apps.
Describe alternatives you've considered
none.
The text was updated successfully, but these errors were encountered: