Category: Automation

Test Automation Class Update; European Dates

May 19, 2010 by Marcus Tettmar in Announcements, Automation, Testing

Randy has just reported on his blog that the first run of his new Test Automation class which features Macro Scheduler in the hands-on exercises was a great success. The next class will be held next month in Rome, Italy on 16/17 June, where Randy will also be presenting a workshop entitled “Innovative Software Testing […]

Read more »

Remove Unnecessary Obstacles

May 14, 2010 by Marcus Tettmar in Automation

When considering how to automate something, it’s often worth thinking about whether or not you can change the process a little first. An example that often comes up is the need to automate the retrieval and processing of a particular email message. Many people will already have a manual process that involves, not surprisingly, their […]

Read more »

Run All Macros in a Folder/Group

May 7, 2010 by Marcus Tettmar in Automation, Scripting

Someone asked me today how to run all macros found in a folder. This simple script will run all macros it finds in its own folder in turn: GetFileList>%SCRIPT_DIR%\*.scp,MacroFiles Separate>MacroFiles,;,Macros If>Macros_count>0 Let>k=0 Repeat>k Let>k=k+1 Let>this_macro=Macros_%k% If>this_macroSCRIPT_FILE Macro>this_macro Endif Until>k=Macros_count Endif Note the check to make sure it doesn’t run itself! This could be useful where […]

Read more »

Why Does My Script “Hang” and Never Continue?

January 27, 2010 by Marcus Tettmar in Automation

This is a variation of a question we get regularly. Usually it turns out that the script is waiting on a WaitWindowOpen line because of a typo in the window title. WaitWindowOpen, given a window title, will cause the script to wait until a window with that title exists. If you misspell the window title […]

Read more »

Tis the Season to .. Automate

December 2, 2009 by Marcus Tettmar in Automation, General

Crumbs, is it really already December? Christmas always seems to creep up on me unprepared. Always so much to do and organise. Most people will be winding down and spending time with friends and family. But in our modern 24×7 culture many businesses still keep running. Web sites and servers still need monitoring, reports generating, […]

Read more »

How to Sort a CSV File

November 5, 2009 by Marcus Tettmar in Automation, Scripting

This morning, forum user hip asked how a script could sort a CSV file. Seems CSV files, sorting and Excel has become a bit of a hot topic here lately. Since Excel can read and save to CSV and also has a Sort function we might as well make use of it. Here’s a little […]

Read more »

Convert XML to CSV

October 30, 2009 by Marcus Tettmar in Automation, Scripting

Earlier this month I wrote about how you can read and write data from/to CSV files as if they were database tables using DBQuery. Andrew asked if I knew of a way that XML files could be treated as database tables in the same way. I did find a couple of references to some ODBC […]

Read more »

Determine IE Version and Automate IE Dialogs

August 28, 2009 by Marcus Tettmar in Automation, Scripting

If you are automating web pages or web applications you may at some point need to automate dialog boxes produced by client side script, like the one that pops up when you click the link below: Confirm Popup So you might want to be aware that the title of these popups varies between different versions […]

Read more »

The Power of DOS: Looping Through Subfolders

August 25, 2009 by Marcus Tettmar in Automation, Scripting

Twice today, for two different people, I needed to write some code to iterate through files in a tree of subfolders. The subfolder structure could not be known up front and there may be any number of subfolders and any number of folders deep. One could use GetDirList iteratively, or use VBScript’s FileSystem Object. But […]

Read more »