How do u retrieve data from a text file into different
variables. i.e.
in a text file named "source" , the data is like :
india,1000,japan,200,china,50,singapore,45050
this is given in the first line of the text file.
in the second line of the text file the dta is:
sun,moon,planet,river,earth,water
if u use "readline" method by using FSO concept u can
retrieve the entire line in to a variable. but i want to
import each field (ex: "india" in one variable, "1000" in
another variable etc..). Apprecitae proper replies.
Answer Posted / divakar o
Mr,
You have done almost,
Using FSO Readline, retrieve the line in to variable say A
then apply Split function on variable A and use the Comma(,)
as delimeter to split and get this data into a variable of
type array
then get each of the array element into required variable
need more info...
next time
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
explain how to write vb script in qtp?when will you write own script?
What are the differences between quicktest professional and winrunner?
In qtp, how you can exit for loop?
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
What is Distributed testing? How does UFT support it?
We stored into the objects OR and then write the scripting
When Recovery scenario actually starts while testing the application?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
Is it possible to split an action? How?
Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?
Without using gui map editor we can recognize the application in winrunner ?
Define virtual object?
can the activities of test case design be automated?
How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?