Selenium Real-time Project Framework #3 Configure Project

Welcome to the Selenium Real-time Project framework series. This is the third tutorial in which we will configure the project framework. We recommend you to read our last 2 tutorials before jumping to this one.

  1. Selenium Real-time Project Framework – #1 (Maven Project)
  2. Selenium Real-time Project Framework #2 Framework Structure

Alright, let’s move ahead…

Why do we need to create config.properties?

We are trying to save some properties to the outside of the framework code, so we don’t have to modify the code every time. So following folders & files, we will create inside the framework structure:

  1. Configuration
  2. Drivers
Framework Structure

The configuration folder is where we will save configuration properties that are outside of the framework code, so we don’t have to modify the framework code and it will be treated like a generic. So following properties will be saved inside the config.properties file under the configuration folder.

  1. Browser: Like which browser, you want to use to test e-learning project or e-commerce project.
  2. testurl: It is your project URL that you want to open at the starting of framework execution.
Configuration folder
config.properties

Apart from this, we have to create one more folder named of Drivers to save the browser driver executable file, so the framework can find the browser driver executable file based on Browser Property.

Drivers folder

To watch the full video: