List Icon
Archiv Mailingliste

2019 bis Juli 2022  2018  | 2017 2016 2015 | 2014 | 2013

Die Mailingliste ist seit Juli 2022 geschlossen, dient aber weiterhin als Informationsarchiv zu QF-Test.
Wenn Sie über Neuerungen zu QF-Test informiert bleiben wollen, können Sie einfach unseren Newsletter abonnieren:
Newsletter abonnieren


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] How to check contents of a word document.


  • Subject: Re: [QF-Test] How to check contents of a word document.
  • From: "Thomas Max, QFS Support" <support@?.de>
  • Date: Thu, 04 Sep 2014 15:30:03 +0200

Hello Vinod,

there is no built in function to check the contents of a word document.

For checking a specific text you could use a 3rd party tool like
docx2txt (http://sourceforge.net/projects/docx2txt/) to convert the word
document to a txt-file first.

This txt-file could then be used inside QF-Test for checking the contents.

I've attached a sample suite which triggers the conversion of the word
document and checks for a specific text afterwards.

You just need to download and install docx2txt from the url mentioned
above and modify the filename and path inside the test-suite.

For checking images I would recommend to convert the document to a pdf
and than use for example PDFRenderer
(https://java.net/projects/pdf-renderer) to load the PDF in a Java app.
Inside the java app you could then record image checks on the components
you need to verify.

Best regards,
     Thomas, QFS Support


On 02.09.2014 08:04, Hejib, Vinod IN BLR STS wrote:
Hello All,

I have a MS word document(.doc) generated in one of my application.

The document has texts, diagrams, tables and other string contents.

Can I know how to check contents of this document using QFT

-Vinod



_______________________________________________
qftest-list mailing list
qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-list

Attachment: checkTextFromDoc.qft
Description: application/qftest