Selenium Real-time Project Framework #2 Framework Structure

Infotek Solutions
2 min readSep 5, 2023
Selenium Real-time Project Framework #2 Framework Structure

As it is widely acknowledged, live projects hold significant importance in automation testing training as they provide an opportunity to experiment with real-world scenarios.

So we introduced tutorial series where you will build a Data-driven framework to test an E-learning web application. In the first part/episode of the Selenium Real-time Project Framework series, we discussed How to create a Maven project & add Java libraries to the Maven project. Now it’s time to create the structure to keep test cases, logic and page objects in different namespaces. So in our #2 part/episode, we talk about the structure of the Framework.

Therefore, we created 3 packages:

  1. pageobject
  2. testcases
  3. utilities

pageobject: The pageobject package contains the source files for the page object parent-child classes and methods that define logic to test the page. Some examples like:

  • BaseTest
  • LoginPage
  • PaymentPage etc.

testcases: This package contains the source files which define test cases logics.

utilities: utilities package contains the backbone classes of the Framework that define the following:

  • Factory methods
  • Framework Configuration Reader
  • Excel Reader
  • Data provider Reader
  • Report Generator etc.

To define the structure of the Framework:

In addition to the packages, we also created some folders to keep resources and output data, such as

  1. TestData
  2. Screenshots
  3. Drivers
  4. Configuration

To create folders in the Maven project:

Watch the Full Video tutorial:

To read about #1 part / Episode — Maven Project:

Selenium Real-time Project Framework — #1 (Maven Project) (

To Watch the whole framework series:



Infotek Solutions

We are one of the premier IT company in USA specialized in Software Testing, BA Training, QA certifications such as ISTQB and QAI, automation testing tools