June 2017
Intermediate to advanced
256 pages
5h 38m
English
Assertions are the core of test automation, and there has been a good long debate on where assertions belong. Broadly, there are two types of approaches for handling assertions, and they can be implemented in either of the following:
The first approach says that Page Objects should contain assertions. The advantage of this approach is to minimize the duplication of assertions in the test suite. Also, it helps in organizing the messages and following the Tell, Don't Ask principle (for more information visit: https://martinfowler.com/bliki/TellDontAsk.html). The Tell, Don't Ask principle recommends that an object can be issued a command to perform some operation or logic, rather than to query its state. ...
Read now
Unlock full access