UFT Class 21 ( VBScript Fundamentals in addition to Features) 1) Comments To brand the code readable To brand the code disable from execution 2) Data Types VBScript supports implicit annunciation of Data Types. …
UFT Class 27 ( VBScript Built inwards Functions) ----------------------------- 1) Abs Function (It returns absolute value) Dim val val = 100.75 Msgbox Abs(val) '100.75 val = 100.25 Msgbox Abs(val) '100.25 Msgbox Abs(…
UFT Class 28 (VBScript Built inwards Functions part-2, Many to Many Comparisons Example) 28) CreateObject Function It creates an automation object inwards a specified class. Examples: Dim objFso 'Create File System Object…
VBScript Tutorial 4: (VBScript Conditional together with Loop Statements) I) VBScript Conditional Statements i) Execute a Statement when status is True. Syntax: If Condition Then Statement Example: Dim myDate myDate = #10/1…
VBScript Tutorial 5 ( VBScript Functions) I) VBScript User defined Functions i) Create a Sub Procedure amongst no Arguments Sub Login () SystemUtil.Run "C:\Program Files\HP\Unified Functional Testing\samples\flight\…
User Defined Functions inwards VBScript VBScript Functions > In Structured Programming (Ex: C Language) nosotros purpose Functions (Built-in too user defined). > In Object Oriented Programming (ex: Java) nosotros…
VBScript Built inwards Functions 1) Asc Function It returns ANSI grapheme code for start out missive of the alphabet of a string or number. 'A to z (65 to 90) 'a to z (97 to 122) '0 to nine (48 to 57) Example: Di…