How can I perform WPF Application GUI automate test with RF?

1,873 views
Skip to first unread message

Daniel Chen

unread,
Sep 26, 2011, 5:53:07 AM9/26/11
to robotframe...@googlegroups.com
 Hi all
I have tested windows application GUI automated test by using RF + AutoIt
But, since AutoIt can't observe WPF window elements, and seems they won't support WPF in the near feature, are there any other approach to test WPF applications with RF?
Thank you very much in advance.

Taylor, Martin

unread,
Sep 26, 2011, 7:52:31 AM9/26/11
to cho...@gmail.com, robotframe...@googlegroups.com

What’s a “WPF”?

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/robotframework-users/-/Qd5jbLcwRDYJ.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.

sandeep s

unread,
Sep 26, 2011, 8:13:09 AM9/26/11
to cmta...@ti.com, cho...@gmail.com, robotframe...@googlegroups.com
Chen,
I think u can use White as it does supports WPF(windows presentaiton framework) automation.
Plugining into the Robot would be a RPC calls i guess..or a Keyword expose.

Taylor,
Developed by Microsoft, the Windows Presentation Foundation (or WPF) is a computer-software graphical subsystem for rendering user interfaces in Windows-based applications.Its a terrible pain by the way to automate :D..

Sandi

David

unread,
Sep 26, 2011, 10:28:48 PM9/26/11
to robotframework-users
As Sandi mentions, White is good option. If you want to use RF, then
you'd have to build your own White library using either IronPython
(which may have compatibility issues with certain White .NET features)
or as remote library via XML-RPC via the C# implementation of the
remote server. Info on these can be found in the online docs for RF if
you really wanted to pursue them.

Another alternate option is to use Sikuli, but which also typically
requires you to build a Sikuli library (in Jython/Python or Java).
Sikuli is cross-platform image recognition based automation, so will
work with any technology, including WPF, based on locating objects as
images. Works well in my short evaluation. There's a link to
integrating Sikuli with RF on the RF project home page and docs.

tmpalaniselvam

unread,
Sep 27, 2011, 8:00:37 AM9/27/11
to robotframework-users
Hey,
You can develop your own RF library to support any DotNet controls
(WPF or Silverlight), if you or your team has good C# experience. I
have done earlier using C# and just have a ironpython file to call C#
library. It worked well.

Refer following links more about UIA.
MS UIA: http://msdn.microsoft.com/en-US/library/ms747327.aspx
The Microsoft UI Automation Library
Dr. James McCaffrey
http://msdn.microsoft.com/en-us/magazine/cc163288.aspx

http://www.codeproject.com/KB/WPF/WPF_UI_Automation.aspx
http://www.codeproject.com/KB/WPF/UIAutomation.aspx

Thanks & Regards,
Palani.
http://tips-testing.blogspot.com/index.html
Quote: Don’t hesitate to initiate!
Reply all
Reply to author
Forward
0 new messages