Page 1 of 1

WinForms to WPF

Posted: Mon Jul 08, 2019 9:37 pm
by SirCook3141
After spending months creating tests, our dev team swapped the main menu of our application from WinForms to WPF. Now all of my tests fail, (as they all use the main menu extensively). Is there a way for Ranorex to automagically adapt from WinForms to WPF?

Re: WinForms to WPF

Posted: Tue Jul 09, 2019 7:45 am
by odklizec
Hi,

There is definitely no automatic way to convert WinForms-based repo to WPF-based repo. You will have to update each repo item manually (using Ranorex Spy). There is unfortunately no other way. The good thing is, that your scenarios may stay unchanged, depending of the level of UI changes.

Re: WinForms to WPF

Posted: Wed Sep 04, 2019 10:50 am
by reku
SirCook3141 wrote:
Mon Jul 08, 2019 9:37 pm
After spending months creating tests, our dev team swapped the main menu of our application from WinForms to WPF. Now all of my tests fail, (as they all use the main menu extensively). Is there a way for Ranorex to automagically adapt from WinForms to WPF?
Sorry to say buddy, but how far I know there is no automatic process as of now. Hopefully they will bring soon!

Regards,
Reku Smith
Tutuapp ShowBox Kodi

Re: WinForms to WPF

Posted: Wed May 26, 2021 12:04 pm
by DrPsyche
SirPhD wrote: ↑
Is there any online converter/tool to do my assignment and convert my Windows forms to WPF XAML Forms?
I've heard about an online Win2WPF converter, but have never used it myself.
Read this article > Converting WinForms to WPF: Should you consider it? by DevToolsGuy on infragistics.com

Re: WinForms to WPF

Posted: Wed May 26, 2021 1:19 pm
by doke
Hi,

Can you move all your (modified) menu-items to a rooted folder in the repo ?
this would make modification probably easier.

The repo file is editable with text editor, so (regex) replacement can be done on content.
If the end part of your xpath is still the same you only have to change the rooted folder or the left part(s) of x-path.

Hope this helps!
Don