What is the logic for reading(exporting)the data from flat
files to QTP?Can anyone explain me with an example?
I appreciate it!!!
Thanks!!!
Prasanna
Answer / jhansi rani
the process is
assume the flat file is "abc.txt" which consists of some
data like sno and sname.
first we need to create object for that txt file like
set fso=createobject("scripting.filesystemobject")
next open that file using that fso
set f=fso.opentextfile("path of the txt file",mode)
1 --- readingmode
2 --- writing mode
8 --- append mode
while f.atendofline <> true
f.readline --- to read the line from the text file
.
.
.
.
.
perform require operations
wend
so total script is as follows
Set fso=createobject("scripting.filesystemobject")
Set f=fso.opentextfile("E:\testingexamples\abc.txt",1)
While f.atendofline <> true
msgbox f.readline
wend
| Is This Answer Correct ? | 3 Yes | 0 No |
wat are views in qtp explain
What type of VB script u had done in expert view?
How to attach a file to TD?
How to count no of edit boxes on the page?
tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?
Can you write a script to check if the folder exists or not?
what is meant by Implicit and explicit requirements?
Tell me about your project? please help me how to tell about insurance project
What is the difference between keyword driven frameworkd and Modularisation framework?(Chandana)
How to get the column count and column name from the resultset in the database connection program?
Can any body tell me what is the method to connect the remote desk top throw QTP 9.2 version?
How many types of Automation frameworks are there in UFT? Describe them.