Micro Focus QTP (UFT) Forums
Pulling Data From Reports - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Pulling Data From Reports (/Thread-Pulling-Data-From-Reports)



Pulling Data From Reports - AGrant - 05-31-2008

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?


RE: Pulling Data From Reports - niranjan - 05-31-2008

what type of file is it??


RE: Pulling Data From Reports - AGrant - 06-02-2008

It would be a .txt file. Thanks.


RE: Pulling Data From Reports - Anshoo Arora - 06-03-2008

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.


RE: Pulling Data From Reports - niranjan - 06-04-2008

As Anshoo suggested please use FileSystem Object.


RE: Pulling Data From Reports - AGrant - 06-04-2008

Thanks for the help.