July 2019
Intermediate to advanced
536 pages
12h 57m
English
When we start building test classes, we need to think about how we want to structure files. We are using TestNG as the test framework technology, so we will need to use the annotations it provides to tag the methods in the class.
Other things to consider: how to instantiate the required page object classes, how to declare local variables, when to use private methods in the class, how to pass data to the test methods, and how to structure Java methods so they become setup, teardown, and test methods. Let's get started on the test class structure itself.
Read now
Unlock full access