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 |
How to Analyze the Checpoint results by Text/Text Area Checkpoint?
How can i Save the snapshots in a specified folders using Scripting in QTP?
What r the advantages of automation?
What is positive test case and Negative Test case? What is the meaning of Real World Scenario's?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
how to read log file using QTP??
1. Can anyone help me with recovery scenarios, each type with examples and also what is on error resume next?
What is test object model in quicktest professional?
what is the test process followed for your project?
How to test the mandatory fields in QTP?
1>How to get the browser name by writing the VBScript. 2>How did you used the GetROProperty and GetTOproperty .give real time scenario. 2>Give and real time ex for the bug having "High Severity and low priority"on banking doamin web based application.
Hi all. Could anyone tell me the difference between an Action and a Function in QTP. Thanks in advance and Merry Christmas.