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 |
Is vbscript language a case-sensitive language and what does it mean?
How to throw an error in vbscript?
how to retrive the tooltip by using descriptive programming in qtp?
Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
How to write VB Script for selecting a particular row in a WebTable?
We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below
hi, How will write a regular expression of date in VB scripting.
Which command is used for writing text on a page?
write any ttest cases using check points and parameterization
How will you generate Reports using Vb Script?it asked in testing(QTP)Interview.Plz Any Body Let me know. Thanks uday Uday_testing@yahoo.co.in
Explain about scrrun.dll in vbscript?