VBScript Operators

VBScript Operators

VBScript Operators, Arithmetic operators, Comparison or Relational Operators, Logical Operators, and Operator Precedence in VBScript. Operators in VBScript Operators are used to performing the mathematical, comparison, and logical operations. Categories of operators: 1. Arithmetic Operators 2. Comparison Operators 3. Logical Operators * Concatenation operators (Part of Arithmetic Operators) Operator precedence: Operator precedence is VBScript operator … Read more

Introduction to VBScript

Introduction to VBScript

Introduction to VBScript, What is VBScript?, Scripting Languages vs. Programming Languages, and VBScript Programming Fundamentals. Introduction to VBScript 1. What is VBScript? 2. Scripting Languages versus Programming Languages 3. Usage of VBScript 4. VBScript Fundamentals and Features 1. What is VBScript? Visual Basic Script (VBScript) is a component-based scripting language developed by Microsoft. It is … Read more

VBScript Syntax Rules and Guidelines

VBScript Tutorial

VBScript Syntax Rules and Guidelines, Introduction to Visual Basic Scripting Edition, VBScript Syntax, and VBScript coding standards. VBScript Syntax Rules and Guidelines 1. Case-sensitivity: By default, VBScript is not case sensitive and does not differentiate between upper-case and lower-case spelling of words, for example, in variables, object and method names, or constants. For example, the … Read more

Software Testing Study Material

Software Testing Full Course Material

Software Testing Study Material, Software Test Levels, Software Test Types, Software Test Design Techniques, and Software Test Life Cycle. Software Testing Full Course Material 1.0. Software Development Life Cycle (SDLC) Software Development Life Cycle 2.1. SDLC Models – Waterfall Model Waterfall Model 2.2. SDLC Models – V Model V Model 2.3. SDLC Models – Spiral … Read more

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 Excel Object Model

VBScript Excel Object Model It is used to Perform Operations on Excel Application. Excel Application Excel File / Excel Workbook Excel Sheet / Excel Worksheet Create Excel Application Object Syntax: Set variable = CreateObject(“Class value”) example Set objExcel = CreateObject(“Excel.Application”) VBScript Excel Scripting Examples: 1) Create an Excel file Dim objExcel Set objExcel = CreateObject(“Excel.Application”) … Read more

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 REDDY\Desktop\abc.txt”, 2) objTextstream.Write “Addition of num1, num2 is: “&Res objTextstream.Write “Multiplication of num1, num2 is: “&Res2 objTextstream.Close Set objTextstream = Nothing … Read more

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 for Negative Testing. > Unexpected Errors i) Resource missing ii) Insufficient Resource iii) Resource Response How to Handle Errors: i) Using … Read more

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 = CreateObject(“Excel.Application”) ———————- Excel Application Excel Workbook / File Excel Worksheet / Sheet Excel File Operations using VBScript Examples: 1) Create an … 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