If you are looking for a code visualization tool, then you may wish to try Visustin v6 Flow Chart Generator. Though certainly not cheap, it supports VB Script (among a wide array of other languages), brings along a remarkable array of features and, not less important, showcases an impressive list of firms actually using it. …
Category Archive: VB Script
Aug 27 2012
Mar 12 2010
In traditional test automation, if an unexpected message box came up, such as a printer error message, the script would either halt, or it would have to contain numerous checks at different places in case such a window came up. Some testing tools allow you to set “traps” that will respond to simple message boxes by specifying the message box and the button to click, but if your tool lacks that, or if it’s more complex to deal with the dialog than simply pressing a dismiss button, then the script will be unable to respond to it, and the test will fail for reasons completely unrelated to the test.
Jan 11 2010
For the entire time I’ve been working with HP QuickTest Pro and VBScript, I have had a yearning for real object support. Specifically, inheritance and polymorphism. I am a big fan of reusing every piece of code I can, and these two attributes contribute more to my productivity than any other concept in software development.
In addition, at one point when we were performing a refactoring of our automation framework
Sep 02 2009
This is a revised version of a previous QTip that suggested a function to find a file deep-down a folder hierarchy starting from a known folder as root. The current implementation is much simpler to understand and robust. Please note that the function uses recursion. Enjoy! 1: ‘———————————————————————– 2: Public Function FindFileRecursively(ByVal strRootFolder, ByVal strFilename) …
May 26 2009
This QTip provides a function to find a function deep-down a folder hierarchy starting from a known folder as root.
Please note that the function uses recursion.
Dec 08 2008
Background and motivation A common frustrating experience is having your script pop-up an error dialog in some long-forgotten function, without one having the slightest clue in its regard. What usually follows is a series of trial-and-error breakpoint runs to determine which action the script was actually trying to perform when executing the function call that …
Oct 15 2008
ChangeLog: 5/10 : I’ve uploaded a new file with the fixed parser. Added support for code blocks with sensitive names (Function PrivateFunciton, Sub SpecialGet etc.) 10/10 : I’ve uploaded a new file with constructor arguments support, and a new regular expression engine (preserves comments and should make things go faster). Notice that the new file …
Sep 02 2008
Dealing with the many differing locale specifics is a major challenge when testing Web or multi-language applications that will be used in multiple countries. It’s becoming increasingly important, with the release of technologies such as Windows 2000, to be able to support these scenarios. The new locale features in VBScript are a small step toward …
Sep 02 2008
file attributes are like switches. If the switch for Hidden is on, the file is a hidden file. If the switch for Hidden is off, the file is not a hidden file. This analogy can be carried further by noting that light switches are typically under your control: you can choose to turn them on, …
Sep 01 2008
In this article we are about to see the efficiency of a dictionary when checking or retrieving values from a web-table, For this purpose we have the following table in our AUT. This is the script that will parse the table and will upload the dictionary. After running the script above, the solarExch dictionary loaded …