Chapter 48

Working with Microsoft Word

Microsoft Word is a word processor designed by Microsoft Corporation. It is widely used to create documents for books, brochures, reports, etc. In automation, MS Word COM interface is used to access Word file data. This Word file could be the reports generated by the AUT. In addition, Word COM interface can be used to dynamically generate test automation regression-run reports.

WORD AUTOMATION OBJECT MODEL

Figure 48.1 shows an abstract word object model.

images

Figure 48.1 Abstract word object model

MS Word provides hundreds of objects to interact with a Word file. The top-level word objects are briefly described ...

Get Agile Automation and Unified Funtional Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.