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.
Perform the following steps before starting:
- Add the TestedApps element to your project (right-click on the project name, and select Add | New Item).
- Add the standard ...