In test automation, the test code contains not only test logic, but also many other codes, such as URL concatenation, html/xml parsing, access to UI controls, and so on. If the test logic is mixed with these irrelevant codes, the test logic will be difficult to understand and maintain. This article will introduce how to use a hierarchical structure to solve these problems encountered in test automation. In this hierarchical structure, the test automation code will be divided into three layers: (1) The test case layer, which expresses the test logic of the application. (2) The domain layer, which uses business domain terms to model the system under test, encapsulates HTTP requests, browser control, result parsing logic, etc., and provides an interface for the test case layer. (3) The system under test layer, the second layer is built on this layer.
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore