13
Jan 12

QTP – Saving your test run data

You can’t actually modify the data permanently in the datatable associated with the test script during a test run but there are two approaches you can take in order to save the data into an external file that you can use later. 

06
Jan 12

QTP “AddWastedTime” function

QuickTest Pro Tips & Tricks: This article compliments the post “QTP Performance Testing for a Single User” found on my website.  During the process of logging how long a process takes, you may know that you have some processing time that you do not want to take into account.  You may have some “wait” statements [...]

05
Jan 12

VBScript InputBox function

QuickTest Pro Tips & Tricks: You can spawn an Edit Box from within your QuickTest Pro test script using the “InputBox” VBScript function.  This function will open up an Edit box where you can type in a value.  The help syntax is as follows:

24
Dec 11

QTP Performance Testing for a Single User

Performance testing can be done with QTP, but in a limited scope – only from a single user standpoint, for functional testing.  Years ago when the “QTP VUser” for LoadRunner was introduced they incorporated the “start_transaction” & “end_transaction” functions.  These are used by LoadRunner for tracking performance timings for load testing, but you can also [...]

06
Nov 11

Changing Test Settings During Test Execution

Category: ASI General, Programming, QuickTest Pro, Sample Code, Tools | Comments Off

QTP Coding Tip: There are a variety of test setting in QuickTest Pro, and you can change the Test Settings in QuickTest Pro from within your test script during test execution if you have a need to.  Some examples are as follows. Changing Object Synchronization Timeout from within a QTP script:

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 [...]

15
Aug 11

VBScript Date Formats

Using a built-in VBScript Date function, you can easily get the current date (or another date using a formula) in a variety of common formats without having to worry about trying to write your own function to format the date into a specific layout.  This can save you a ton of time.  The function is

05
Apr 11

QTP v11 Help Documents

QuickTest Professional (QTP) is a great test automation tool used for functional testing.  It is the “cadillac” of the testing tools with tons of features and interfaces.  It’s strength can also be its weakness; it is very robust with numerous capabilities however this can also be very overwhelming and confusing to people new to the tool and test [...]

11
Mar 10

Why Declare a Variable in VBScript?

VBScript is a very flexible scripting language that provides full programming capabilities for various implementations.  VBScript is the programming language used by QuickTest Pro, so when you are in the Expert View doing some advanced programming you will regularly create variables and use them to hold various data values.  All variables in VBScript are of [...]

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 [...]