Note: There are prerequisites for attending this workshop. Please see the prerequisites section.
When you are writing Selenium tests to check for elements on your page, by taking the classic approach (checking for each element’s properties at a time), you might get to a large number of assert steps, one per each property you are checking. This increases the lines of code your tests have, make the tests difficult to maintain and tricky to read.
Wouldn’t it be nice if the actual checking part of the test would be small, perhaps one line of code? With the approach I am going to present, you can do just that. Hence your tests will be small and clean. All you will need to do is model the pages/modules/items by using an Object Oriented approach within your actual tests.
A workshop on Selenium and Java.
- Representing the modules or pages to test as Java objects;
- Generating the expected and actual results for your tests based on these objects;
- Comparing the actual objects with the expected ones will lead to a very short number of assertions in your tests.
Participants are required to bring a laptop with appropriate software setup - please see instructions from here.