Skip to content
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

Closed
JanabiSoft opened this issue Feb 4, 2019 · 18 comments
Closed

[Feature] add automated UI test for UWP apps #25

JanabiSoft opened this issue Feb 4, 2019 · 18 comments
Assignees
Labels
feature request New feature request Stale test Related to the App Center Test service

Comments

@JanabiSoft
Copy link

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.

@joemellin joemellin added feature request New feature request test Related to the App Center Test service labels Feb 4, 2019
@joemellin joemellin assigned joemellin and unassigned joemellin Feb 4, 2019
@Oddj0b
Copy link
Contributor

Oddj0b commented Feb 4, 2019

Thanks for request @JanabiSoft. As I'm not familiar with the UWP UI Testing scene, is there a specific testing framework you would prefer?

@Oddj0b Oddj0b self-assigned this Feb 4, 2019
@JanabiSoft
Copy link
Author

hi @Oddj0b i'm not sure about the cloud but locally can be done with windows application driver and appium
https://medium.com/@yostane/automated-ui-testing-of-a-uwp-app-using-appium-dc10d8df6631

@Oddj0b
Copy link
Contributor

Oddj0b commented Feb 6, 2019

@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.

@cosminstirbu
Copy link

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.

@rido-min
Copy link
Member

rido-min commented Mar 6, 2019

Can you consider the WinAppDriver ?

@cosminstirbu
Copy link

I'm not sure I understand the question. WinAppDriver is basically Appium, since it is used by Appium under the hood on UWP.

@JanabiSoft
Copy link
Author

@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?

@cosminstirbu
Copy link

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.

@mzhukovs
Copy link

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?

@JKennedy24
Copy link

JKennedy24 commented Aug 7, 2019

Xamarin.UI test can work with UWP.

The Xamarin.Forms team implemented Xamarin.UI test for UWP:
https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Core.Windows.UITests/WinDriverApp.cs

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:
https://github.com/xamarin/Xamarin.Forms/tree/master/Xamarin.Forms.Core.Windows.UITests

If you want to run on physical deviced attached you can run via an ethenet cable:
https://tomsoderling.github.io/Wired-Debugging-on-Surface/

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

@JohnH-FF
Copy link

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.

@AvaJV
Copy link

AvaJV commented Oct 31, 2019

Any update on this?
Is this expected to be in soon or are there any alternatives?

@winnie
Copy link

winnie commented Nov 7, 2019

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!

@JKennedy24
Copy link

@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

@hassanuz
Copy link

hassanuz commented Nov 7, 2019

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.

@jmegner
Copy link

jmegner commented Feb 2, 2020

The Xamarin.Forms team implemented Xamarin.UI test for UWP:
https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Core.Windows.UITests/WinDriverApp.cs

It just hasnt been merged into the official Xamarin.UITest.

@JKennedy24 Is there an issue or pull request that I can follow so I can be alerted when the merge completes?

@Oddj0b Oddj0b removed their assignment Jul 9, 2020
@ghost ghost added the Stale label Jun 30, 2021
@ghost
Copy link

ghost commented Jun 30, 2021

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.

@ghost
Copy link

ghost commented Jul 15, 2021

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.

@ghost ghost closed this as completed Jul 15, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request Stale test Related to the App Center Test service
Projects
None yet
Development

No branches or pull requests