QTP tutorials & interview questions


Search more on QTP here

VBScript in QTP

VBScript- Property Let, Property Get, Property Set New

Example of VBScript- Property Let, Property Get, Property Set New

Scripting language for Quick Test Professional (QTP) is VBScript.

VBScript (short for Visual Basic Scripting Edition) is a lively Scripting language interpreted via Microsoft's Windows Script Host.

VBScript has many powerful functions and provides excellent support for variables, data types, and error handling.

Two script engines can interpret VBScript- VBScript.dll, which is invoked by asp.dll is used in web environment and Wscript.exe & Cscript.exe in Windows GUI environment using Windows script Host (WSH, We typically use VBScript within WSH to automate systems administration tasks. WSH is the system module that transforms a VBScript file into a Windows executable file). Wscript.exe is used to display output and receive input in Windows GUI format such as dialog and input boxes. Cscript.exe is used in a command-line environment. When VBScript source code is contained in stand-alone files, they have the file extension .vbs.

VBScript Variable
VBScript Arrays
VBScript Functions and Subroutines
VBScript Conditional Statements
VBScript Looping Statements

VBScript Classes

Important VBScript Date & Time Functions at one place, so you don’t have to go anywhere else when you need to look at them. (10 more added e.g. DatePart, DateSerial, MonthName, TimeValue, WeekdayName etc.)