WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Is there a way to migrate CodedUI to Appium or re use the Coded UI components in Appium?

Open RamakrishnanRajaram opened this issue 3 years ago • 2 comments

We have a matured framework in Coded UI in which around 16K+ cases are already automated. Since CodedUI tool is deprecated we decided to move to Appium using WinAppDriver. But it looks like all the basic methods like Login, searching etc.. needs to be developed from scratch. Is there a way to migrate CodedUI methods to Appium or at least use the CodedUI components in Appium?

RamakrishnanRajaram avatar Apr 18 '22 12:04 RamakrishnanRajaram

No there is no way, you need to rewrite the framework from scratch.

anunay1 avatar Apr 18 '22 12:04 anunay1

It converts using extensions. UIMap code does not convert. We re-wrote all of that.

Details:

  1. Use UITestControl classes and remove as WPF...
  2. There is no scroll logic AutomationPatterns are not implemented here. So you will need to create them.
  3. Extend the UITestControl to support .Click() and extend AppiumWebElement to support the missing UITestControl functions by using AppiumWebElement.GetAttributes("")
  4. There are some manual changes in how order of the elements are found.

Lastly, take this opportunity to seperate your tests from the testing framework. Make a seperate library that depends on the framework and is consumed at the test level. Also note WinAppDriver can run along side CUIT. So the migration can be slow.

liljohnak avatar Apr 18 '22 14:04 liljohnak