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:
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:
- 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
To create folders in the Maven project:
Watch the Full Video tutorial:
To read about #1 part / Episode — Maven Project:
To Watch the whole framework series: