Micro Focus QTP (UFT) Forums

Full Version: Pulling Data From Reports
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way in QTP to verify data from a file? For example, our application generates a report to file. Can QTP verify that specific data is in the file?
what type of file is it??
It would be a .txt file. Thanks.
I would advice you to look into FileSystemObject (FSO) Object to read/write from text files. If you want to search for a particular string within that text file, you can do it using Regular Expressions or the InStr/InStrRev functions.
As Anshoo suggested please use FileSystem Object.
Thanks for the help.