Chapter 44

Working with Notepad

Notepad is a basic text editor used to create simple documents. In test automation, Notepad can be used to store script execution status flags, error logs, or any other information relevant to automation. In addition, we can use QuickTest to extract information from the Notepad files created by AUT.


The following are the various methods of the Notepad application object.

  • CreateTextFile—It creates a specified file name and returns a TextStream object that can be used to read from or write to the file.

    Syntax : Object.CreateTextFile (FileName, bOverwriteFlag)

    FileName specifies the file to create

    bOverwriteFlag If this is set to True, then existing file will be overwritten.


    Example: Write code to create ...

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.