Monthly Archive: March 2015

UFT Class 30 0

UFT Class 30

UFT Class 30 (VBScript File System Operations Part-2, Excel Object Model Part-1) ‘Read Test Data from a Text file and perform Data Driven Testing for Login Functionality. Dim objFso, objTextstream, myLine, myField Set objFso...

UFT Class 29 0

UFT Class 29

UFT Class 29 (VBScript File System Operations) > What is Computer File System? It is a feature of Operating System, used to work with Drives, Folders and files. Computer understands things in terms of...

UFT Class 28 0

UFT Class 28

UFT Class 28 (VBScript Built in Functions part-2, Many to Many Comparisons Example) 28) CreateObject Function It creates an automation object in a specified class. Examples: Dim objFso ‘Create File System Object, It is...

UFT Class 27 0

UFT Class 27

UFT Class 27 (VBScript Built in 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(100.60) ‘100.6 val = -100.85...

UFT Class 26 0

UFT Class 26

UFT Class 26 (VBScript Loop Statements Part-2, VBScript Functions Part-1) VBScript Loop Statements Part-2 I) For…Next II) While…Wend III) Do While / Until…Loop a) Using While keyword It repeats a block of statements while...

UFT Class 25 0

UFT Class 25

UFT Class 25 (VBScript Conditional Statements Part-2, VBScript Loop Statements) Usage of VBScript conditional statements 1) Execute a statement when condition is True/Simple if. 2) Execute a block of statements when condition is True....

UFT Class 24 0

UFT Class 24

UFT Class 24 I) VBScript Operators a) Arithmetic Operators: Arithmetic Operators return value based result. ————————— 1) Exponentiation ^ 2) Multiplication * 3) Division / 4) Integer Division \ 5) Modules mod 6) Addition...

UFT Class 23 0

UFT Class 23

UFT Class 23 (VBScript variables, Operators-1) III) VBScript Variables 1) What is Variable? A named memory location to store the data. Two types of Memory in Computer Environment: i) Primary Memory – RAM ii)...

UFT Class 22 0

UFT Class 22

UFT Class 22 (VBScript Comments, Data Types) I) Comments in VBScript Comments are English words, we write comments for Code documentation. > Purpose of Comments: To make the code readable To make the code...

UFT Class 21 0

UFT Class 21

UFT Class 21 (VBScript Fundamentals and Features) 1) Comments To make the code readable To make the code disable from execution 2) Data Types VBScript supports implicit declaration of Data Types. In VBScript, only...