In this well ordered guide, I will depict how to build up a modularized Test Automation Framework without any preparation utilizing Java, Selenium, TestNG and Maven.
In the first place, how about we see what a Test Automation Framework is and what are the advantages of making one.
Test Automation Framework
What is the reason for a Test Automation Framework? What challenges does it fathom for the advancement group?
In dexterous improvement, you probably won't have enough time to selenium training in Marathahalli robotize your new highlights in time, so you may make mechanized contents, copying a great deal of code in numerous spots.
Refactoring code is an inborn piece of programming improvement to abstain from working up a gigantic tech obligation. This likewise applies to test mechanization; by refactoring your computerized contents, you will enhance decipherability and upkeep over the long haul.
In this Test Automation Framework instructional exercise, the finished result is an aftereffect of numerous refactorings over the long run. Clearly, nonstop change is basic in the event that we will get a decent quantifiable profit from test computerization.
While making a Test Automation Framework, we ought to think about the accompanying primary focuses:
 To have the capacity to make mechanized tests rapidly by utilizing suitable reflection layers
 The system ought to have significant logging and announcing structure
 Should be effortlessly viable and extendable
 Should be sufficiently straightforward for analyzers to compose robotized tests
 A retry component to rerun fizzled tests – this is particularly helpful for WebDriver UI tests
In this instructional exercise, I will utilize:
 Java as the programming dialect
 TestNG as the statement structure
 Maven as the construct instrument
 WebDriver as the program robotization instrument
 IntelliJ as the IDE
This Test Automation Framework instructional exercise is part into two sections:
Section 1: Creating the base venture and modules and the conditions
Section 2: Adding the code
To some degree 1 of this instructional exercise I expect you as of now have Java and Maven introduced on your machine.
Ventures to Create a Test Automation Framework From Scratch
Step #1 – Create new expert undertaking
Open IntelliJ IDE and select New Project from the menu. You are then given a screen to choose the sort of the undertaking you are keen on.
Step #2 – Give your task a name
Select Maven as the task compose. Give a name to GroupId and ArtifatId – I have chosen to name this Test Automation Framework, Rima.
Step #3 – Choose the area of your venture
Presently, pick a name for your venture and select a catalog for your workspace
Step #4 – Base task is made
You currently have a base venture made. We can begin making expert modules in this task to arrange the structure of our Test Automation Framework.
As this will be our base undertaking with the parent pom.xml, we won't have any code in this venture. Rather, we will make expert modules for various parts of the Test Automation Framework. Simply ahead and erase the src organizer.
Step #5 – Create diverse modules
Presently we are in a situation to make distinctive expert modules for Best training institute in bangalore our system. We will make the accompanying modules:
rima-structure – this module contains all the related classes and strategies to encourage making computerized tests.
rima-space – this module contains the area particular dialect (DSL) classes.
rima-page-objects – as the name recommends, this module contains the page objects.
rima-relapse tests – lastly our robotized relapse tests.
We will begin by making the rima-structure module. To do this, select File > New > Module
Select Maven module and snap Next
In next screen, you can give the artifactId of the module you are making, for this situation, rima-structure
Note the parent module and the groupId as Rima and snap Next where we can give the name of the module and snap Finish.
When rima-system module is made, it should look something like this
We would then be able to keep making whatever remains of the modules in a similar manner. When we have made every one of the modules, our task should look like underneath
Include Dependencies
Next, we have to include the conditions between the modules in the system and in addition including the libraries and other expert tasks that our Test Automation Framework is reliant on.

Author's Bio: 


Join Infocampus. Infocampus is one of the Best training institute in bangalore. Contact 08884166608 to attend free demo classes in that will be provided for 4 days. Visit for complete details on selenium training in Marathahalli