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. 3) Execute a block of statements when condition is True, otherwise execute another block of statements 4) Decide among several alternates … Read more

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 7) Subtraction 8) Concatenation ———————- Example: Dim a, b, c a = 10 b = 3 c = a ^ b … Read more

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) Secondary Memory – HDD, DVD, USB drives etc… 2) Declaration of Variables Variables can be declared using either Public or Private … Read more

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 disable from execution > Syntax: Use Rem command before the statement followed by space. Use ‘ symbol before the statement Ex: … Read more

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 data type is Variant. Using VarType function we can check data sub-type Ex: Dim a a =”abcd” a = 123 a … Read more

UFT Class 20

UFT Class 20 (Overview on VBScript) I) Introducing VBScript Visual Basic Scripting Edition > VBScript was launched in 1997 > Vendor: Microsoft > VbScript derived from VB Programming language > VBScript not a case sensitive language Ex: Dim a A = 100 Msgbox a ‘100 > VBScript ignores extra spaces Ex: Dim a a = … Read more

UFT Class 19

UFT Class 19 (Inserting Checkpoints Part-2, Inserting Output values) Inserting Checkpoints Part-2 (9) File content checkpoint It checks content of a flat file 10) Page checkpoint It checks number of Links, number of images of a webpage and creating time of the page. 11) Image checkpoint It checks image object properties 12) Table Checkpoint It … Read more

UFT Class 18

UFT Class 18 (Inserting Checkpoints Part -1) UFT Test Process Enhancing Tests Inserting Checkpoints What is Checkpoint? It is a verification point, takes expected result from the User(Tester), compares with actual Results and provides Test Result. Types of Checkpoints (9 + 3) 1) Standard Checkpoint It checks object properties values. 2) Text Checkpoint It checks … Read more

UFT Class 17

UFT Class 17 (Synchronization, Checkpoints Part-1) Synchronization UFT with AUT What is Synchronization? UFT AUT It is a process of matching the speeds of UFT tool and AUT, in order to get proper execution and Result. Why Synchronization? During Test execution UFT gives instructions one by one with same speed, but AUT takes less time … Read more

UFT Class 16

UFT Class 16 (Environment Variables) What are Environment Variables? They are global variables depends on operating system environment. Purpose of Environment Variables Centralized Maintenance of Variables Tests portability ————————————————– Note 1: Whenever we want to use any variable in multiple Tests then choose Environment variables. Note 2: Whenever you want use any variable in a … Read more