O'Reilly logo

TestComplete Cookbook by Gennadiy Alpaev

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

Organizing script code in the project

When working with the real project, it is necessary to somehow organize code repository to be able to easily locate the code. This can be achieved through placing functions and variables that are bound to a specific functionality, into separate units. This approach is called functional decomposition.

In this recipe, we will take on an example of such decomposition for testing the Calculator Plus.

How to do it...

  1. First of all, we need to find out which layers are going to break down the code of our project. Usually, there are three such levels:
    • The level of the libraries: In this level, we create functions and classes that may be used in any project. For example, functions operating with strings, arrays, and databases ...

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