Modular Driven Framework in Selenium WebDriver | Real Time Examples |Step by Step Explanation



Modular Driven Framework is the approach where all the test cases are first analyzed to find out the reusable flows. Then while scripting, all these reusable flows are created as functions and stored in external files and called in the test scripts wherever required.

Advantages:
Modular division of scripts leads to easier maintenance and also the scalability of the automated test Scripts are independent to write.

Disadvantages:
Since data is still hard-coded in the script, the same test case cannot be run for multiple data values without changing data after each run.
Additional time is spent in analyzing the test cases to identify with reusable flows.
Good programming knowledge is required to create and maintain function libraries.

Real Time Examples:
Scenario 1 :
Verify the Service Type is available in the HTML table
1. Access the URL and enter Admin/Admin123 as credentials
2. Select the ‘Inpatient Ward’.
3. click on Login.
4. Navigate to Appointment Scheduling->Manage Service Types.
5. verify the Service Type ‘Urology’ available in the html table.
6. Logout

Scenario 2 :
Delete the Service Type from the HTML Table and Verify the Service Type is not available in the HTML Table
1. Access the url and enter Admin/Admin123 as credentials
2. Select the ‘Inpatient Ward’.
3. click on Login.
4. Navigate to Appointment Scheduling->Manage Service Types.
5. Click on Delete icon to perform deletion of Service Type.
6. Verify the Service Type is not available in the HTML Table
7 . Logout

ModularDrivenFramework

ModularDrivenFramework



Conclusion:
Using the Logic mentioned above helps to implement the Modular Driven Framework successfully in your projects.
Let us know if you have any queries in implementing this framework.
Drop an email to totalqa9@gmail.com

Thanks for the @Guest Author :
Nithya Kalyani
Email ID : Nithyakalyanigovindarajan@gmail.com

Leave a Reply

Your email address will not be published. Required fields are marked *