Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to compare two sentences(Para's)
#1
Not Solved
I need to compare expected and actual values which is nothing but two paragraphs.
Is there a best way experts suggest to do this?

I have been using the strcomp built in function but the problem I am seeing is it always results in "-1" as the two paras differ by spaces per my understanding.
I did a diff between these two I do not see any difference in text but again I cannot make out if there is any extra space in one para between any of the two words.

I am thinking there might be a better way to debug this as I am tired looking at the text differences which I couldn't find and now I hae to look at Space difference between each words... This looks to be quite impossible for me as there are like 100 words in one para.

I haven't used wdiff.exe , not sure how this works.Any ideas?

Any help/ideas appreciated.
Reply
#2
Not Solved
Try this API

http://knowledgeinbox.com/forums/feedbac...-api-beta/
Reply
#3
Not Solved
Tarun,

Thanks much for your input. I tried executing the script(Copied code) in qtp but I get error message
"ActiveX component can't create object: 'KnowledgeInbox.AdvancedTextCompare'"
Reply
#4
Not Solved
Read this

http://knowledgeinbox.com/forums/feedbac...-api-beta/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare 2 image files in Beyond Compare through QTP arpan 0 4,022 10-16-2013, 02:39 AM
Last Post: arpan
  compare 2 pdf files maktha1 0 2,580 11-17-2011, 07:13 AM
Last Post: maktha1
  Can we compare two documents? test71 0 1,997 03-17-2008, 03:09 PM
Last Post: test71

Forum Jump:


Users browsing this thread: 1 Guest(s)