← Back to list

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…

Ganesh Kafle · 2020-05-26 07:02 · 0 claps · 1.4 min read
#extent #testng #testing #quality-assurance #software-development
Open on Medium ↗

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

  1. Install java on your device

  2. Install eclipse

  3. 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

  1. In the Project Explorer goto pom.xml and add the dependencies

!!Caution: Be careful with version on the dependencies

  1. Install TestNG on eclipse

  2. Create a simple class inside src/test/java(without main)

7.Insert below shown code

  1. Right-click on class and select run>TestNG Test

  2. Goto your Maven project and refresh it

  3. Your report is just below the pom.xml

Output

Fig. Report generated by above code

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