VBScript Tutorial for Beginners

VBScript Tutorial

VBScript Tutorial for Beginners, VBScript Environment, VBScript Language fundamentals, VBScript control flow, and VBScript object models. Introduction: • Visual Basic Scripting Edition is a lightweight language from Microsoft. • VBScript derived from VB Programming language. • VBScript is not a case-sensitive language. • VBScript is a lightweight language and it has fewer formalities for writing … Read more

VBScript Tutorial 7

VBScript Tutorial 7 (VBScript File System Operations Part-2) 6) Create a Text file Note: File System Object is only used for Drives, Folders and Flat files. We can create and delete other types of also, but we can’t perform internal operations like Reading, Writing etc… Dim objFso Set objFso = CreateObject(“Scripting.FileSystemObject”) objFso.CreateTextFile “C:\Users\gcreddy\Desktop\QTP.txt” objFso.CreateTextFile “C:\Users\gcreddy\Desktop\QTP.doc” … Read more

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 = CreateObject(“Scripting.FileSystemObject”) Set objTextstream = objFso.OpenTextFile(“C:\Users\G C Reddy\Desktop\UFT.txt”) objTextstream.SkipLine Do Until objTextstream.AtEndOfStream = True myLine = objTextstream.ReadLine myField = Split(myLine, “, … Read more