O'Reilly logo

Agile Automation and Unified Funtional Testing by Rajeev Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

METHODS

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required