Marcus' Macro Blog

Mostly tips, tutorials, articles and news about Macro Scheduler & Windows Automation

Archive for the ‘Testing’ Category



Test Validation Techniques

Monday, May 11th, 2009

We recently received the following query to support:

I’m interested in Macro Schedular for GUI testing. How do I verify that the test has succeeded or not? 

I thought it would be useful to post my response here:

There are a number of ways you could do this. Which one you use might depend on the type of application you are automating, or your specific requirements. You could:

  • Capture object text to see if it contains the data you would expect using such functions as: GetControlText, GetWindowText or Windows API functions. See: http://www.mjtnet.com/AutomatedTesting.pdf
  • Capture object and other screen text using the Screen Scraping functions: GetWindowTextEx, GetTextAtPoint, GetTextInRect. Compare captured text to expected data. There’s a sample script called Text Capture which you can use to test what text you can capture. Run it, and point the mouse cursor at the text you want to capture and confirm you can see it on the dialog. See Screen Scrape Text Capture Example and Screen Scraping with Macro Scheduler
  • Compare visually: Capture screen shots (or just windows) and compare the captured bitmaps with bitmaps captured at design time. Use the ScreenCapture and CompareBitmaps functions. This solution has the benefit of working with ANY technology on ANY platform. When you create the routine you capture the screens as they should appear when valid. So at runtime after entering data and controlling the app the macro would capture the screen/window and then compare to the valid images thus determining success or failure. See: How to use Image Recognition
  • There may be other options, especially for non-UI processes, such as reading data from the apps database (using DBQuery) or reading from a text file (ReadLn, ReadFile) or CSV file, checking the existence of files etc – depending on what the application you are testing does and what signifies a valid outcome.

Are you using Macro Scheduler for automated testing?  What types of app are you testing and what methods are you using?  Please comment below.

[Post to Twitter] Tweet This

Automated Software Testing Success

Friday, December 5th, 2008

A couple of great posts in the new Software Testing forum are demonstrating the power of Macro Scheduler for automated testing.

Antonius Momac says in this post:

I’ve looked at more than 8 other automation tools. Some were from the big companies with many products like IBM (rational), HP/Mercury, and other more focused shops like Automated QA, Tethy Solutions, Redstone (eggplant) ….. However, the application I was putting under test was very particular. In fact, plain and simple, Macro Scheduler was the only tool that worked.

In this post Gale Dyvig said:

We found the problem with object orientated test tools like WinRunner, QTP, SilkTest, etc is the partial or nonexistant support for the objects under test. As new technologies are created the problem gets worse.

These tools have image based workarounds, but they need the script to specify the image location on the screen. We tried some workarounds based on a WINAPI command similar to GetPixelColor to find the images. It worked but was nowhere as well developed or convenient to use as Macro Scheduler’s FindImagePos. If you have bmp’s the images your application will display, you can write a script before the application is coded.

Macro Scheduler and AppNav are great because the same solution works for all technologies runnable on Windows. Because the solution is image based it works in development, independent test, and production environments.

Are you using Macro Scheduler for automated software testing? If so please post an introduction in the Software Testing forum. I’d love to know more about how people are using Macro Scheduler in automated software testing scenarios.

[Post to Twitter] Tweet This

New Forum for Software Testing

Thursday, November 6th, 2008

I have created a new forum dedicated to using Macro Scheduler for Automated Software Testing. So if you are using Macro Scheduler for software testing, please head on over and introduce yourself, post about your experiences and share any tips you might have.

[Post to Twitter] Tweet This

WebRecorder 1.74 Update

Monday, July 24th, 2006

A new version of WebRecorder is now available with the following changes:

- New function ContainsText added to IEAuto.DLL. This function simply determines whether or not the specified text is contained within the body of the page. This is a quick and easy way to determine an outcome and is ideal for automated testing.

- Fixed a bug in IEAuto.DLL which could cause a crash when calling WaitNewIE after a call to KillIE.

- Fixed a bug in the WebRecorder application which prevents a crash when a page is closed by a script in the page.

Downloads: Evaluation, Registered

[Post to Twitter] Tweet This

Test nicely and share …

Thursday, February 2nd, 2006

Really nice article over at StickyMinds by Lee Copeland: All I Ever Need to Know about Testing I Learned in Kindergarten.

[Post to Twitter] Tweet This

Automated Software Testing

Thursday, December 29th, 2005

People have been using Macro Scheduler for Automated Software Testing and Load Testing for years. I’ve often been asked the best way to do this, and I’ve finally gotten around to putting some articles together on how best to use Macro Scheduler for automated testing. You’ll find them here:
http://www.mjtnet.com/automated_testing.htm

Automated Software Testing:
http://www.mjtnet.com/AutomatedTesting.pdf

Automated Load Testing:
http://www.mjtnet.com/loadtesting.pdf

[Post to Twitter] Tweet This