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:
- pageobject
- testcases
- 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:
https://youtu.be/tuwaNSfodRs?t=47
In addition to the packages, we also created some folders to keep resources and output data, such as
- TestData
- Screenshots
- Drivers
- Configuration
To create folders in the Maven project:
https://youtu.be/tuwaNSfodRs?t=116
Watch the Full Video tutorial:
To read about #1 part / Episode — Maven Project:
Selenium Real-time Project Framework — #1 (Maven Project) (qaonlinetraining.com)
To Watch the whole framework series:
https://youtu.be/iieAv7kJkkY?list=PLZWJthbCqZCdBACx_diUIXhi1NhUKOv6f