Coder Social home page Coder Social logo

Comments (18)

cosminstirbu avatar cosminstirbu commented on August 16, 2024 4

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.

from appcenter.

JohnH-FF avatar JohnH-FF commented on August 16, 2024 2

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.

from appcenter.

cosminstirbu avatar cosminstirbu commented on August 16, 2024 1

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.

from appcenter.

mzhukovs avatar mzhukovs commented on August 16, 2024 1

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?

from appcenter.

Oddj0b avatar Oddj0b commented on August 16, 2024

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

from appcenter.

 avatar commented on August 16, 2024

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

from appcenter.

Oddj0b avatar Oddj0b commented on August 16, 2024

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

from appcenter.

rido-min avatar rido-min commented on August 16, 2024

Can you consider the WinAppDriver ?

from appcenter.

cosminstirbu avatar cosminstirbu commented on August 16, 2024

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

from appcenter.

 avatar commented on August 16, 2024

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

from appcenter.

JKennedy24 avatar JKennedy24 commented on August 16, 2024

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

from appcenter.

AvaJV avatar AvaJV commented on August 16, 2024

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

from appcenter.

winnie avatar winnie commented on August 16, 2024

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!

from appcenter.

JKennedy24 avatar JKennedy24 commented on August 16, 2024

@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

from appcenter.

hassanuz avatar hassanuz commented on August 16, 2024

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.

from appcenter.

jmegner avatar jmegner commented on August 16, 2024

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?

from appcenter.

 avatar commented on August 16, 2024

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.

from appcenter.

 avatar commented on August 16, 2024

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.

from appcenter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.