Showing posts with label Automation. Show all posts
Showing posts with label Automation. Show all posts

Wednesday, February 11, 2009

Automating UI Testing

Automating UI testing is one of topics that I recently became interested in, not because I am trying to be a tester yet; but because we are implementing an automated UI test engine as part of my current development project in ITWorx.

I have to thank Dr. James McCaffrey for authoring his book “.NET Test Automation Recipes: A Problem-Solution Approach”; this book was really the base that get my foot on the road and encouraged me to dig into this mysterious world.

He was as well very helpful when be contacted and asked; guiding his readers into the right direction.

Someone would ask; why did we go into developing our own thing while there are lots of tools to do the same job ? the answer would take more time if I like to describe the business requirements that lead to this decision, but in short we had to make this as part of another application and hence buying a tool was not an option to avoid expensive licensing costs.

Some of the already existing tools that I stumbled upon are:

  • HP's QuickTest Pro
  • Eggplant
  • IBM Rational Robot

I have also written few posts around this topic, they worth checking here

Thursday, October 25, 2007

Microsoft UI Automation Library

As part of Windows Vista, Microsoft has released the new GUI automation library available through the .NET Framework 3.0, so it works on Windows Vista, Windows XP and Windows Server® 2003. Moreover, it works seamlessly with both Windows Presentation Foundation UIs and HWND-based applications.

For more information:

http://msdn2.microsoft.com/en-us/library/ms747327.aspx

http://msdn.microsoft.com/msdnmag/issues/07/03/Bugslayer/default.aspx

http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=352&SiteID=1




Monday, October 22, 2007

Automate applications using VBScript

I have just discovered a nice feature in Windows Script Host; which is the SendKeys method in the WScript.Shell class.

Using this method to send a stream of key strokes to another application would allow for remote automation or (for example) creating application tutorials.

Cut the following code, paste in a text file and give it .vbs extension, double click the file to run it and watch J


 

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run "notepad"

WScript.Sleep 100

WshShell.AppActivate "Untitled - Notepad"

WScript.Sleep 100

WshShell.SendKeys "Hello"