• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Parameterization is nothing but giving multiple input

on

  • 290 views

 

Statistics

Views

Total Views
290
Views on SlideShare
290
Embed Views
0

Actions

Likes
0
Downloads
12
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Parameterization is nothing but giving multiple input Parameterization is nothing but giving multiple input Document Transcript

    • Parameterization is nothing but giving multiple Input/Test data to the test script.Different ways to Parameterize:1. Input the Test data from External files.2. Input the Test data through Datatable.3. Input Test data through loop statements.4. Input Test data dynamically through interactive submission.Setmyxl = createobject("excel.application")Make sure that you have created an excel file before executingthe script .Use the path of excel file in the below code.Also make sure that your excel file is in Closed state.myxl.Workbooks.Open"D:parameter.xls"myxl.Application.Visible = true"Sheet1" is the name of Sheet in Excel file "qtp.xls" wheredata needs to be entered .setmysheet = myxl.ActiveWorkbook.Worksheets("Sheet1")contents of sheet1UnamePwd------------ ------------qtpworld.comqtpadminqtp qtpadminabcdabcdLaunch GmailSystemutil.Run"iexplore.exe","http:www.gmail.com"Browser("title:=Gmail: Email from Google").Page("title:=Gmail:Email from Google").SyncGet the max row occupied in the excel fileRow=mysheet.UsedRange.Rows.CountTo read the data from the entire Excel fileFor i= 2 to Row
    • Username=mysheet.cells(i,1).valuePassword=mysheet.cells(i,2).value Enter Email id in Username FieldBrowser("title:=Gmail: Email from Google").Page("title:=Gmail:Email from Google").WebEdit("name:=Email").Set UsernameEnter password in Passowrd FieldBrowser("title:=Gmail: Email from Google").Page("title:=Gmail:Email from Google").WebEdit("name:= Passwd").Set Passwordwait 1NextClose the Workbookmyxl.ActiveWorkbook.CloseClose Excelmyxl.Application.QuitRelease the objectsSetmysheet =nothingSetmyxl = nothingInput the Test data through Datatable:Insert username and Password in the datatable sheet "Global"under column "Username" and "Password"contents of Global SheetUsername Password------------- ------------qtpworld.comqtpadminqtp qtpadminabcdabcdGet the max used range of the datasheet "Global"row=datatable.GetSheet("Global").GetRowCountLaunch gmail.comSystemutil.Run"iexplore.exe","http:www.gmail.com"Browser("title:=Gmail: Email from Google").Page("title:=Gmail:Email from Google").Sync
    • Make sure whenever you parameterize through datatable you dothe following ,1. go to File ->Settings ->Run2.On the right side panel , Under "Data Table iterations"select the first option that is "Run one iteration only"Loop to read all the data in the datasheet "Global"ForDrow= 1 to rowdatatable.GetSheet("Global").SetCurrentRow(Drow)Username=datatable.Value("Username","Global")Password=datatable.Value("Password","Global") Enter Email id in Username FieldBrowser("title:=Gmail: Email from Google").Page("title:=Gmail:Email from Google").WebEdit("name:=Email").Set UsernameEnter password in Passowrd FieldBrowser("title:=Gmail: Email from Google").Page("title:=Gmail:Email from Google").WebEdit("name:= Passwd").Set PasswordWait 1NextInput Test data through loop statements:parameterize using loop valueFororderno=1 to 10Login to sample Qtp flight application and keep the main windowopen.Window("Flight Reservation").WinButton("Button").ClickWindow("Flight Reservation").Dialog("OpenOrder").WinCheckBox("Order No.").Set"ON"Parameterize orderno using the loop valueWindow("Flight Reservation").Dialog("OpenOrder").WinEdit("Edit").SetordernoWindow("Flight Reservation").Dialog("OpenOrder").WinButton("OK").ClickNext
    • Input Test data dynamically through interactive submission:Launch gmail.comSystemutil.Run"iexplore.exe","http:www.gmail.com"Browser("title:=Gmail: Email from Google").Page("title:=Gmail:Email from Google").SyncAllowing user to enter User name and Password three timesduring run timeFor i = 1 to 3Allowing user to enter User name and PasswordUsername=Inputbox("Enter username")Password=InputBox("Enter Password") Enter Email id in Username FieldBrowser("title:=Gmail: Email from Google").Page("title:=Gmail:Email from Google").WebEdit("name:=Email").Set UsernameEnter password in Passowrd FieldBrowser("title:=Gmail: Email from Google").Page("title:=Gmail:Email from Google").WebEdit("name:= Passwd").Set PasswordNext
    • Working with Files using FSOFSO:Filesystemobject is an object model which is used to handle the drives, folders, and files of a system orserver.♦ If an user needs to work on Driver, Folder, Files properties,methods or events then the first step heneed to setup is filesystemobject♦ File system object is an interface between QTP and the local system. using FSO we can create/deletefolder,create/delete/readfrom/write to text files♦ The FileSystemObject (FSO) object model allows you to use the familiar object.method syntax with arich set of properties, methods, and events to process folders and filesObject/Collection Description:FileSystemObject:File system object is a Main object. Contains methods and properties that allow you to create, delete,gain information about, and generally manipulate drives, folders, and files. Many of the methodsassociated with this object duplicate those in other FSO objects; they are provided for convenience.Drive:Drive is a Object. Contains methods and properties that allow you to gather information about a driveattached to the system, such as its share name and how much room is available. Note that a "drive" isntnecessarily a hard disk, but can be a CD-ROM drive, a RAM disk, and so forth. A drive doesnt need to bephysically attached to the system; it can be also be logically connected through a network.Drives:Drives are Collection. Provides a list of the drives attached to the system, either physically or logically.The Drives collection includes all drives, regardless of type. Removable-media drives need not havemedia inserted for them to appear in this collection.File:File is a Object. Contains methods and properties that allow you to create, delete, or move a file. Alsoallows you to query the system for a file name, path, and various other properties.Files:Files are Collection. Provides a list of all files contained within a folder.
    • Folder:Folder is a Object. Contains methods and properties that allow you to create, delete, or move folders.Also allows you to query the system for folder names, paths, and various other properties.Folders:Folders are Collection. Provides a list of all the folders within a Folder.TextStream:TextStream is a Object. Allows you to read and write text files.⇒Creating a FileSystemObject Object:First, create a FileSystemObject object by using the CreateObject method.The following code displays how to create an instance of the FileSystemObject:Dim fsoSet fso = CreateObject("Scripting.FileSystemObject")Using the Appropriate MethodSecond, use the appropriate method of the FileSystemObject object. For example, to create a newobject, use either CreateTextFile⇒Method: CreateTextFileDescription: Creates a specified file name and returns a TextStream object that can be used to read fromor write to the fileSyntax: Set objfile = fso.CreateTextFile(filename[, overwrite[, Unicode]])Arguments:fso: (Required) The name of a FileSystemObject object previously instantiatedfilename: (Required) A string expression that identifies the file to create (Optional) Boolean value that indicates whether you can overwrite an existing file. The value is True if the fileoverwrite: can be overwritten, False if it cant be overwritten. If omitted, existing files are not overwritten (default False).
    • (Optional) Boolean value that indicates whether the file is created as a Unicode or ASCII file. If the value isunicode: True, the file is created as a Unicode file. If the value is False, the file is created as an ASCII file. If omitted, an ASCII file is assumed.Example:Create a filesystemObjectSet fso=createobject("Scripting.FileSystemObject")Create a non existing file "qtptest.txt " with overwrite option as TrueSet qfile1=fso.CreateTextFile("C:qtptest.txt",True,False)Output --> New File "qtptest.txt " is createdClose the filesqfile1.CloseRelease the allocated objectsSet qfile1=nothingExample:Create a filesystemObjectSet fso=createobject("Scripting.FileSystemObject")Create a file "qtptest.txt " in C Drive .Then run the below statement with overwrite option as FalseOutput --> Error message "Fie already exists" is displayedSet qfile2=fso.CreateTextFile("C:qtpexist.txt",False,False)Set fso=nothing⇒Method: CopyFileDescription: Copies one or more files from one location to a new locationSyntax: fso.CopyFile (source, destination[, overwrite])
    • Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated. (Required) A character string file specification, which can include wildcard characters, for one or more filessource: to be copied. (Required) Character string destination where the file or files from source are to be copied.Wildcarddestination: characters are not allowed in the destination string. (Optional) Boolean value that indicates if existing files are to be overwritten. If True, files are overwritten;overwrite: if False, they are not. The default is True. Note that CopyFile will fail if destination has the read-only attribute set, regardless of the value of overwrite.Example:Set fso=createobject("Scripting.FileSystemObject")File to be copied Sourcefile="C:copy.txt"Dest folder where the file has to be copiedDestination="D:final1"If the destination doesnot exist then create the destination folderIf fso.FolderExists(Destination) = false Thenfso.CreateFolder (Destination)End IfCopy the filefso.CopyFileSourcefile,Destination,TrueSet fso=nothing⇒Method: DeleteFileDescription: Deletes a specified fileSyntax: fso.DeleteFile (filename[, force])Arguments:
    • fso: (Required) The name of a FileSystemObject object previously instantiated (Required) The name of the file to delete. The filename can contain wildcard characters in the lastfilename: path component. (Optional) Boolean value that is True of files with the read-only attribute set are to be deleted;False ifforce: they are not. False is the default.Example:Set fso=createobject("Scripting.FileSystemObject")File to be deleted. Sourcefile="C:copy.txt" Delete the filefso.DeleteFileSourcefileSet fso=nothing⇒Method: CreateFolderDescription: Creates a new folder in the specified locationSyntax: fso.CreateFolder(foldername)Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated.foldername: (Required) A character string expression that identifies the folder to create.Example:Set fso=createobject("Scripting.FileSystemObject")Folder to be created Foldername="D:Folder_create"If the folder doenotexst then create the folderIf fso.FolderExists(Foldername) = false Thenfso.CreateFolder (Foldername)End IfSet fso=nothing
    • ⇒Method: CopyFolderDescription: Copies a folder to a new locationSyntax: fso.CopyFolder (source, destination[, overwrite])Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated. (Required) A character string folder specification, which can include wildcard characters, forsource: one or more folders to be copied. Wildcard characters can only be used in the last path component of the source argument. (Required) Character string destination where the folder and subfolders from source are to bedestination: copied. Wildcard characters are not allowed in the destination string. (Optional) Boolean value that indicates if existing folders are to be overwritten. If True, files areoverwrite: overwritten; if False, they are not. The default is True.Example:Set fso=createobject("Scripting.FileSystemObject")Folder to be created SourcePath="D:Folder_create" DestinationPath="D:Destination"If the folder doesnotexst then create the folderIf fso.FolderExists(DestinationPath) = false Thenfso.CreateFolder (DestinationPath)End Iffso.CopyFolderSourcePath,DestinationPath,TrueSet fso=nothing⇒Method: MoveFolderDescription: Moves one or more folders from one location to another.Syntax: fso.MoveFolder (source, destination)
    • Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated. (Required) The path to the folder or folders to be moved. The source argument string can containsource: wildcard charactersin the last path component only. (Required) The path where the folder or folders are to be moved. The destination argument cantdestination: contain wildcard characters.Example:Set fso=createobject("Scripting.FileSystemObject")Folder to be created SourcePath="D:Folder_move" DestinationPath="D:Destination"If the folder doesnotexst then create the folderIf fso.FolderExists(DestinationPath) = false Thenfso.CreateFolder (DestinationPath)End Iffso.MoveFolderSourcePath,DestinationPathSet fso=nothing⇒Method: DeleteFolderDescription: Deletes the specified folder and its contentsSyntax: fso.DeleteFolder (folderspec[, force])Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated (Required) The name of the folder to delete. The folderspec can contain wildcard characters infolderspec: the last path component. (Optional) Boolean value that is True of folders with the read-only attribute set are to beforce: deleted;False if they are not. False is the default.
    • Example:Set fso=createobject("Scripting.FileSystemObject")Folder to be deleted. FolderDel="D:final1" Delete the folderfso.DeleteFolder(FolderDel)Set fso=nothing⇒Method: DriveExistsDescription: Determines whether or not a specified drive existsSyntax: fso.DriveExists (drivespec)Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated.drivespec: (Required) A drive letter or a complete path specification.Example:Set fso=createobject("Scripting.FileSystemObject")The drive to check the existencedrivepath="D:"If fso.DriveExists(drivepath) thenmsgbox "Drive Exists" Else Msgbox "Drive doesnot Exist"End IfSet fso=nothing⇒Method: FileExistsDescription: Determines whether or not a specified file existsSyntax: fso.FileExists (filespec)
    • Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated. (Required) The name of the file whose existence is to be determined. A complete pathfilespec: specification (either absolute or relative) must be provided if the file isnt expected to exist in the current folder.Example:Set fso=createobject("Scripting.FileSystemObject")The file to check the existencefilepath="D:qtptest.txt"If fso.FileExists(filepath) thenmsgbox "File Exists"ElseMsgbox "File doesnot Exist"End IfSet fso=nothing⇒Method: FolderExistsDescription: Determines whether or not a specified folder existsSyntax: fso.FolderExists (folderspec)Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated. (Required) The name of the folder whose existence is to be determined. A complete pathfolderspec: specification (either absolute or relative) must be provided if the folder isnt expected to exist in the current folder.Example:
    • Set fso=createobject("Scripting.FileSystemObject")The Folder to check the existencefolderpath="D:qtp"If fso.FolderExists(folderpath) thenmsgbox "Folder Exists"ElseMsgbox "Folder doesnot Exist"End IfSet fso=nothing⇒Method: GetDriveDescription: Returns a Drive object corresponding to the drive for a specified pathSyntax: objDrv = fso.GetDrive(drivespec)Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated. (Required) The drivespec argument can be a drive letter (c), a drive letter with a colon appended (c:), adrivespec: drive letter with a colon and path separator appended (c:), or any network share specification (computer2share1).Example:Set fso=createobject("Scripting.FileSystemObject")Drive for getting details Sourcefile="C:" Set get_drv=fso.GetDrive(Sourcefile)
    • Some of the following details can be retrieved from a drivemsgboxget_drv.AvailableSpaceMsgboxget_drv.DriveLettermsgboxget_drv.DriveTypemsgboxget_drv.FileSystemmsgboxget_drv.FreeSpacemsgboxget_drv.PathMsgboxget_drv.RootFolderMsgboxget_drv.SerialNumberMsgboxget_drv.TotalSizeSet fso=nothing⇒Method: GetFolderDescription: Returns a Folder object corresponding to the folder in a specified pathSyntax: objFolder = fso.GetFolder(folderSpec)Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated.folderSpec: (Required) The folderspec is the path (absolute or relative) to a specific folder.Example:Set fso=createobject("Scripting.FileSystemObject")Folder for getting details
    • Sourcefolder="D:QTP"Set get_folder=fso.GetFolder(Sourcefolder)get the subfolders count in a folderSet get_subfolder=get_folder.SubFoldersFor eachsfile in get_subfolderGet the name of each folderMsgbox sfile.nameNextSet fso=nothing⇒Method: GetFileDescription: Returns a File object corresponding to the file in the specified path. The file object methodsand properties can be accessed. See File Object for the file object’s methods and properties.Syntax: objFile = fso.GetFile(fileSpec)Arguments:fso: (Required) The name of a FileSystemObject object previously instantiated.fileSpec: (Required) The filespec is the path (absolute or relative) to a specific file.Example:Set fso=createobject("Scripting.FileSystemObject")
    • File for getting details Sourcefile="D:qtptest.txt"Set get_file=fso.GetFile(Sourcefile)Some of the following details can be retrieved from a filemsgboxget_file.DateCreatedmsgboxget_file.DateLastAccessedmsgboxget_file.DateLastModifiedmsgboxget_file.ParentFoldermsgboxget_file.PathSet fso=nothingText Stream Object Methods:⇒Method: CloseDescription: Closes an open TextStream fileSyntax: objTso.CloseArguments:objTso: (Required) The name of a TextStream Object previously instantiated.Example:Set fso=createobject("Scripting.FileSystemObject")Open the file "qtptest.txt" in writing mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",2,True)
    • write contents to the file into a single lineqfile.Write "Welcome to the World of QTP"qfile.Write "the file name is qtptest.txt"Open the file "qtptest.txt" in reading mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",1,True)Read the entire contents of priously written fileDo while qfile.AtEndOfStream<> trueOutput --> The file will contain the above written content in single line.Msgboxqfile.ReadLineLoopClose the filesqfile.CloseRelease the allocated objectsSet qfile=nothingSet fso=nothing⇒Method: ReadDescription: Reads a specified number of characters from a TextStream file and returns the resultingstring.
    • Syntax: strChars = objTso.Read(numCharacters)Arguments:objTso: (Required) The name of a TextStream Object previously instantiated.numCharacters: (Required) The number of characters you want to read from the fileExample:Set fso=createobject("Scripting.FileSystemObject")Open the file "qtptest.txt" in writing mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",2,True)write contents to the file into two newlinesqfile.Writeline "Welcome to the World of QTP"qfile.Writeline "the file name is qtptest.txt"Open the file "qtptest.txt" in reading mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",1,True)Read characters from the fileMsgboxqfile.Read(10) Output --> "Welcome to" will be readClose the filesqfile.CloseRelease the allocated objectsSet qfile=nothingSet fso=nothing⇒Method: ReadAllDescription: Reads the entire TextStream file and returns the resulting string.Syntax: strChars = objTso.ReadAll
    • Arguments: (Required) The name of a TextStream Object previouslyobjTso: instantiated.Example:Set fso=createobject("Scripting.FileSystemObject")Open the file "qtptest.txt" in writing mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",2,True)write contents to the file into two newlinesqfile.Writeline "Welcome to the World of QTP"qfile.Writeline "the file name is qtptest.txt"Open the file "qtptest.txt" in reading mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",1,True)Read the entire contents of priously written fileMsgboxqfile.ReadAll Output --> Displays the entire file.Close the filesqfile.CloseRelease the allocated objectsSet qfile=nothingSet fso=nothing⇒Method: ReadLineDescription: Reads an entire line (up to, but not including, the newline character) from a TextStream file
    • and returns the resulting string.Syntax: strChars = objTso.ReadLineArguments:objTso: (Required) The name of a TextStream Object previously instantiated.Example:Set fso=createobject("Scripting.FileSystemObject")Open the file "qtptest.txt" in writing mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",2,True)write contents to the file into two newlinesqfile.Writeline "Welcome to the World of QTP"qfile.Writeline "the file name is qtptest.txt"Open the file "qtptest.txt" in reading mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",1,True)Read the entire contents of priously written fileDo while qfile.AtEndOfStream<> trueMsgboxqfile.ReadLine Output --> The file will be read line line by line.LoopClose the filesqfile.CloseRelease the allocated objectsSet qfile=nothingSet fso=nothing
    • ⇒Method: Write:Description: Writes a specified string to a TextStream file.Syntax: objTso.Write(string)Arguments:objTso: (Required) The name of a TextStream Object previously instantiated.string: (Required) The text you want to write to the file.Example:Set fso=createobject("Scripting.FileSystemObject")Open the file "qtptest.txt" in writing mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",2,True)write contents to the file into a single lineqfile.Write "Welcome to the World of QTP"qfile.Write "the file name is qtptest.txt"Open the file "qtptest.txt" in reading mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",1,True)Read the entire contents of priously written fileDo while qfile.AtEndOfStream<> trueOutput --> The file will contain the above written content in single line.Msgboxqfile.ReadLineLoopClose the filesqfile.Close
    • Release the allocated objectsSet qfile=nothingSet fso=nothing⇒Method: WriteLineDescription: Writes a specified string and newline character to a TextStream file.Syntax: objTso.WriteLine([string])Arguments:objTso: (Required) The name of a TextStream Object previously instantiated.string: (Optional) The text you want to write to the file.Example:Set fso=createobject("Scripting.FileSystemObject")Open the file "qtptest.txt" in writing mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",2,True)write contents to the file into two newlinesqfile.Writeline "Welcome to the World of QTP"qfile.Writeline "the file name is qtptest.txt"Open the file "qtptest.txt" in reading mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",1,True)Read the entire contents of priously written fileDo while qfile.AtEndOfStream<> trueOutput --> The file will contain the above written content line by line.Msgboxqfile.ReadLineLoop
    • Close the filesqfile.CloseRelease the allocated objectsSet qfile=nothingSet fso=nothing⇒Method: WriteBlankLinesDescription: Writes a specified number of newline characters to a TextStream file.Syntax: objTso.WriteBlankLines(numLines)Arguments:objTso: (Required) The name of a TextStream Object previously instantiated.numLines: (Required) The number of newline characters you want to write to the file.Example:Set fso=createobject("Scripting.FileSystemObject")Open the file "qtptest.txt" in writing mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",2,True)write contents to the file into two newlinesqfile.Writeline "Welcome to the World of QTP"will insert 4 new blank linesqfile.WriteBlankLines(4)qfile.Writeline "the file name is qtptest.txt"Open the file "qtptest.txt" in reading mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",1,True)Read the entire contents of priously written file
    • Do while qfile.AtEndOfStream<> trueOutput --> The file will be read file line by line.Msgboxqfile.ReadLineLoopClose the filesqfile.CloseRelease the allocated objectsSet qfile=nothingSet fso=nothing⇒Property: AtEndOfLineDescription: Indicates whether the file pointer is positioned immediately before the end-of-line markerin a TextStream file.Syntax: objTso.AtEndOfLineArguments:objTso: (Required) The name of a TextStream Object previously instantiated.Example:Set fso=createobject("Scripting.FileSystemObject")Open the file "qtptest.txt" in writing mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",2,True)write contents to the file into newlineqfile.Writeline "Welcome to the World of QTP"Open the file "qtptest.txt" in reading mode.
    • Set qfile=fso.OpenTextFile("C:qtptest.txt",1,True)Do while qfile.AtEndOfLine<> trueMsgboxqfile.Read(1) Output --> The file will be read word by word.LoopClose the filesqfile.CloseRelease the allocated objectsSet qfile=nothingSet fso=nothing⇒Property: AtEndOfStreamDescription: Indicates whether the file pointer is positioned at the end of a TextStream file.Syntax: objTso.AtEndOfStreamArguments:objTso: (Required) The name of a TextStream Object previously instantiated.Example:Set fso=createobject("Scripting.FileSystemObject")Open the file "qtptest.txt" in writing mode.Set qfile=fso.OpenTextFile("C:qtptest.txt",2,True)write contents to the file into two newlinesqfile.Writeline "Welcome to the World of QTP"qfile.Writeline "the file name is qtptest.txt"Open the file "qtptest.txt" in reading mode.
    • Set qfile=fso.OpenTextFile("C:qtptest.txt",1,True)Read the entire contents of previously written fileDo while qfile.AtEndOfStream<> trueMsgboxqfile.ReadLine Output --> The file will be read line line by line.LoopClose the filesqfile.CloseRelease the allocated objectsSet qfile=nothingSet fso=nothing