Comments (2)
Lets Consider this ismy test file so how to implement logs in it.
import org.testng.Assert;
import org.testng.annotations.Test;
public class SampleTest {
@test
public void testMethodOne() {
Assert.assertTrue(true);
}
@test
public void testMethodTwo() {
Assert.assertTrue(false);
}
@test(dependsOnMethods = {"testMethodTwo"})
public void testMethodThree() {
Assert.assertTrue(true);
}
}
from extentreports-java.
I would suggest upgrading to version 4 and using the testng-adapter which allows retrieving the current instance (in a thread-safe manner) to which you can add additional logs. The other way is to see the current implementation in the adapter and customize it for use with version 3.
from extentreports-java.
Related Issues (20)
- HTML Report showing some french characters as question mark (?) HOT 1
- Unable to generate report using version 3.1.5 HOT 1
- removeTest(extentTest) doesn't remove the test from the extent report HOT 2
- why extentTest.log(LogStatus ls, String testStep, String testDescription) method removed in version 3.1.5?? HOT 4
- Trying to generate extent report by putting the listener at suite level but the report only displays the last test case ran in the report HOT 3
- Issue in extent.flush()
- Extent Report shows me all the TestStep Info of Second Test Case in the First Test Case HOT 3
- How to Customize image size in extentreport HOT 1
- Need the Extent Report 4.0 Jar HOT 1
- hi anshoo, kindly help me, c# latest extentreports dll doesnt have loadconfig and display order constructor pls help me what are the latest replacements for these
- Not able to change date/time format by customizing config file HOT 3
- How to display time between each step in extent report.
- Extent Report does not show test as fail if it fails before logging pass status of test to extent report OR if extent end test is not executed in Selenium C#
- How to add custom react js component
- Executing Cusom javascript/ adding html file
- Extent Report 3.1.5 - Null Pointer Exception with ITestListener HOT 1
- My screenshot is not adding to the extent report. HOT 1
- Can we overwrite any test result in an existing extent report xml after rerun of the failures
- Incorrect Total Time Taken (Sum of Time of All Test Scripts Executed) in Dashboard HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from extentreports-java.