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 a 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 & and 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.
So 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 Framework:
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 Maven project:
Watch Full Video tutorial:
To read about #1 part / Episode – Maven Project:
Selenium Real-time Project Framework – #1 (Maven Project) (qaonlinetraining.com)
To Watch whole framework series:
To get instructor-led training: