This action might not be possible to undo. Are you sure you want to continue?
(In VBScript Orientation)
1) Introduction 2) Comments 3) VB Script Variables 4) VB Script Data Types 5) VB Script Operators 6) Input/Output Operations 7) Constants 8) Conditional Statements 9) General Examples 10)Loop Through Code 11)Procedures 12)Built-In Functions 13)VBScript syntax rules and guidelines 14)Errors 15)File System Operations 16)Test Requirements 17) Solutions 18)QTP Add-Ins Information 19) VBScript Glossary
For Complete Document Visit:
For Manual Testing documents visit:
For more QTP Information & Scripts visit: www.gcreddy.com
o o o VBScript is a scripting language. A scripting language is a lightweight programming language. VBScript is a light version of Microsoft's programming language Visual Basic.
When a VBScript is inserted into a HTML document, the Internet browser will read the HTML and interpret the VBScript. The VBScript can be executed immediately, or at a later event. Microsoft Visual Basic Scripting Edition brings active scripting to a wide variety of environments, including Web client scripting in Microsoft Internet Explorer and Web server scripting in Microsoft Internet Information Service. 1.1 Windows Script Host (WSH) It is a Windows administration tool. WSH creates an environment for hosting scripts. That is, when a script arrives at your computer, WSH plays the part of the host — it makes objects and services available for the script and provides a set of guidelines within which the script is executed. Among other things, Windows Script Host manages security and invokes the appropriate script engine Windows Script Host is built into Microsoft Windows 98, 2000, and Millennium Editions and higher versions. A Windows script is a text file. We can create a script with any text editor as long as we save our script with a WSH-compatible script extension (.js, vbs, or .wsf). The most commonly available text editor is already installed on our computer — Notepad. We can also use your favorite HTML editor, VbsEdit, Microsoft Visual C++, or Visual InterDev. 1.2 Creating a script with Notepad 1.Start Notepad. 2.Write your script. For example purposes, type Msgbox "Hello VB Script" 3.Save this text file with a .vbs extension (instead of the default .txt extension). For example, Hello.vbs 4.Navigate to the file you just saved, and double-click it. 5.Windows Script Host invokes the VB Script engine and runs your script. In the example, a message box is displayed with the message "Hello VB Script" 1.3 Hosting Environments and Script Engines
For Manual Testing documents visit:
For more QTP Information & Scripts visit: www.gcreddy.com
Scripts are often embedded in Web pages, either in an HTML page (on the client side) or in an ASP page (on the server side). In the case of a script embedded in an HTML page, the engine component that interprets and runs the script code is loaded by the Web browser, such as Internet Explorer. In the case of a script embedded in an ASP page, the engine that interprets and runs the script code is built into Internet Information Services (IIS). Windows Script Host executes scripts that exist outside an HTML or ASP page and that stand on their own as text files. 1.4 Available Script Engines Generally, we write scripts in either Microsoft JScript or VBScript, the two script engines that ship with Microsoft Windows 98, 2000 and Millennium Editions. We can use other script engines, such as Perl, REXX, and Python, with Windows Script Host. A stand-alone script written in JScript has the .js extension; a stand-alone script written in VBScript has the .vbs extension. These extensions are registered with Windows. When we run one of these types of files, Windows starts Windows Script Host, which invokes the associated script engine to interpret and run the file.
For Manual Testing documents visit:
For more QTP Information & Scripts visit: www.gcreddy.com
The comment argument is the text of any comment we want to include. 2.0 Purpose of comments: o o We can use comments for making the script understandable. We can use comments for making one or more statements disable from execution.
2.1 Syntax Rem comment (After the Rem keyword, a space is required before comment.) Or Apostrophe (') symbol before the comment 2.2 Comment/Uncomment a block of statements Select block of statement and use short cut key Ctrl + M (for comment) Select comment block and use short cut key Ctrl + Shift + M (for uncomment) 2.3 Example
For Manual Testing documents visit:
1 Declaring Variables We declare variables explicitly in our script using the Dim statement. causing unexpected results when our script is run. Right We can also declare a variable implicitly by simply using its name in our script.For more QTP Information & Scripts visit: www. the Public statement. Left. Cannot contain an embedded period. For example: Dim city Dim x We declare multiple variables by separating each variable name with a comma. That is not generally a good practice because we could misspell the variable name in one or more places. 3. Dim MyVar ' Declare variable. and the Private statement. Must not exceed 255 characters. For that reason.com VB Script Variables A variable is a convenient placeholder that refers to a computer memory location where we can store program information that may change during the time our script is running. MyVar = 10 ' Declared variable does not generate error. For Example: Dim x.gcreddy.gcreddy. A variable name: o o o Must begin with an alphabetic character. For Manual Testing documents visit: www.2 Option Explicit Forces explicit declaration of all variables in a script.3 Naming Restrictions for Variables Variable names follow the standard rules for naming anything in VBScript. Bottom. the Option Explicit statement is available to require explicit declaration of all variables. The Option Explicit statement should be the first statement in our script. Option Explicit ' Force explicit variable declaration. MyInt = 10 ' Undeclared variable generates error.net 5 . Top. 3. 3.
a variable exists only as long as you are in the procedure.net 6 . At procedure level.gcreddy. 3. we make it recognizable to all the procedures in our script. and it has script-level scope.6 Assigning Values to Variables Values are assigned to variables creating an expression as follows: The variable is on the left side of the expression and the value you want to assign to the variable is on the right.7 Scalar Variables and Array Variables A variable containing a single value is a scalar variable.5 Life Time of Variables The lifetime of a variable depends on how long it exists. A variable containing a series of values. so this array actually contains 4 elements. For example: A = 200 City = “Hyderabad” X=100: Y=200 3. is called an array variable. The lifetime of a script-level variable extends from the time it is declared until the time the script is finished running. This is a script-level variable. If we declare a variable outside a procedure.4 Scope of Variables A variable's scope is determined by where we declare it. only code within that procedure can access or change the value of that variable. Array variables and scalar variables are declared in the same way. Example: Dim A(3) Although the number shown in the parentheses is 3. all arrays in VBScript are zerobased.com o Must be unique in the scope in which it is declared. When we declare a variable within a procedure.gcreddy. 3. For Manual Testing documents visit: www. We assign data to each of the elements of the array using an index into the array.For more QTP Information & Scripts visit: www. 3. except that the declaration of an array variable uses parentheses () following the variable name.
This is called a dynamic array. the MyTable variable is a two-dimensional array consisting of 6 rows and 11 columns: Dim MyTable(5. the first number is always the number of rows. We can have as many as 60 dimensions. ReDim MyArray(25) ReDim Preserve MyArray(30) For Manual Testing documents visit: www. In the following example. but uses the Preserve keyword to preserve the contents of the array as the resizing takes place. 10) In a two-dimensional array.For more QTP Information & Scripts visit: www. For example: Dim MyArray() ReDim AnotherArray() To use a dynamic array. ReDim sets the initial size of the dynamic array to 25. The array is initially declared within a procedure using either the Dim statement or using the ReDim statement. In the following example. although most people can't comprehend more than three or four dimensions.com Beginning at zero and ending at 4.gcreddy. the second number is the number of columns. A subsequent ReDim statement resizes the array to 30.8 Dynamic Arrays We can also declare an array whose size changes during the time our script is running. for a dynamic array.gcreddy. you must subsequently use ReDim to determine the number of dimensions and the size of each dimension. However. For example: SomeVariable = A(4) Arrays aren't limited to a single dimension. no size or number of dimensions is placed inside the parentheses. 3.net 7 . the data can be retrieved from any element using an index into the particular array element you want. data can be assigned to the elements of an array as follows: A(0) A(1) A(2) A(3) = = = = 256 324 100 55 Similarly.
79769313486232E308 for positive values.94065645841247E-324 to 1. floating-point number in the range -1.gcreddy. We can use conversion functions to convert data from one subtype to another.94065645841247E-324 for negative values. 4. Because Variant is the only data type in VBScript. For example. We can also have a rich variety of numeric information ranging in size from Boolean values to huge floating-point numbers. Double Contains a double-precision.5808 to 922.5807. Object Contains an object. Most of the time. Boolean Contains either True or False. String Contains a variable-length string that can be up to approximately 2 billion characters in length.477. floating-point number in the range -3. 9999.337. we lose the data in the eliminated elements. A Variant is a special kind of data type that can contain different kinds of information. 4.203. Value is 0 for numeric variables or a zero-length string ("") for string variables. Subtype Description Empty Variant is uninitialized. Error Contains an error number. 100 to December 31. Long Contains integer in the range -2.483.402823E38 to -1. Date (Time) Contains a number that represents a date between January 1.203. Currency -922.401298E-45 to 3. The following table shows subtypes of data that a Variant can contain. we can just put the kind of data we want in a Variant. and the Variant behaves in a way that is most appropriate for the data it contains. Byte Contains integer in the range 0 to 255.483.685. depending on how it is used.For more QTP Information & Scripts visit: www.147.147.768 to 32. Null Variant intentionally contains no valid data.337. These different categories of information that can be contained in a Variant are called subtypes. Single Contains a single-precision.685.401298E-45 for negative values.1 Variant Subtypes Beyond the simple numeric or string classifications. When used with other date or time data.gcreddy.com There is no limit to the number of times we can resize a dynamic array.402823E38 for positive values.767. For Manual Testing documents visit: www. In addition. Integer Contains integer in the range -32. 1.net 8 .647. the VarType function returns information about how your data is stored within a Variant. VB Script Data Types VBScript has only one data type called a Variant. the result is always expressed as a date or a time.79769313486232E308 to -4. a Variant can make further distinctions about the specific nature of numeric information. we can have numeric information that represents a date or a time.477.648 to 2. it is also the data type returned by all functions in VBScript. although if we make an array smaller.
gcreddy. comparison operators.gcreddy. We can use parentheses to override the order of precedence and force some parts of an expression to be evaluated before others. comparison and logical operations. each part is evaluated and resolved in a predetermined order called operator precedence. Arithmetic and logical operators are evaluated in the following order of precedence. Within parentheses. and logical operators. arithmetic operators are evaluated first.For more QTP Information & Scripts visit: www. Forces string concatenation of two expressions.2 Arithmetic Operators: Operator 1) Exponentiation Operator (^) 2) Multiplication Operator (*) 3) Division Operator (/) 4) 5) 6) 7) Integer Division Operator (\) Mod Operator Addition Operator (+) Subtraction Operator (-) Description Raises a number to the power of an exponent Multiplies two numbers. Used to compare expressions. 4. Sums two numbers. For Manual Testing documents visit: www. comparison operators are evaluated next. and logical operators are evaluated last. 4. they are evaluated in the left-to-right order in which they appear.net 9 . Operator 1) = (Equal to) 2) <> (Not equal to) Description Used to compare expressions. 8) Concatenation Operator (&) 4. Divides two numbers and returns a floating-point result. including arithmetic operators. When expressions contain operators from more than one category. concatenation operators. standard operator precedence is maintained.1 Operator Precedence When several operations occur in an expression. that is. Divides two numbers and returns only the remainder. VBScript has a full range of operators. Finds the difference between two numbers or indicates the negative value of a numeric expression. Comparison operators all have equal precedence.com VB Script Operators Operators are used for performing mathematical. Operations within parentheses are always performed before those outside. however.3 Comparison Operators Used to compare expressions. Divides two numbers and returns an integer result.
5 Logical Operators Operator 1) Not 2) And 3) Or 4) Xor 5) Eqv 6) Imp Description Performs logical negation on an expression Performs a logical conjunction on two expressions. Performs a logical disjunction on two expressions.com 3) 4) 5) 6) 7) < > <= >= Is Less than Grater than Less than or equal to Greater than or equal to Object equivalence 4. Performs a logical exclusion on two expressions.For more QTP Information & Scripts visit: www. Performs a logical equivalence on two expressions. Syntax result= Not expression result= expression1 expression2 result= expression1 expression2 result= expression1 expression2 result= expression1 expression2 And Or Xor Eqv result= expression1 Imp expression2 For Manual Testing documents visit: www. 2) Concatenation Operator (&) 4. 2) Both expressions are strings Concatenate.gcreddy. 3) One expression is numeric and the Add.net 10 . other is a string Forces string concatenation of two expressions.4 Concatenation Operators Operator 1) Addition Operator (+) Description Sums two numbers If Then 1) Both expressions are numeric Add.gcreddy. Performs a logical implication on two expressions.
waits for the user to click a button. Example: Dim MyVar MyVar = MsgBox ("Hello World!".For more QTP Information & Scripts visit: www. waits for the user to input text or click a button.gcreddy.com Input/Output Operations 6.1 InputBox Function Displays a prompt in a dialog box.net 11 . and returns the contents of the text box.gcreddy. "MsgBox Example") ' MyVar contains either 1 or 2. Example: Dim Input Input = InputBox("Enter your name") MsgBox ("You entered: " & Input) 6.2 MsgBox Function Displays a message in a dialog box. For Manual Testing documents visit: www. and returns a value indicating which button the user clicked. depending on which button is clicked. 65.
1 Creating Constants We create user-defined constants in VBScript using the Const statement. Const statement Declares constants for use in place of literal values. 7.For more QTP Information & Scripts visit: www. city= “Hyderabad”.net 12 . x= 27 For Manual Testing documents visit: www." Const MyAge = 49 Const CutoffDate = #6-1-97# Note that String literal is enclosed in quotation marks (" ").com VB Script Constants A constant is a meaningful name that takes the place of a number or string and never changes. For example: Const price= 100. Represent Date literals and time literals by enclosing them in number signs (#). Example: Const MyString = "This is my string. We declare multiple constants by separating each constant name and value with a comma.gcreddy. we can create string or numeric constants with meaningful names and assign them literal values.gcreddy. Using the Const statement.
depending on the result.1.. 8.Then. use the single-line syntax for the If. we must use the multiple-line (or block) syntax..com Conditional Statements We can control the flow of our script with conditional statements and looping statements.3 Running Certain Statements if a Condition is True and Running Others if a Condition is False For Manual Testing documents visit: www.Else statements can be nested to as many levels as you need.Else The If...Then. we can write VBScript code that makes decisions and repeats actions. Dim myDate myDate = #2/13/98# If myDate < Now Then myDate = Now 8. The following conditional statements are available in VBScript: 1) If…Then…Else Statement 2) Select Case Statement 8.gcreddy.1 Making Decisions Using If... This syntax includes the End If statement.Else statement.2 Running Statements if a Condition is True (multiple statements) To run more than one line of code.Reddy" msgbox "x value is: "&x msgbox "Bye Bye" End If 8.Then.1.net 13 . Dim x x= 20 If x>10 Then msgbox "Hello G. Usually the condition is an expression that uses a comparison operator to compare one value or variable with another. If.....1..For more QTP Information & Scripts visit: www...1 Running a Statement if a Condition is True (single statement) To run only one statement when a condition is True.Else statement is used to evaluate whether a condition is True or False and..gcreddy. Using conditional statements..C.Then. to specify one or more statements to run..
Example: Dim x x= Inputbox (" Enter a value") If x>0 and x<=100 Then Msgbox "Hello G.Else statement allows us to choose from several alternatives.Then.C.1.Then... Example: Dim x x= Inputbox (" Enter a value") If x>100 Then Msgbox "Hello G..... Adding ElseIf clauses expands the functionality of the If.4 Deciding Between Several Alternatives A variation on the If.Then.Reddy" Msgbox "X is a Small Number" Msgbox "X value is "&x Else IF x>100 and x<=500 Then Msgbox "Hello GCR" Msgbox "X is a Medium Number" Else IF x>500 and x<=1000 Then Msgbox "Hello Chandra Mohan Reddy" Msgbox "X is a Large Number" Else Msgbox "Hello Sir" Msgbox "X is a Grand Number" End If End If End If 8..Else statement to define two blocks of executable statements: one block to run if the condition is True.1..gcreddy..Else statement so we can control program flow based on different possibilities.5 Executing a certain block of statements when two / more conditions are True (Nested If...) Example: Dim State.. Region For Manual Testing documents visit: www...net 14 .gcreddy.Reddy" Msgbox "X is a Big Number" Msgbox "X value is: "&X Else Msgbox "GCR" Msgbox "X is a Small Number" Msgbox "X value is: "&X End If 8.For more QTP Information & Scripts visit: www.com We can use an If.C. the other block to run if the condition is False.
com State=Inputbox ("Enter a State") Region=Inputbox ("Enter a Region") If state= "AP" Then If Region= "Telangana" Then msgbox "Hello G.Reddy" Msgbox "Addition of x.2 Making Decisions with Select Case The Select Case structure provides an alternative to If. A Select Case statement provides capability similar to the If.C..y values is "&Result Result= x-y Msgbox "Hello G...y values is "&Result Case "sub" For Manual Testing documents visit: www.Reddy" Msgbox "Multiplication of x.y.Then.net 15 ..C.For more QTP Information & Scripts visit: www.Then.C. Result x= Inputbox (" Enter x value") y= Inputbox ("Enter y value") Operation= Inputbox ("Enter an Operation") Select Case Operation Case "add" Result= cdbl (x)+cdbl (y) Msgbox "Hello G.y values is "&Result Case "mul" Result= x*y Msgbox "Hello G..gcreddy...Reddy" msgbox "Dist count is 10" Else if Region= "Rayalasema" Then msgbox "Hello GCR" msgbox "Dist count is 4" Else If Region= "Costal" Then msgbox "Hello Chandra mohan Reddy" msgbox "Dist count is 9" End End End End If If If If 8.Reddy" Msgbox "Substraction of x.. Operation.ElseIf for selectively executing one block of statements from among multiple blocks of statements. but it makes code more efficient and readable. Example: Option explicit Dim x.Else statement.gcreddy.C.
Even number or Odd number? Dim num num=inputbox ("Enter a number") If num mod 2=0 Then msgbox "This is a Even Number" Else msgbox "This is a Odd Number" End If 8.C.y values is "&Result Result= x^y Msgbox "Hello G.3.2 Write a program for finding out whether the given number is.3.For more QTP Information & Scripts visit: www.y values is "&Result Case "mod" Result= x mod y Msgbox "Hello G.num2.C.y values is "&Result Case Else Msgbox "Hello G.C.com Case "div" Result= x/y Msgbox "Hello G.Reddy" Msgbox "Division of x. sum num1=inputbox ("Enter num1") For Manual Testing documents visit: www.1 Write a program for finding out whether the given year is a leap year or not? Dim xyear xyear=inputbox ("Enter Year") If xyear mod 4=0 Then msgbox "This is a Leap year" Else msgbox "This is NOT" End If 8.3.C.net 16 .Reddy" msgbox "Wrong Operation" Case "expo" End Select 8.3 Other Examples 8.3 Read two numbers and display the sum? Dim num1.Reddy" Msgbox"Exponentation of x.Reddy" Msgbox "Mod of x.gcreddy.gcreddy.
gcreddy. 3) sum=sum+num mod 10 num=num/10 num= left (num. 1) sum=sum+num mod 10 msgbox ("Sum is " &sum) else msgbox "Number.rev num= inputbox("Enter a number") If len(num)=4 Then rev=rev*10 + num mod 10 num=num/10 num= left(num.For more QTP Information & Scripts visit: www. r. r= rate of interest msgbox ("Simple Interest is " &si) 8.net 17 .5 Read Four digit number.t. 2) sum=sum+num mod 10 num=num/10 num= left (num.T.3.6 Read any Four-digit number and display the number in reverse order? Dim num. you entered is not a 4 digit number" End If 8.3) rev=rev*10 + num mod 10 num=num/10 num= left(num.3. calculate & display the sum of the number or display Error message if the number is not a four digit number? Dim num.gcreddy. t=time in years.2) rev=rev*10 + num mod 10 For Manual Testing documents visit: www.com num2=inputbox ("Enter num2") require sum= Cdbl (num1) + Cdbl (num2) 'if we want add two strings conversion msgbox ("Sum is " &sum) 8. sum num=inputbox ("Enter a Four digit number") If Len(num) = 4 Then sum=0 sum=sum+num mod 10 num=num/10 num= left (num.4 Read P.R values and Calculate the Simple Interest? Dim p. si p=inputbox ("Enter Principle") t=inputbox ("Enter Time") r=inputbox ("Enter Rate of Interest") si= (p*t*r)/100 ' p= principle amount.3.
gcreddy. you entered is not a 4 digit number" If cdbl(e) >=35 and cdbl(m) >=35 and cdbl(p) >=35 and cdbl(c) >=35 and tot >=300 Then msgbox "Grade is Distinction" else If cdbl(e) >=35 and cdbl(m) >=35 and cdbl(p) >=35 and cdbl(c) >=35 and tot >=240 and tot<300 Then msgbox "Grade is First" else If cdbl(e) >=35 and cdbl(m) >=35 and cdbl(p) >=35 and cdbl(c) >=35 and tot >=200 and tot<240 Then msgbox "Grade is Second" else If cdbl(e) >=35 and cdbl(m) >=35 and cdbl(p) >=35 and cdbl(c) >=35 and tot >=160 and tot<200 Then msgbox "Grade is Third" else msgbox "No Grade.7 Read 4 subjects marks. then grade is Second d) If average marks Greater than or equal to 40 and less than 50 .gcreddy.m.c. tot e=inputbox ("Enter english Marks") m=inputbox ("Enter maths Marks") p=inputbox ("Enter physics Marks") c=inputbox ("Enter chemistry Marks") tot= cdbl(e) + cdbl(m) + cdbl(p) + cdbl(c) msgbox tot msgbox "Number. grade is Distinction b) If average marks Greater than or equal to 60 and less than 75 .com num=num/10 num= left(num.3.p.net 18 . Fail" End If End If End If For Manual Testing documents visit: www.For more QTP Information & Scripts visit: www. then grade is First c) If average marks Greater than or equal to 50 and less than 60 . then grade is Third e) Minimum marks 35 for any subject.1) rev=rev*10 + num mod 10 msgbox "Reverse Order of the number is "&rev Else End If 8. otherwise 'no grade fail') Dim e. calculate the Total marks and grade? (a) If average marks Greater than or equal to 75.
net 19 . 8.. true) myfile. n.filesystemobject") set myfile=fso.n n=Inputbox ("Enter a Vaule") For num=n to 1 step -1 msgbox num Next 8.10 display natural numbers up to n and write in a text file?---FSO Dim num.8 Display Odd numbers up to n? Dim num. n. n.close Next 8.Wend Loop) Dim num.writeline num myfile..Next Loop) Dim num.gcreddy. sum n= inputbox ("Enter a Value") For Manual Testing documents visit: www. fso.com End If 8..gcreddy.3.For more QTP Information & Scripts visit: www.n n=Inputbox ("Enter a Vaule") For num= 2 to n step 2 msgbox num Next 8.txt".11 Display Natural numbers in reverse order up to n? Dim num.9 Display Even numbers up to n? Dim num. sum n= inputbox ("Enter a Value") sum=0 For num= 1 to n step 1 sum= sum+num Next msgbox sum 8.3.n n=Inputbox ("Enter a Vaule") For num= 1 to n step 2 msgbox num Next 8.3. myfile n= inputbox ("Enter any Value") num=1 For num= 1 to n step 1 Set fso= createobject ("scripting.opentextfile ("E:\gcr.13 Display Natural numbers sum up to n? (using While..12 Display Natural numbers sum up to n? (Using For.
len d3=mid (num.y.net 20 . len d6=mid (num. 4.. len d8=mid (num. sum n= inputbox ("Enter a Value") sum=0 num=1 Do sum= sum+num num=num+1 Loop Until num =cdbl (n+1) msgbox sum 8.x. 5.gcreddy. 6.gcreddy. len d7=mid (num...For more QTP Information & Scripts visit: www. len d9=mid (num. 7. 3. 2. len d4=mid (num.1) d10=Right (num.15 Write a Function for Natural Numbers sum up to n? Function NNumCou (n) Dim num.Loop) Dim num.num num=Inputbox ("Enter a Phone Number") d1= left (num. n. 8.z.16 Verify weather the entered 10 digit value is a numeric value or not? Dim a.Until. 9. sum sum=0 For num= 1 to n step 1 sum= sum+num Next msgbox sum End Function 8.com While num <=cdbl (n) sum= sum+num num=num+1 Wend msgbox sum 8. len d5=mid (num.1) d2=mid (num. len (1)) (1)) (1)) (1)) (1)) (1)) (1)) (1)) If isnumeric (d1) = "True" and isnumeric (d2) = "True" and isnumeric (d3) = "True" and isnumeric (d4) = "True"and isnumeric (d5) = "True"and isnumeric (d6) = "True"and isnumeric (d7) = "True"and isnumeric (d8) = "True"and isnumeric (d9) = "True"and isnumeric (d10) = "True" Then msgbox "It is a Numeric Value" For Manual Testing documents visit: www.14 Display Natural numbers sum up to n? (Using Do..
1) d10=Right (num. len d8=mid (num. 9. len d7=mid (num.y. 6.z. 2. 8. len d4=mid (num. 5.num num=Inputbox ("Enter a Phone Number") d1= left (num.For more QTP Information & Scripts visit: www. 3.gcreddy.x.gcreddy. 4. 7.17 Verify weather the entered value is a 10 digit value or not and Numeric value or not? (Using multiple if conditions) Dim a.1) d2=mid (num.net 21 . len d6=mid (num. len d5=mid (num. len d3=mid (num.com else Msgbox "It is NOT Numeric" End If 8. len d9=mid (num. len (1)) (1)) (1)) (1)) (1)) (1)) (1)) (1)) If len (num) =10 Then If isnumeric (d1) = "True" and isnumeric (d2) = "True" and isnumeric (d3) = "True" and isnumeric (d4) = "True"and isnumeric (d5) = "True"and isnumeric (d6) = "True"and isnumeric (d7) = "True"and isnumeric (d8) = "True"and isnumeric (d9) = "True"and isnumeric (d10) = "True" Then msgbox "It is a Numeric Value" End If End If If len (num) <> 10 Then Msgbox "It is NOT valid Number " End If For Manual Testing documents visit: www.
9.. o While.net 22 ... The following looping statements are available in VBScript: o Do.Reddy" Msgbox "Hello QTP" Loop For Manual Testing documents visit: www...Loop: Loops while or until a condition is True...1.For more QTP Information & Scripts visit: www. we can use this below syntax: Example: Dim x Do While x<5 x=x+1 Msgbox "Hello G. Some loops repeat statements until a condition is False.Next: Repeats a group of statements for each item in a collection or each element of an array..1 Using Do Loops We can use Do..1 Repeating Statements While a Condition is True Repeats a block of statements while a condition is True or until a condition becomes True a) Do While condition Statements --------------------Loop Or. o For Each..gcreddy.com Looping Through Code o o o o Looping allows us to run a group of statements repeatedly.gcreddy.Loop statements to run a block of statements an indefinite number of times. The statements are repeated either while a condition is True or until a condition becomes True.C. 9. There are also loops that repeat statements a specific number of times.Wend: Loops while a condition is True. o For.Next: Uses a counter to run statements a specified number of times. Others repeat statements until a condition is True.
we can use this below syntax: Example: Dim x x=1 Do Msgbox “Hello G.C.1. we can use this below syntax: d) Do Statements --------------------Loop Until condition Or.gcreddy.2 Repeating a Statement Until a Condition Becomes True c) Do Until condition Statements --------------------Loop Or.Reddy" Msgbox "Hello QTP" x=x+1 Loop While x<5 9.gcreddy.2 While. we can use this below syntax: Example: Dim x Do Until x=5 x=x+1 Msgbox "G.net 23 ...C.C.For more QTP Information & Scripts visit: www.Reddy” Msgbox "Hello QTP" x=x+1 Loop Until x=5 9.Reddy" Msgbox "Hello QTP" Loop Or.Wend Statement For Manual Testing documents visit: www.com b) Do Statements --------------------Loop While condition Example: Dim x x=1 Do Msgbox "Hello G.
.gcreddy.. Syntax: For Each item In array Statements Next Example: (1 Dim a..b.4 For Each.Next Statement Repeats a group of statements a specified number of times.x (3) a=20 b=30 x(0)= "Addition is "& a+b x(1)="Substraction is " & a-b x(2)= "Multiplication is " & a*b x(3)= "Division is " & a/b For Each element In x msgbox element For Manual Testing documents visit: www.net 24 .3 For..Reddy" Next 9.Next Statement Repeats a group of statements for each element in an array or collection.For more QTP Information & Scripts visit: www. Syntax: While condition Statements --------------------Wend Example: Dim x x=0 While x<5 x=x+1 msgbox "Hello G.gcreddy.Reddy" msgbox "Hello QTP" Wend 9.com Executes a series of statements as long as a given condition is True.C.C. Syntax: For counter = start to end [Step step] statements Next Example: Dim x For x= 1 to 5 step 1 Msgbox "Hello G.
1 read Data and find that data size.com Next Example: (2 MyArray = Array("one".Len(1)) x4=mid (x.2. If size <>4 then display invalid data message."five") For Each element In MyArray msgbox element Next Control Flow Examples (Using Conditional and Loop Statements) 11. if data size = 4 then verify “a” is there or not in that data? Dim x x=Inputbox ("Enter 4 digit value") x1=Right(x.1) x2=Left (x."two".net 25 ."four".x a=Inputbox ("Enter a Vaule") a=cdbl(a) If a<= 100 Then For x= 1 to 100 If a=x Then msgbox "a is in between 1 to 100 range" End If Next else For x= 101 to 1000 If a=x Then msgbox "a is in between 101 to 1000 range" End If Next End If 11."three".1 read a number and verify that number Range weather in between 1 to 100 or 101 to 1000? Option explicit Dim a.Len(1)) y=len(x) If y=4 Then If x1="a" or x2="a" or x3="a" or x4="a" Then msgbox "a is there" else msgbox "a is Not there" End If else msgbox "Invalid Data" End If For Manual Testing documents visit: www.gcreddy.1) x3=mid (x.For more QTP Information & Scripts visit: www.gcreddy.3.
its Sub statement must include an empty set of parentheses ().".2 Function Procedures A Function procedure is a series of VBScript statements enclosed by the Function and End Function statements." End Sub Example: 2 11. but can also return a value.gcreddy.1 Sub Procedures A Sub procedure is a series of VBScript statements (enclosed by Sub and End Sub statements) that perform actions but don't return a value. or expressions that are passed by a calling procedure).net 26 .gcreddy. Syntax: Sub Procedure name () Statements --------------------End Sub Or Sub Procedure name (argument1. For Manual Testing documents visit: www. 11.com VB Script Procedures In VBScript. A Function procedure is similar to a Sub procedure. there are two kinds of procedures available. If a Sub procedure has no arguments. A Sub procedure can take arguments (constants. the Sub procedure and the Function procedure.For more QTP Information & Scripts visit: www. variables. argument2) Statements --------------------End Sub Example: 1 Sub ConvertTemp() temp = InputBox("Please enter the temperature in degrees F. 1) MsgBox "The temperature is " & Celsius(temp) & " degrees C.
c) cal = (a+b+c) End Function 11. 11. or expressions that are passed to it by a calling procedure). Arguments serve as placeholders for the data we want to pass into our procedure. parentheses must be included after the name of the procedure. its Function statement must include an empty set of parentheses. We can name our arguments any valid variable name. For example: Temp = Celsius(fDegrees) -Or- For Manual Testing documents visit: www.b. A Function returns a value by assigning a value to its name in one or more statements of the procedure. argument2) Statements --------------------End Function Example: 1 Function Celsius(fDegrees) Celsius = (fDegrees . variables.net 27 . Any arguments are placed inside these parentheses. If a Function procedure has no arguments. separated by commas.For more QTP Information & Scripts visit: www.gcreddy. Syntax: Function Procedure name () Statements --------------------End Function Or Function Procedure name (argument1.gcreddy.3 Getting Data into and out of Procedures o o o o Each piece of data is passed into our procedures using an argument.4 Using Sub and Function Procedures in Code A Function in our code must always be used on the right side of a variable assignment or in an expression. The return type of a Function is always a Variant.32) * 5 / 9 End Function Example: 2 Function cal(a. When we create a procedure using either the Sub statement or the Function statement.com A Function procedure can take arguments (constants.
the other doesn't. each separated by a comma. Call MyProc(firstarg.com MsgBox "The Celsius temperature is " & Celsius(fDegrees) & " degrees. The Call statement is not required. type the name of the procedure along with values for any required arguments. you must enclose any arguments in parentheses. secondarg Notice that the parentheses are omitted in the call when the Call statement isn't used. One uses the Call statement in the code. The following example shows two calls to the MyProc procedure.For more QTP Information & Scripts visit: www.gcreddy.net 28 .gcreddy. Both do exactly the same thing." To call a Sub procedure from another procedure. but if you do use it. For Manual Testing documents visit: www. secondarg) MyProc firstarg.
33) msgbox num 2) Array Function Returns a variant containing an Array Dim A A=Array("hyderabad"."chennai". Dim num num=Asc("A") msgbox num * It returns the value 65 * 4) Chr Function For Manual Testing documents visit: www.net 29 ."mumbai") msgbox A(0) ReDim A(5) A(4)="nellore" msgbox A(4) 3) Asc Function Returns the ANSI character code corresponding to the first letter in a string.For more QTP Information & Scripts visit: www.com VB Script Built in Functions Types of Functions o o o o o o o o o Conversions (25) Dates/Times (19) Formatting Strings (4) Input/Output (3) Math (9) Miscellaneous (3) Rounding (5) Strings (30) Variants (8) Important Functions 1) Abs Function Returns the absolute value of a number.gcreddy.gcreddy. Dim num num=abs(-50.
Now) msgbox x 9) Hour Function Returns a whole number between 0 and 23.2009") msgbox myday Dim myday mydate=date myday=Day(Mydate) msgbox myday Ex2) 8) DateDiff Function Returns the number of intervals between two dates. inclusive. Dim num num=123. Dim mydate mydate=Date msgbox mydate 7) Day Function Ex1) Dim myday myday=Day("17. Dim char Char=Chr(65) msgbox char * It returns A * 5) CInt Function Returns an expression that has been converted to a Variant of subtype Integer. myarray(3) myarray(0)="Chandra " For Manual Testing documents visit: www. Dim mytime. Myhour mytime=Now myhour=hour (mytime) msgbox myhour 10) Join Function Returns a string created by joining a number of substrings contained in an array.mydate.45 myInt=CInt(num) msgbox MyInt 6) Date Function Returns the Current System Date.December.net 30 .For more QTP Information & Scripts visit: www. Dim mystring.com Returns the character associated with the specified ANSI character code.gcreddy. representing the hour of the day. Dim myday mydate=#02-17-2009# x=Datediff("d".gcreddy.
20) ' Returns "Hello World". MyStr = Right(AnyString. 12) Time Function Returns a Variant of subtype Date indicating the current system time. Dim mytime mytime=Time msgbox mytime 13) VarType Function Returns a value indicating the subtype of a variable. MyStr AnyString = "Hello World" ' Define string. LeftString MyString = "VBSCript" LeftString = Left(MyString.com myarray(1)="Mohan " myarray(2)="Reddy" mystring=Join(MyArray) msgbox mystring 11) Eval Function Evaluates an expression and returns the result. MyCheck = VarType(#10/19/62#) Msgbox Mycheck MyCheck = VarType("VBScript") Msgbox Mycheck 14) Left Function ' Returns 8. ' Returns 7.gcreddy. MyStr = Right(AnyString. Dim MyCheck MyCheck = VarType(300) Msgbox Mycheck ' Returns 2.gcreddy. 6) ' Returns " World". MyStr = Right(AnyString.Reddy") For Manual Testing documents visit: www.C. Ex 1): Dim Mystring mystring=Len("G.net 31 . 3) ' LeftString contains "VBS". 1) ' Returns "d". 15) Len Function Returns the number of characters in a string or the number of bytes required to store a variable. 14) Right Function Dim AnyString. Dim MyString.For more QTP Information & Scripts visit: www.
StartTime msgbox myTime End Function Call myTime(2000) 17) isNumeric Function Dim MyVar.gcreddy. MyCheck MyVar = 53 MyCheck = IsNumeric(MyVar) msgbox MyCheck MyVar = "459. Function myTime(N) Dim StartTime. 6) Msgbox MyVar * It Returns ‘Script’ * 17) Timer Function Returns the number of seconds that have elapsed since 12:00 AM (midnight). and returns the contents of the text box.com msgbox mystring Ex 2): Dim Mystring Mystring=Inputbox("Enter a Value") Mystring=Len(Mystring) Msgbox Mystring 16) Mid Function Returns a specified number of characters from a string. Dim Input Input = InputBox("Enter your name") For Manual Testing documents visit: www. Dim MyVar MyVar = Mid("VB Script is fun!".gcreddy. 4. waits for the user to input text or click a button.For more QTP Information & Scripts visit: www. EndTime StartTime = Timer For I = 1 To N Next EndTime = Timer myTime= EndTime .95" MyCheck = IsNumeric(MyVar) msgbox MyCheck MyVar = "45 Help" MyCheck = IsNumeric(MyVar) msgbox MyCheck * It Returns True/False like Result * 18) Inputbox Function Displays a prompt in a dialog box.net 32 .
Total_Items. it is important that we use parentheses () correctly in our statements.select "31" 21.WaitProperty("items count".com MsgBox ("You entered: " & Input) 19) Msgbox Function Displays a message in a dialog box. or constants. Note that the value 31 is also surrounded by quotation marks.page("find a flight:").WebList("toDay").5 Indentation: We can indent or outdent our script to reflect the logical structure and nesting of the statements. The third argument (specifying the timeout) is a numeric value. Using variables helps to make our script more readable and flexible 21.1 Case-sensitivity: By default. Browser("Mercury").2 Text strings: When we enter a value as a text string. "MsgBox Example") VBScript syntax rules and guidelines 21.Page("Find a Flight:"). waits for the user to click a button. For example. 65. Dim MyVar MyVar = MsgBox ("Hello World!".gcreddy.For more QTP Information & Scripts visit: www. integers. The second argument (the value of the property) is a variable and therefore does not have quotation marks. 21.3 Variables: We can specify variables to store strings. and edit box are all text strings surrounded by quotation marks. VBScript is not case sensitive and does not differentiate between upper case and lower-case spelling of words. For example. only the property name (first argument) is a text string and is in quotation marks. because it is a text string that represents a number and not a numeric value.4 Parentheses: To achieve the desired result and to avoid errors. which also does not need quotation marks. object and method names. and returns a value indicating which button the user clicked. In the following example. 2000) 21. in the above segment of script. the two statements below are identical in VBScript: Browser("Mercury").weblist("today"). the names of the Web site. we must add quotation marks before and after the string.Select "31" browser("mercury"). For Manual Testing documents visit: www.net 33 .Page("Find a Flight:"). arrays and objects.gcreddy. in variables. Web page. for example.
to make our scripts easier to understand and maintain. or at the end of a statement. either at the beginning of a separate line. before the program has begun to be executed. when variable expressions are being evaluated. For Manual Testing documents visit: www. and memory is being dynamic allocated. they are VBScript Run-time Errors and VBScript Syntax Errors 13.net 34 .2 VBScript Syntax Errors VBScript syntax errors are errors that result when the structure of one of our VBScript statements violates one or more of the grammatical rules of the VBScript scripting language.6 Comments: We can add comments to our statements using an apostrophe ('). It is recommended that we add comments wherever possible.com 21. 13.1 VBScript Run-time Errors VBScript run-time errors are errors that result when our VBScript script attempts to perform an action that the system cannot execute.For more QTP Information & Scripts visit: www. These spaces are ignored by VBScript. VBScript run-time errors occur while our script is being executed. Errors We have two types Errors in VB Script.7 Spaces: We can add extra blank spaces to our script to improve clarity. VBScript syntax errors occur during the program compilation stage.gcreddy.gcreddy. 21.
gcreddy.For more QTP Information & Scripts visit: www.com For Manual Testing documents visit: www.gcreddy.net 35 .
strDirectory strDirectory = "D:\logs" Set objFSO = CreateObject("Scripting. strDirectory strDirectory = "D:\logs" Set objFSO = CreateObject("Scripting.CreateFolder(strDirectory) b) Deleting a Folder Set oFSO = CreateObject("Scripting.FileSystemObject") If objFSO. "C:\jvr".FileSystemObject") Set objFolder = objFSO.gcreddy.DriveLetter Next f) Getting available space on a Disk Drive Set oFSO = CreateObject("Scripting.For more QTP Information & Scripts visit: www.FolderExists(strDirectory) Then Set objFolder = objFSO.AvailableSpace For Manual Testing documents visit: www. if not creating the folder Option Explicit Dim objFSO.DeleteFolder("E:\FSO") c) Copying Folders Set oFSO=createobject("Scripting.net 36 .GetFolder(strDirectory) msgbox strDirectory & " already created " else Set objFolder = objFSO.gcreddy.CopyFolder "E:\gcr6".Filesystemobject") oFSO.GetDrive("C:") MsgBox "Available space: " & oDrive.Drives For Each oDrive in colDrives MsgBox "Drive letter: " & oDrive. True d) Checking weather the folder available or not.FileSystemObject") Set oDrive = oFSO. objFolder.FileSystemObject") oFSO.com File System Operations I) Working with Drives and Folders a) Creating a Folder Option Explicit Dim objFSO. objFolder.CreateFolder(strDirectory) end if e) Returning a collection of Disk Drives Set oFSO = CreateObject("Scripting.FileSystemObject") Set colDrives = oFSO.
txt".exe". ".OpenTextFile("E:\gcr.gcreddy.filesystemobject") Set myfile= fso.Readline msgbox strCharacters Loop e) Reading data from a flat file and using in data driven testing Dim fso.CreateTextFile("E:\ScriptLog.1) myfile.") SystemUtil.skipline While myfile.GetFolder(strDirectory) Else Set objFile = objFSO.txt" Set objFSO = CreateObject("Scripting.txt"."open" For Manual Testing documents visit: www.opentextfile ("F:\gcr.AtEndOfStream strCharacters = objFile.OpenTextFile("E:\gcr.FileSystemObject") Set objFile = objFSO.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.FileSystemObject") Set objFile = objFSO.Read(1) msgbox strCharacters Loop d) Reading Data line by line from a Flat File Set objFSO = CreateObject("Scripting.For more QTP Information & Scripts visit: www.gcreddy.txt".atendofline <> True x=myfile.AtEndOfStream strCharacters = objFile. 1) Do Until objFile. if not creating the File strDirectory="E:\" strFile="Scripting."C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\".CreateTextFile("E:\ScriptLog.readline s=split (x.txt") End if Reading Data character by character from a Flat File Set objFSO = CreateObject("Scripting.net 37 . 1) Do Until objFile.com II) Working with Flat Files Creating a Flat File Set objFSO = CreateObject("Scripting.myfile Set fso=createobject("scripting.FileExists(strDirectory & strFile) Then Set objFolder = objFSO.FileSystemObject") If objFSO.txt") b) Checking weather the File is available or not.FileSystemObject") Set objFile = objFSO."".
GetFile(FilePath2).Click Window("Flight Reservation").GetFile(FilePath1).OpenAsTextStream(1.WinEdit("Password:"). 8.delete () End if i) Comparing two text files Dim f1.Activate Dialog("Login").WinButton("OK").OpenAsTextStream(1. myFSO.For more QTP Information & Scripts visit: www.txt" f2="e:\gcr2. 0) Set File2 = FS. 0) For Manual Testing documents visit: www.filesystemobject") Set txtFilepath = objFSO.Close Wend f) Writing data to a text file Dim Stuff.OpenTextFile("e:\gcr. FilePath2) Dim FS.gcreddy.Set s(0) Dialog("Login").GetFile(FilePath2).SetSecure s(1) Dialog("Login").Size Then CompareFiles = True Exit Function End If Set File1 = FS.txt") txtFilepath.gcreddy. File1. True) WriteStuff.net 38 .txt" Public Function CompareFiles (FilePath1.Close SET WriteStuff = NOTHING SET myFSO = NOTHING g) Delete a text file Set objFSO=createobject("Scripting. File2 Set FS = CreateObject("Scripting.FileSystemObject") If objFSO.GetFile("E:\gcr.FileSystemObject") Set WriteStuff = myFSO. if available delete the File strDirectory="E:\" strFile="gcr.FileExists(strDirectory & strFile) Then Set objFile = objFSO.WriteLine(Stuff) WriteStuff. f2 f1="e:\gcr1.FileSystemObject") If FS.com Dialog("Login"). WriteStuff.Size <> FS. dateStamp dateStamp = Date() Stuff = "I am Preparing this script: " &dateStamp Set myFSO = CreateObject("Scripting.txt" Set objFSO = CreateObject("Scripting.Getfile(strDirectory & strFile) objFile.Delete() h) Checking weather the File is available or not.txt".WinEdit("Agent Name:").GetFile(FilePath1).
f2) = False Then MsgBox "Files are identical.f2) If CompareFiles(f1.Add For Manual Testing documents visit: www. oRegEx.OpenTextFile(sFileName. oTxtFile.net 39 .ReadAll Set oRegEx = New RegExp oRegEx.Pattern = sString oRegEx.For more QTP Information & Scripts visit: www. oMatches Set oFso = CreateObject("Scripting." Else MsgBox "Files are different.Read Str2 = File2.gcreddy.com CompareFiles = False Do While File1.Application") objWD. sReadTxt. FOR_READING) sReadTxt = oTxtFile.Global = True Set oMatches = oRegEx.gcreddy.IgnoreCase = bIgnoreCase oRegEx.FileSystemObject") Set oTxtFile = oFso. 0) If CompareFiles <> 0 Then CompareFiles = True Exit Do End If Loop File1.Close() File2.Read CompareFiles = StrComp(Str1.Execute(sReadTxt) MatchesFound = oMatches.txt" sString="gcreddy" Const FOR_READING = 1 Dim oFso." End If j) Counting the number of times a word appears in a file sFileName="E:\gcr. Str2.Documents.Close() End Function Call Comparefiles(f1.AtEndOfStream = False Str1 = File1.Count Set oTxtFile = Nothing : Set oFso = Nothing : Set oRegEx = Nothing msgbox MatchesFound III) Working with Word Docs a) Create a word document and enter some data & save Dim objWD Set objWD = CreateObject("Word.
Selection.quit set objExcel=nothing For Manual Testing documents visit: www.ActiveDocument.gcreddy.Workbooks.Workbooks.add objexcel.UsedRange If cell.Value Then msgbox "value is different" Else msgbox "value is same" End If Next objWorkbook1.Value <> objWorksheet2.close objWorkbook2.Workbooks." & Chr(13) & "This is some more text" objWD.Value = "Testing" objexcel.Quit IV) Working with Excel Sheets a) Create an excel sheet and enter a value into first cell Dim objexcel Set objExcel = createobject("Excel.Visible = True Set objWorkbook1= objExcel.Worksheets(1) For Each cell In objWorksheet1.Visible = True objexcel.xls") objexcel.Address).ActiveWorkbook.xls") Set objWorkbook2= objExcel.Quit b) Compare two excel files Set objExcel = CreateObject("Excel.close objExcel.TypeText "This is some text.Application") objExcel. 1).For more QTP Information & Scripts visit: www.Open("E:\gcr1.Open("E:\gcr2.doc" objWD.SaveAs("f:\gcreddy1.gcreddy.Worksheets(1) Set objWorksheet2= objWorkbook2.Range(cell.xls") Set objWorksheet1= objWorkbook1.com objWD.net 40 .application") objexcel.Cells(1.SaveAs "e:\gcreddy.
gcreddy.gcreddy.com Test Requirements 1) Verify Login Boundary (Check all the boundary conditions of the Login window. before enter any data after enter data dialog box should be disappeared. 4) Verify state of Update Order Button. before open an Order and after open an Order (in Flight Reservation before opening an order Update Order button should be disabled after opening an order enabled.) 3) Verify Addition.) 5) Price Consistency. Checks to see if the correct message appears in the error window (Flight Reservation Message) 2) Verify Cancel Operation (in Login Dialog box.net 41 . In Flight Reservation (In Flight Reservation. Subtraction. Multiplication and Division Operations in Calculator Application. First class price=3*Economy class price and Business class price=2*Economy class price) For Manual Testing documents visit: www.For more QTP Information & Scripts visit: www. if user selects cancel button.
After selecting Customer Name. After selecting Order No option. Flight date option enabled and Order No disabled After selecting Flight date option. (In Open Order dialog box.net 42 For Manual Testing documents visit: . select an item from Fly From: combo box and verify weather that item available or not in Fly To: combo box. like this select all items one by one in Fly From and verify weather selected items available or not in Fly To. how many links available in Mercury Tours Home Page? 12) Count how many Buttons and Edit boxes available in Flight Reservation window? 13) Verify search options in Open Order Dialog box (After selecting open order.gcreddy. Order No object accepts numeric values only. Verify Help message (The message is ‘The password is 'MERCURY') 15) Count all opened Browsers on desktop and close all? 16) Create an Excel file.) 9) Get Test Data from a Flat file and use in Data Driven Testing (through Scripting) 10) Get Test Data From a Database and use in Data Driven Testing (through Scripting) 11) Count. other options should be disabled. Total = Tickets * Price) 7) Verify Flight From & Flight To Combo Boxes (In Flight reservation. Customer Name enabled and Order No disabled) 14) In Login Dialog box.) 8) Verify Order No Entry in Flight Reservation. enter some data and save the file through VB scripting? For Complete Document Visit: www.gcreddy.com 6) Verify Total.For more QTP Information & Scripts visit: www. In Flight Reservation (In Flight Reservation. 3 search options should be enabled and not checked.
net 43 .com ww.gcreddy.gcreddy.gcreddy.com For Manual Testing documents visit: www.For more QTP Information & Scripts visit: www.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.