Sharing here an alternative way of UI testing for Avalonia #12645
Replies: 4 comments 4 replies
-
I'd be interesting in tracking the progress of any alternative to Appium for UI testing. Appium is pretty unstable on desktop, and since WinAppDriver has been abandoned by MS we're stuck on Appium 1. |
Beta Was this translation helpful? Give feedback.
-
I recently tested FlaUI (https://github.com/FlaUI/FlaUI) which also worked with Avlonia (only did a very simple test for now). But only runs on Windows. |
Beta Was this translation helpful? Give feedback.
-
I recently posted a question on S.O. related to this topic. Does anybody know how to do E2E testing of an Avalonia 11 app on Linux? |
Beta Was this translation helpful? Give feedback.
-
I updated the code and it's a little better now
The code I shared works for all platforms |
Beta Was this translation helpful? Give feedback.
-
Hello,
I want to share here an idea that I made for UI tests on Avalonia.
There are currently two ways for UI tests on Avalonia: Headless UI testing and Appium.
Although they are good, I believe that an alternative way could be better.
Headless UI testing does not run on a visible app and I really would like to see this kind of testing visually.
Appium seemed a little complicated for having to install drivers and run on a separate process.
I also wanted to run UI tests on Release builds, as close as possible to a production build, for more trustworthiness (especially with new NativeAOT compilation).
Because of this, I made a simple UI test framework. It is far from perfect, but it shows the general idea. I based it on Android Espresso.
The link for the repo is: https://github.com/alexandrehtrb/AvaloniaUITestExample
Beta Was this translation helpful? Give feedback.
All reactions