Winfomr testing using CUITe

Aug 16, 2012 at 7:48 PM

Hi,

I'm investigating the applicability of CUITe with our Winforms application.  I want my CUITe test to attach to already running instance of our application.  I was trying something like below to attach to the top object (a Window) but I'm not sure where to go from here.  Any ideas?

CUITe.Controls.WinControls.CUITe_WinWindow myWindow = new CUITe.Controls.WinControls.CUITe_WinWindow("FrmMain");

Thanks

Jeff

 

Coordinator
Aug 21, 2012 at 10:09 AM

Hi Jeff,

You can attach to the process by calling Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest.FromProcess("myApp.exe");

Aug 22, 2012 at 3:31 PM

icnocop,

Thanks for the information.  I'll try that command.

Jeff