25
Aug 11

VBScript: Overflow error using CInt function

Tips & Tricks Series – Overflow error Ever get an “Overflow error” when using the CInt function?  You might encounter this error when you are doing some programming in your test script and doing some data manipulations or calculations.  Let’s review an example of a situation that could cause this to happen – a classic [...]

25
Jul 11

Redim a multi-dimensional array

Did you know that when it comes to redimensionalizing a multi-dimensional array in VBScript, you can only redimensionalize the last element (which is the columns) not the first element (which is the rows)?  This is true and can be rather annoying and limiting in scope.  Unfortunately you are stuck dealing with it so what this [...]

22
Jan 10

QTP: Send Outlook Email

QuickTest Pro sample code – sending an email using Outlook This QuickTest Pro code sample shows how you can create a subroutine that will send an email using Microsoft Outlook.  The subroutine is defined and can either be placed at the top of your script (must be executed first before it is called in order for [...]