Micro Focus QTP (UFT) Forums
How to compare Text Output value with word document - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to compare Text Output value with word document (/Thread-How-to-compare-Text-Output-value-with-word-document)



How to compare Text Output value with word document - smitha79 - 09-03-2010

Hi,

In my application I need to read an agreement which has nearly 22 pages( Manually to get the job done we read word by word and it is Case sensitive). Now it is time to Automate with QTP.
I created script and added Text check point or Text Output value check point.

All I need to do now is Compare this output value with word document which has same content and make sure nothing is missed.

How can I call this word document into my script and compare with Text output value check point?


RE: How to compare Text Output value with word document - pjeigenn - 09-03-2010

You can see how to work with files in the help file in QTP. Search for the words "working with files". If you want to compare all the document, character by character, you can use the function "mid" (see help for more information).