Introduction to vbscript basics for writing good qtp tests

Page 1

Introduction To VBScript Basics For Writing Good QTP Tests Today we will check out the essential VB scripting ideas. VB script is the language that QTP utilizes for its tests. While QTP is a significant easy to understand tool, it is imperative for the tester to have the capacity to have a fundamental programming skill utilizing VB Script to have the capacity to viably make, keep up and execute QTP tests. It ought to be noticed that this article is not a thorough rundown of all the VB Script highlights. Consider this as a place that will acquaint you with certain key ideas to guide you while you endeavor to self-take in the dialect. Since the master perspective of QTP is a VB Script proofreader, it is an unquestionable requirement that we attempt to comprehend VBscript for QTP before we proceed onward to our articles on QTP Expert View. It ought to be noticed that this article is not a thorough rundown of all the VB Script features. Consider this as a place that will acquaint you with certain key ideas to guide you while you endeavor to selflearn the language. Since the master perspective of QTP is a VB Script editor, it is an unquestionable requirement that we attempt to comprehend VBscript for QTP before we proceed onward to our articles on QTP Expert View. 1. Data types: There is just a single data type: Variant. It can store various types of information in view of the context in which it is utilized. If utilized as a part of a numeric setting it is a number or a string if utilized as a part of a string expression. If a number needs to carry on as a string we can put it in inside " ". There are different subtypes to a variant. You can expressly indicate these subtypes to accomplish a reasonable definition for your data. Functions to convert can be utilized to change over one subtype of data into another. Since it is the sole data type accessible, all the return values from a function are variants. 2. Constants: As the name suggests a constant is only a constant value in a program that is allocated a name. They can be pronounced by prefixing "Const" to a name. Eg: Const a="10" or Const Astr="Preeti". This value can't be changed inadvertently while the script is running.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Introduction to vbscript basics for writing good qtp tests by poojadeshmukh - Issuu