During this tutorial Corina will show you how to create and customize an automation project (framework) from scratch, using Maven.
Java based test design will be the main focus of the tutorial after the project was created: how to avoid repeating code, how to structure your test code, how/when/why to create utility classes and how to run tests.
Corina will show you how to write browser unaware Selenium tests and how to easily switch the browser on which they run. You will learn how to write tests that are environment unaware and how to make them run across your environments. Also you will get an idea of how to easily create tests for translation purposes, when your code runs across localized pages.
Key takeaways:
- How to create a new code project with Maven
- Understanding your pom.xml file
- How to import dependencies with Maven
- How to find what you need in the imported dependencies
- How to create Maven profiles for running tests based on an xml file
- Creating the browser instances and browser utilities
- How to switch browsers in tests and how to write browser unaware tests
- How to switch environments on which tests run and how to write environment unaware tests
- How to create one test that can run across all the localized variations of a page
- How to structure the project (where to place what), how to organize the project
Installation Requirements:
The attendees will need to have the following installed on their machine:
- IntelliJ. Community version will suffice and it is free. Can be downloaded here:
https://www.jetbrains.com/idea/download- A Java JDK (preferably above 8). It is up to the participants to choose which version they want and what provider from (either OpenJDK or Oracle).