Tagged: UFT functions

VBScript Tutorial 5

VBScript Tutorial 5

VBScript Tutorial 5 (VBScript Functions) I) VBScript User defined Functions i) Create a Sub Procedure with no Arguments Sub Login () SystemUtil.Run “C:\Program Files\HP\Unified Functional Testing\samples\flight\app\flight4a.exe” Dialog(“Login”).Activate Dialog(“Login”).WinEdit(“Agent Name:”).Set “asdf” Dialog(“Login”).WinEdit(“Password:”).SetSecure “5566695dab8b9f47c06f8ba443bdba84f0d5274e” Dialog(“Login”).WinButton(“OK”).Click End...

UFT Class 27

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...