Re: [Pywinauto-users] pywinauto with a .NET application using WindowsForms
Status: Alpha
Brought to you by:
mcmahon_m
|
From: Jason L. <jla...@nc...> - 2012-10-26 12:04:09
|
Thanks for the responses! I'll check these out.
On 10/24/2012 3:59 AM, Vasily V. Ryabov wrote:
Hello Jason,
pywinauto doesn't support all .NET controls. Probably you need IronPython<http://ironpython.codeplex.com/> for .NET automation.
You can see few examples here: http://gui-at.blogspot.com/search/label/guiat (see posts "Building the framework (1)-(3)").
Analogue of pywinauto can be developed using described approach. But it seems no one did it.
Also you may have some problems with connection to already running application because the framework runs a main form in another thread of the same process as the test script. This approach<http://www.codingthewheel.com/archives/how-to-inject-a-managed-assembly-dll> may help to implement such functionality in separate processes.
Best regards,
-Vasily.
2012/10/24 Jason Lawrence <jla...@nc...<mailto:jla...@nc...>>
We are in the process of coding QA automation for a Windows .NET application. When I use the PrintControlIdentifiers, I am seeing a lot of generic WindowsForms results. I am not seeing menu's or other attributes that would show in a normal windows GUI...
'2' 'WindowsForms10.Window.8.app.0.33c0d9d3'
WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T124, R359, B658)
'3' 'WindowsForms10.Window.8.app.0.33c0d9d4'
WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T124, R355, B389)
'4' 'WindowsForms10.Window.8.app.0.33c0d9d5'
WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T151, R355, B389)
'5' 'WindowsForms10.Window.8.app.0.33c0d9d6'
WindowsForms10.Window.8.app.0.33c0d9d - '' (L162, T151, R355, B389)
A good return:
'15' 'TreeView2'
WindowsForms10.Window.8.app.0.33c0d9d - 'Network Profiles' (L162, T393, R355, B420)
Most of the GUI is either menu dropdowns (I don't see) or grids with data. I suspect that the .NET classes above have the menu and grid data inside them, but I don't know how to use pywinauto to access them (besides using the .Click(coords=))
Thanks!
Jason Lawrence
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Pywinauto-users mailing list
Pyw...@li...<mailto:Pyw...@li...>
https://lists.sourceforge.net/lists/listinfo/pywinauto-users
--
Jason Lawrence
QA Engineer
706-974-9499
jla...@nc...<mailto:jla...@nc...>
[cid:par...@nc...]
|