How to use Text file (Notepad) as ur data source in QTP?
Can u please provide some function code for it?
For this you need create File system object.
Below code is for reading from text file
Const ForRead=1
Dim objFSO, objFile, strText
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Reading code
Set objFile=objFSO.OpenTextFile("z:\filetext.txt", ForRead)
Do until objFile.AtEndOfStream
strText=objFile.ReadLine
msgbox strText
Loop
objFile.close
Set objFile = nothing
Set objFile1 = nothing
Set objFSO =nothing
"strText" variable will now contain data from text file.
| Is This Answer Correct ? | 9 Yes | 1 No |
Compare java script and vb script?
how to display all the links in one page using vb script in qtp.
1 Answers DST Global Solutions,
Both Static and dynamic arrays are handled by VB script. Is it true?
When does ‘on click of button’ event gets triggered in the vbscript language?
can anybody tell vb script code for alphanumeric and special character .which is used in qtp the name text field.
How to copy from one script to another script in qtp
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
How to write a general script which should does the following a). If a page object is given, it should identify the page object of the corresponding page(site). b). It should identify all the links of that particular page. in QTP tool?
2 Answers IBM, Infosys, Wipro,
Mention what are the rules to name variable in vbscript?
Why is it recommended to close the database connection every time after the work is completed?
Explain few date functions in vbscript?
write a vbscrpit to swap values