Professional Documents
Culture Documents
VB Script
VB Script
com
Advanced QTP
(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
www.gcreddy.com
www.gcreddy.net
Introduction
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
www.gcreddy.net
www.gcreddy.net
Comments
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
www.gcreddy.net
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. 3.1 Declaring Variables We declare variables explicitly in our script using the Dim statement, the Public statement, and the Private statement. For example: Dim city Dim x We declare multiple variables by separating each variable name with a comma. For Example: Dim x, Top, Bottom, Left, Right We can also declare a variable implicitly by simply using its name in our script. That is not generally a good practice because we could misspell the variable name in one or more places, causing unexpected results when our script is run. For that reason, 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. 3.2 Option Explicit Forces explicit declaration of all variables in a script. Option Explicit ' Force explicit variable declaration. Dim MyVar ' Declare variable. MyInt = 10 ' Undeclared variable generates error. MyVar = 10 ' Declared variable does not generate error. 3.3 Naming Restrictions for Variables Variable names follow the standard rules for naming anything in VBScript. A variable name: o o o Must begin with an alphabetic character. Cannot contain an embedded period. Must not exceed 255 characters.
www.gcreddy.net
3.4 Scope of Variables A variable's scope is determined by where we declare it. When we declare a variable within a procedure, only code within that procedure can access or change the value of that variable. If we declare a variable outside a procedure, we make it recognizable to all the procedures in our script. This is a script-level variable, and it has script-level scope. 3.5 Life Time of Variables The lifetime of a variable depends on how long it exists. The lifetime of a script-level variable extends from the time it is declared until the time the script is finished running. At procedure level, a variable exists only as long as you are in the procedure. 3.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. For example: A = 200 City = Hyderabad X=100: Y=200 3.7 Scalar Variables and Array Variables A variable containing a single value is a scalar variable. A variable containing a series of values, is called an array variable. Array variables and scalar variables are declared in the same way, except that the declaration of an array variable uses parentheses () following the variable name. Example: Dim A(3) Although the number shown in the parentheses is 3, all arrays in VBScript are zerobased, so this array actually contains 4 elements. We assign data to each of the elements of the array using an index into the array. For Manual Testing documents visit:
www.gcreddy.net
Similarly, the data can be retrieved from any element using an index into the particular array element you want. For example: SomeVariable = A(4) Arrays aren't limited to a single dimension. We can have as many as 60 dimensions, although most people can't comprehend more than three or four dimensions. In the following example, the MyTable variable is a two-dimensional array consisting of 6 rows and 11 columns: Dim MyTable(5, 10) In a two-dimensional array, the first number is always the number of rows; the second number is the number of columns. 3.8 Dynamic Arrays We can also declare an array whose size changes during the time our script is running. This is called a dynamic array. The array is initially declared within a procedure using either the Dim statement or using the ReDim statement. However, for a dynamic array, no size or number of dimensions is placed inside the parentheses. For example: Dim MyArray() ReDim AnotherArray() To use a dynamic array, you must subsequently use ReDim to determine the number of dimensions and the size of each dimension. In the following example, ReDim sets the initial size of the dynamic array to 25. A subsequent ReDim statement resizes the array to 30, but uses the Preserve keyword to preserve the contents of the array as the resizing takes place. ReDim MyArray(25) ReDim Preserve MyArray(30)
www.gcreddy.net
www.gcreddy.net
VB Script Operators
Operators are used for performing mathematical, comparison and logical operations. VBScript has a full range of operators, including arithmetic operators, comparison operators, concatenation operators, and logical operators. 4.1 Operator Precedence When several operations occur in an expression, each part is evaluated and resolved in a predetermined order called operator precedence. We can use parentheses to override the order of precedence and force some parts of an expression to be evaluated before others. Operations within parentheses are always performed before those outside. Within parentheses, however, standard operator precedence is maintained. When expressions contain operators from more than one category, arithmetic operators are evaluated first, comparison operators are evaluated next, and logical operators are evaluated last. Comparison operators all have equal precedence; that is, they are evaluated in the left-to-right order in which they appear. Arithmetic and logical operators are evaluated in the following order of precedence. 4.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. Divides two numbers and returns a floating-point result. Divides two numbers and returns an integer result. Divides two numbers and returns only the remainder. Sums two numbers. Finds the difference between two numbers or indicates the negative value of a numeric expression. Forces string concatenation of two expressions.
8) Concatenation Operator (&) 4.3 Comparison Operators Used to compare expressions. Operator 1) = (Equal to) 2) <> (Not equal to)
www.gcreddy.net
4.4 Concatenation Operators Operator 1) Addition Operator (+) Description Sums two numbers If Then 1) Both expressions are numeric Add. 2) Both expressions are strings Concatenate. 3) One expression is numeric and the Add. other is a string Forces string concatenation of two expressions.
4.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. Performs a logical exclusion on two expressions. Performs a logical equivalence on two expressions. Performs a logical implication on two expressions. Syntax result= Not expression result= expression1 expression2 result= expression1 expression2 result= expression1 expression2 result= expression1 expression2 And Or Xor Eqv
www.gcreddy.net
10
Input/Output Operations
6.1 InputBox Function Displays a prompt in a dialog box, waits for the user to input text or click a button, and returns the contents of the text box. Example: Dim Input Input = InputBox("Enter your name") MsgBox ("You entered: " & Input) 6.2 MsgBox Function Displays a message in a dialog box, waits for the user to click a button, and returns a value indicating which button the user clicked. Example: Dim MyVar MyVar = MsgBox ("Hello World!", 65, "MsgBox Example") ' MyVar contains either 1 or 2, depending on which button is clicked.
www.gcreddy.net
11
VB Script Constants
A constant is a meaningful name that takes the place of a number or string and never changes. 7.1 Creating Constants We create user-defined constants in VBScript using the Const statement. Using the Const statement, we can create string or numeric constants with meaningful names and assign them literal values. Const statement Declares constants for use in place of literal values. Example: Const MyString = "This is my string." Const MyAge = 49 Const CutoffDate = #6-1-97# Note that String literal is enclosed in quotation marks (" "). Represent Date literals and time literals by enclosing them in number signs (#). We declare multiple constants by separating each constant name and value with a comma. For example: Const price= 100, city= Hyderabad, x= 27
www.gcreddy.net
12
Conditional Statements
We can control the flow of our script with conditional statements and looping statements. Using conditional statements, we can write VBScript code that makes decisions and repeats actions. The following conditional statements are available in VBScript:
1) IfThenElse Statement 2) Select Case Statement 8.1 Making Decisions Using If...Then...Else
The If...Then...Else statement is used to evaluate whether a condition is True or False and, depending on the result, to specify one or more statements to run. Usually the condition is an expression that uses a comparison operator to compare one value or variable with another. If...Then...Else statements can be nested to as many levels as you need. 8.1.1 Running a Statement if a Condition is True (single statement) To run only one statement when a condition is True, use the single-line syntax for the If...Then...Else statement. Dim myDate myDate = #2/13/98# If myDate < Now Then myDate = Now 8.1.2 Running Statements if a Condition is True (multiple statements) To run more than one line of code, we must use the multiple-line (or block) syntax. This syntax includes the End If statement. Dim x x= 20 If x>10 Then msgbox "Hello G.C.Reddy" msgbox "x value is: "&x msgbox "Bye Bye" End If 8.1.3 Running Certain Statements if a Condition is True and Running Others if a Condition is False
www.gcreddy.net
13
www.gcreddy.net
14
Case "mul"
www.gcreddy.net
15
Result= x/y Msgbox "Hello G.C.Reddy" Msgbox "Division of x,y values is "&Result Result= x mod y Msgbox "Hello G.C.Reddy" Msgbox "Mod of x,y values is "&Result
Case "mod"
Case "expo"
Result= x^y Msgbox "Hello G.C.Reddy" Msgbox"Exponentation of x,y values is "&Result Msgbox "Hello G.C.Reddy" msgbox "Wrong Operation"
Case Else
End Select
www.gcreddy.net
16
sum= Cdbl (num1) + Cdbl (num2) 'if we want add two strings conversion require msgbox ("Sum is " &sum)
8.3.4 Read P,T,R values and Calculate the Simple Interest? Dim p,t, r, si p=inputbox ("Enter Principle") t=inputbox ("Enter Time") r=inputbox ("Enter Rate of Interest") si= (p*t*r)/100 ' p= principle amount, t=time in years, r= rate of interest msgbox ("Simple Interest is " &si) 8.3.5 Read Four digit number, calculate & display the sum of the number or display Error message if the number is not a four digit number? Dim num, 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, 3) sum=sum+num mod 10 num=num/10 num= left (num, 2) sum=sum+num mod 10 num=num/10 num= left (num, 1) sum=sum+num mod 10 msgbox ("Sum is " &sum) else msgbox "Number, you entered is not a 4 digit number" End If 8.3.6 Read any Four-digit number and display the number in reverse order? Dim num,rev num= inputbox("Enter a number") If len(num)=4 Then rev=rev*10 + num mod 10 num=num/10 num= left(num,3) rev=rev*10 + num mod 10 num=num/10 num= left(num,2) rev=rev*10 + num mod 10 num=num/10
www.gcreddy.net
17
8.3.7 Read 4 subjects marks; calculate the Total marks and grade? (a) If average marks Greater than or equal to 75, grade is Distinction b) If average marks Greater than or equal to 60 and less than 75 , then grade is First c) If average marks Greater than or equal to 50 and less than 60 , then grade is Second d) If average marks Greater than or equal to 40 and less than 50 , then grade is Third e) Minimum marks 35 for any subject, otherwise 'no grade fail') Dim e,m,p,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 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, Fail" End End End End If If If If
www.gcreddy.net
18
www.gcreddy.net
19
Wend
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" else Msgbox "It is NOT Numeric"
www.gcreddy.net
20
8.17 Verify weather the entered value is a 10 digit value or not and Numeric value or not? (Using multiple if conditions) Dim a,x,y,z,num num=Inputbox ("Enter a Phone Number") d1= left (num,1) d10=Right (num,1) d2=mid (num, 2, len d3=mid (num, 3, len d4=mid (num, 4, len d5=mid (num, 5, len d6=mid (num, 6, len d7=mid (num, 7, len d8=mid (num, 8, len d9=mid (num, 9, len
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
www.gcreddy.net
21
The following looping statements are available in VBScript: o o o o Do...Loop: Loops while or until a condition is True. While...Wend: Loops while a condition is True. For...Next: Uses a counter to run statements a specified number of times. For Each...Next: Repeats a group of statements for each item in a collection or each element of an array.
9.1 Using Do Loops We can use Do...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. 9.1.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, we can use this below syntax: Example: Dim x Do While x<5 x=x+1 Msgbox "Hello G.C.Reddy" Msgbox "Hello QTP" Loop b) Do Statements For Manual Testing documents visit:
www.gcreddy.net
22
www.gcreddy.net
23
www.gcreddy.net
24
www.gcreddy.net
25
VB Script Procedures
In VBScript, there are two kinds of procedures available; the Sub procedure and the Function procedure. 11.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. A Sub procedure can take arguments (constants, variables, or expressions that are passed by a calling procedure). If a Sub procedure has no arguments, its Sub statement must include an empty set of parentheses (). Syntax: Sub Procedure name () Statements --------------------End Sub Or Sub Procedure name (argument1, 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." End Sub Example: 2 11.2 Function Procedures A Function procedure is a series of VBScript statements enclosed by the Function and End Function statements. A Function procedure is similar to a Sub procedure, but can also return a value. A Function procedure can take arguments (constants, variables, or expressions that are passed to it by a calling procedure).
www.gcreddy.net
26
11.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. For example: Temp = Celsius(fDegrees) -OrMsgBox "The Celsius temperature is " & Celsius(fDegrees) & " degrees."
www.gcreddy.net
27
www.gcreddy.net
28
Important Functions 1) Abs Function Returns the absolute value of a number. Dim num num=abs(-50.33) msgbox num 2) Array Function Returns a variant containing an Array Dim A A=Array("hyderabad","chennai","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. Dim num num=Asc("A") msgbox num * It returns the value 65 * 4) Chr Function Returns the character associated with the specified ANSI character code. Dim char For Manual Testing documents visit:
www.gcreddy.net
29
Ex2)
8) DateDiff Function Returns the number of intervals between two dates. Dim myday mydate=#02-17-2009# x=Datediff("d",mydate,Now) msgbox x 9) Hour Function Returns a whole number between 0 and 23, inclusive, representing the hour of the day. 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. Dim mystring, myarray(3) myarray(0)="Chandra " myarray(1)="Mohan " myarray(2)="Reddy"
www.gcreddy.net
30
11) Eval Function Evaluates an expression and returns the result. 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. Dim MyCheck MyCheck = VarType(300) Msgbox Mycheck ' Returns 2. ' Returns 7.
MyCheck = VarType(#10/19/62#) Msgbox Mycheck MyCheck = VarType("VBScript") Msgbox Mycheck 14) Left Function
' Returns 8.
Dim MyString, LeftString MyString = "VBSCript" LeftString = Left(MyString, 3) ' LeftString contains "VBS". 14) Right Function Dim AnyString, MyStr AnyString = "Hello World" ' Define string. MyStr = Right(AnyString, 1) ' Returns "d". MyStr = Right(AnyString, 6) ' Returns " World". MyStr = Right(AnyString, 20) ' Returns "Hello World". 15) Len Function Returns the number of characters in a string or the number of bytes required to store a variable. Ex 1): Dim Mystring mystring=Len("G.C.Reddy") msgbox mystring
www.gcreddy.net
31
www.gcreddy.net
32
21.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 two statements below are identical in VBScript: Browser("Mercury").Page("Find a Flight:").WebList("toDay").Select "31" browser("mercury").page("find a flight:").weblist("today").select "31" 21.2 Text strings: When we enter a value as a text string, we must add quotation marks before and after the string. For example, in the above segment of script, the names of the Web site, Web page, and edit box are all text strings surrounded by quotation marks. Note that the value 31 is also surrounded by quotation marks, because it is a text string that represents a number and not a numeric value. In the following example, only the property name (first argument) is a text string and is in quotation marks. The second argument (the value of the property) is a variable and therefore does not have quotation marks. The third argument (specifying the timeout) is a numeric value, which also does not need quotation marks. Browser("Mercury").Page("Find a Flight:").WaitProperty("items count", Total_Items, 2000) 21.3 Variables: We can specify variables to store strings, integers, arrays and objects. Using variables helps to make our script more readable and flexible 21.4 Parentheses: To achieve the desired result and to avoid errors, it is important that we use parentheses () correctly in our statements. 21.5 Indentation: We can indent or outdent our script to reflect the logical structure and nesting of the statements. 21.6 Comments: For Manual Testing documents visit:
www.gcreddy.net
33
We can add comments to our statements using an apostrophe ('), either at the beginning of a separate line, or at the end of a statement. It is recommended that we add comments wherever possible, to make our scripts easier to understand and maintain. 21.7 Spaces: We can add extra blank spaces to our script to improve clarity. These spaces are ignored by VBScript.
Errors
We have two types Errors in VB Script; they are VBScript Run-time Errors and VBScript Syntax Errors 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. VBScript run-time errors occur while our script is being executed; when variable expressions are being evaluated, and memory is being dynamic allocated. 13.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. VBScript syntax errors occur during the program compilation stage, before the program has begun to be executed.
www.gcreddy.net
34
www.gcreddy.net
35
www.gcreddy.net
36
www.gcreddy.net
37
www.gcreddy.net
38
CompareFiles = False Do While File1.AtEndOfStream = False Str1 = File1.Read Str2 = File2.Read CompareFiles = StrComp(Str1, Str2, 0) If CompareFiles <> 0 Then CompareFiles = True Exit Do End If Loop File1.Close() File2.Close() End Function Call Comparefiles(f1,f2) If CompareFiles(f1, f2) = False Then MsgBox "Files are identical." Else MsgBox "Files are different." End If j) Counting the number of times a word appears in a file sFileName="E:\gcr.txt" sString="gcreddy" Const FOR_READING = 1 Dim oFso, oTxtFile, sReadTxt, oRegEx, oMatches Set oFso = CreateObject("Scripting.FileSystemObject") Set oTxtFile = oFso.OpenTextFile(sFileName, FOR_READING) sReadTxt = oTxtFile.ReadAll Set oRegEx = New RegExp oRegEx.Pattern = sString oRegEx.IgnoreCase = bIgnoreCase oRegEx.Global = True Set oMatches = oRegEx.Execute(sReadTxt) MatchesFound = oMatches.Count Set oTxtFile = Nothing : Set oFso = Nothing : Set oRegEx = Nothing msgbox MatchesFound
www.gcreddy.net
39
www.gcreddy.net
40
Test Requirements
1) Verify Login Boundary (Check all the boundary conditions of the Login window. Checks to see if the correct message appears in the error window (Flight Reservation Message) 2) Verify Cancel Operation (in Login Dialog box, if user selects cancel button, before enter any data after enter data dialog box should be disappeared.) 3) Verify Addition, Subtraction, Multiplication and Division Operations in Calculator Application. 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.) 5) Price Consistency, In Flight Reservation (In Flight Reservation, First class price=3*Economy class price and Business class price=2*Economy class price) 6) Verify Total, In Flight Reservation (In Flight Reservation, Total = Tickets * Price) For Manual Testing documents visit:
www.gcreddy.net
41
7) Verify Flight From & Flight To Combo Boxes (In Flight reservation, 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.) 8) Verify Order No Entry in Flight Reservation. (In Open Order dialog box, Order No object accepts numeric values only.) 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, 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, 3 search options should be enabled and not checked, After selecting Order No option, other options should be disabled, After selecting Customer Name, Flight date option enabled and Order No disabled After selecting Flight date option, Customer Name enabled and Order No disabled ) 14) In Login Dialog box, 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, enter some data and save the file through VB scripting?
www.gcreddy.net
42
ww.gcreddy.com
www.gcreddy.net
43