id | title | hide_title | sidebar_label | description | keywords | url | site_name | slug | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
native-extent-report |
Native Extent Report |
false |
Extent Native |
Learn how to generate Native Extent Report on lambdatest and download the reports from the dashboard |
|
LambdaTest |
native-extent-report/ |
The Extent Native Reports offer a standardized and easily accessible summary of information extracted from raw Extent reports per Virtual Machine (VM) at the end of a HyperExecute job.
Before implementing Extent Native Reports, ensure the following prerequisites are met:
- Upgrade to extent reporting version 5 in the
pom.xml
file. - Update import statements in the codebase from
com.relevantcodes
(version 2) tocom.aventstack
(version 5).
Follow these steps to enable Extent Native Reports for your HyperExecute job:
Update the pom.xml
file to include the latest version of the Extent Reporting library (version 5). Ensure that the necessary dependencies are correctly configured.
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>5.0.0</version>
</dependency>
Update import statements in your codebase to reflect the new package structure in Extent Reporting version 5. Replace com.relevantcodes
with com.aventstack
.
// Before
import com.relevantcodes.extentreports.ExtentReports;
import com.relevantcodes.extentreports.ExtentTest;
// After
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
Make changes in your codebase to generate individual JSON reports. These reports will serve as the source for the Extent Native Reports.
In the HyperExecute YAML configuration, add the following section to instruct the HyperExecute systems to generate Extent Native Reports:
report: true
partialReports:
type: json
location: reports/json
frameworkName: extent-native
- Set
report: true
to enable report generation. - Specify the
type
asjson
in thepartialReports
section. - Define the
location
where the JSON reports will be stored. - Provide a meaningful
frameworkName
for the Extent Native Reports.
<img loading="lazy" src={require('../assets/images/hyperexecute/knowledge-base/reports/extent-native.png').default} alt="Image" className="doc_img"/>
By following these steps, your HyperExecute job will generate Extent Native Reports, providing a consolidated HTML report derived from individual JSON reports. This enhancement allows customers to access comprehensive and standardized reports conveniently at the conclusion of their HyperExecute jobs.