- Understand the key principles of test automation using Selenium WebDriver
- Understand how to structure your automated testing including the Page Object Model
- Gain a full understanding of how Selenium integrates with the Application Under Test
- Understand how to manage Object Recognition using techniques such as XPath and CSS
- By the end of the course, you should have a thorough understanding of how to develop reliable, robust Selenium Web Tests using the Selenium WebDriver and other tools
Introduction to WebDriver
An overview of the Selenium tools. A discussion of test automation principles.
Installation & Setup
How to install Selenium WebDriver Java, JUnit, Eclipse, and other useful tools. How to organise your file structure.
Capture/Replay using the IDE
Creating a simple recording using the IDE, exporting it as WebDriver then importing into Eclipse and debugging
Deconstructing the Code
Looking at the WebDriver/Junit code,
Element locator strategies
Coding Tests in WebDriver
Overview of the JUNIT key words.
Using the correct WebDriver methods.
Using the correct validation techniques. Checking the code is self-contained and independent
How to build more than one test, in a single Class, using Test Suites, how to enforce execution order
Introducing Page Objects (POM)
Introduction to why we do it and how it makes life easier. Refactoring our tests to use a page object model. Developing a library of pages
Refactoring the tests due to application changes. Practical demonstration of maintenance and how page objects supports that concept.
Screenshots, Using ANT Reports, Using Extent Reporting
Extending the Model
Command-line execution, Integration with source control, integration with Jenkins and automating Test execution