Extent and TestNG Framework, Setup and Implementation
Hy Everyone, Today I am going to share my knowledge on two awesome frameworks(Extent and TestNG) that I have implemented on my recent…
Extent and TestNG Framework, Setup and Implementation
Hy Everyone, Today I am going to share my knowledge on two awesome frameworks(Extent and TestNG) that I have implemented on my recent project.
Extent Framework: Its just the customizable HTML report that can integrated with Selenium WebDriver using JUnit and TestNG frameworks.
TestNG Framework: For the coverage of unit, functional,integration etc TestNG is used. If you have used JUnit it will be easy to understand .TestNG uses the annotations (@) @Test @BeforeTest @AfterTest @BeforeSuite @AfterSuite @BeforeMethod @AfterMethod etc.
I will recommend you to use @BeforeSuite, @AfterSuite in place of @BeforeTest , @AfterTest because if we use @BeforeTest and @AfterTest, functions inside these annotation will run every time when it starts test annotation.
Setup to implementation
-
Create maven project in eclipse
Goto file>new>other>
Select Maven>maven project
Don’t forget to check(Create simple project)>next
Give Group Id and Artifact Id>Finish
Give Group Id and Artifact Id>Finish
- In the Project Explorer goto pom.xml and add the dependencies

!!Caution: Be careful with version on the dependencies
-
Install TestNG on eclipse
-
Create a simple class inside src/test/java(without main)
7.Insert below shown code

-
Right-click on class and select run>TestNG Test
-
Goto your Maven project and refresh it
-
Your report is just below the pom.xml
Output

Fig. Report generated by above code
All the suggestion and errors are appreciated.
Thank you
메타데이터
- post_id
- 277bed76a859
- slug
- extent-and-testng-framework-setup-and-implementation-277bed76a859
- url
- https://medium.com/@kafleganesh1235/extent-and-testng-framework-setup-and-implementation-277bed76a859
- canonical_url
- https://medium.com/@kafleganesh1235/extent-and-testng-framework-setup-and-implementation-277bed76a859
- author_url
- https://medium.com/@kafleganesh1235
- status
- ok
- fetched_at
- 2026-07-29 01:43:05