Tagged: VBScript for UFT

VBScript FileSystemObject Part-2 0

VBScript FileSystemObject Part-2

VBScript FileSystemObject Part-2 1) Write data Continuously in a Text file. Dim objFso, objTextstream, num1, num2, Res num1=10 : num2 =20: Res=num1 + num2 Res2=num1*num2 Set objFso = CreateObject(“Scripting.FileSystemObject”) Set objTextstream = objFso.OpenTextFile(“C:\Users\G C...

VBScript Excel Object Model Part-2 0

VBScript Excel Object Model Part-2

VBScript Excel Object Model Part-2 1) Read Test data from Excel file and perform Data driven testing for Login Functionality. And write/export Test Result and Error Message to the same file. Dim objExcel, objWorkbook,...

VBScript Database Objects 0

VBScript Database Objects

  VBScript Database Objects 1) Database Connection Object It is used to connect to Databases. (* Database Connection String only varies from One Database to another) Create Database Connection Object Set variable = CreateObject(“Adodb.Connection”)...

Error Handling and Debugging Tests in UFT 0

Error Handling and Debugging Tests in UFT

Error Handling and Debugging Tests in UFT 1) Error Handling using VBScript: Handling expected and unexpected errors. Expected Errors Whenever we use invalid input then we expect errors. Note: We use invalid input for...

 User Defined Functions in VBScript 0

 User Defined Functions in VBScript

 User Defined Functions in VBScript  VBScript Functions > In Structured Programming (Ex: C Language) we use Functions (Built-in and user defined). > In Object Oriented Programming (ex: Java) we use Methods (Built-in and user...

VBScript Built in Functions 0

VBScript Built in Functions

VBScript Built in Functions 1) Asc Function It returns ANSI character code for first letter of a string or number. ‘A to z (65 to 90) ‘a to z (97 to 122) ‘0 to...

VBScript FileSystemObject 0

VBScript FileSystemObject

VBScript FileSystemObject File System Operations i) What is Computer File System? It is a feature of Operating system used to work with Drives, Folders and Files. ii) Examples for File System Operations Create a...

VBScript Tutorial 10 0

VBScript Tutorial 10

VBScript Tutorial 10 (Error Handling, Debugging Scripts) Error Handling using VBScript: Handling expected and unexpected Errors > Expected Errors: Whenever we use Invalid input then we can expect Errors. Note: We use Invalid input...

VBScript Tutorial 9 0

VBScript Tutorial 9

VBScript Tutorial 9 (VBScript Excel Application Operations – 2, Database Operations and Dictionary Object) Excel Data Comparison Examples: 1) Read data from an Excel file and Compare 2 Columns (One to One Binary Comparison)....

VBScript Tutorial 8 0

VBScript Tutorial 8

VBScript Tutorial 8 (Excel Object Model in VBScript) Excel Application operations using Excel Application Object Excel Application Object: It is used to perform operations on Excel Application. Create Excel Application Object: Set Variable =...