LayoutTitle

Hoverable Dropdown

VB Script for UFT


Introduction


VB Script is a language for the Unified Function Testing tool UFT formerly called as Quick Test Professional (QTP) , to develop the automation tests.

Below are the Keywords available to write a statement in UFT. These Keywords helps you to make use in designing the code/script as per the requirements. The more Keywords you are familiar then it will become easy for you to design the code quickly and efficiently in turn you can get to know the depth of the knowledge very easily. Once you are familiar with VB script, it helps in creating macros using excel sheets; to know more information refer macros using excel sheets section/tab/link.

For your easy-of-use, we can segregate the VB Script Keywords into following sections.


CategoryKeywords
Array handlingArray, Dim, Private, Public, ReDimIsArray  Erase  LBound, UBound
AssignmentsSet
CommentsRem or ' (Aphostophy)
Constants/LiteralsEmpty, Nothing,  Null,  True, False
Control flowDo...Loop, For...Next,  For Each...Next,  If...Then...Else,  Select Case,  While...Wend,  With
ConversionsAbs, Asc, AscB, AscW  Chr, ChrB, ChrW,  CBool, CByteCCur, CDateCDbl, CIntCLng, CSng, CStrDateSerial, DateValueHex, OctFix, IntSgn,  TimeSerial, TimeValue
Dates/TimesDate, TimeDateAdd, DateDiff, DatePartDateSerial, DateValueDay, Month, MonthNameWeekday, WeekdayName, YearHour, Minute, SecondNow,  TimeSerial, TimeValue
DeclarationsClass, Const,  Dim, Private, Public, ReDimFunction, SubProperty Get, Property Let, Property Set
Error HandlingOn Error, Err
ExpressionsEval, Execute,  RegExp,  Replace,  Test
Formatting StringsFormatCurrency, FormatDateTime,  FormatNumber,  FormatPercent
Input/OutputInputBox, LoadPicture,  MsgBox
LiteralsEmpty, False,  Nothing,  Null,  True
MathAtn, Cos, Sin, TanExp, Log, SqrRandomize, Rnd
MiscellaneousEval Function, Execute Statement,  RGB Function
ObjectsCreateObject, Err Object,  GetObject,  RegExp
OperatorsAddition (+), Subtraction (-)Exponentiation (^)  Modulus arithmetic (Mod)  Multiplication (*), Division (/)Integer Division (\)  Negation (-)  String concatenation (&)  Equality (=), Inequality (<>)Less Than (<), Less Than or Equal To (<=)Greater Than (>)  Greater Than or Equal To (>=)  Is  And, Or, XorEqv, Imp
OptionsOption Explicit
ProceduresCall Function, SubProperty Get, Property Let, Property Set
RoundingAbs, Int, Fix, RoundSgn
Script Engine IDScriptEngine, ScriptEngineBuildVersion,  ScriptEngineMajorVersion,  ScriptEngineMinorVersion
StringsAsc, AscB, AscWChr, ChrB, ChrWFilter, InStr, InStrBInStrRev  Join  Len, LenBLCase, UCaseLeft, LeftBMid, MidBRight, RightBReplace,  Space,  Split,  StrComp,  String,  StrReverse,  LTrim, RTrim, Trim
IsArray, IsDate,  IsEmpty,  IsNull,  IsNumeric,  IsObject,  TypeName,  VarType, Variants










No comments:

Post a Comment