Creating framework using the OOP approach

Object-oriented Programming (OOP) is widely used not only in program development, in automated testing as well. With its help, tests become more readable and simple in maintenance and follow up.

In the given recipe, we will consider an example of creating a simple object-oriented framework for testing the Notepad application and writing up a simple test applying the OOP approach. The task of the test is launching the Notepad application, open the existing file, check if the file has opened, and then close the Notepad application.

Getting ready

Perform the following steps before starting:

  1. Add the TestedApps element to your project (right-click on the project name, and select Add | New Item).
  2. Add the standard ...

Get TestComplete Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.