You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not 100% sure whether it is a bug, but a behavior is rather weird anyway.
Class TestListener implements ITestListener {
@Override
public void onTestSuccess(ITestResult result) {
if (method.isTestMethod() && method.getTestResult().isSuccess()) {
throw new AssertionError("With ITestListener ");
}
}
}
this test will be working strangely returning almost nothing within it:
@Test
public void dummyTest() {
some test steps ();
some test steps ();
some test steps ();
some test steps ();
}
This is an example of such the report without body for some reason (except manually created step "Test..."):
But when I implement the same method, this time using another TestNG listener as TestLifecycleListener, then all works as expected and visible with the body:
Class TestListener implements IInvokedMethodListener {
public void afterInvocation(IInvokedMethod method, ITestResult testResult) {
if (method.isTestMethod() && method.getTestResult().isSuccess()) {
throw new AssertionError("With IInvokedMethodListener ");
}
}
}
Is it a bug or intended to be like this for some reason?
We do use for whole modules within a project:
Selenide + Maven + TestNG
### What Allure Integration are you using?
allure-testng
### What version of Allure Integration you are using?
2.27
### What version of Allure Report you are using?
2.27
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
farious2009
changed the title
🐞: ITestListener of TestNG caused the Allure does not display test's steps at all.
🐞: ITestListener of TestNG caused the Allure does not display test's steps at all, but custom ones only.
Feb 13, 2025
What happened?
Hi Team,
I am not 100% sure whether it is a bug, but a behavior is rather weird anyway.
this test will be working strangely returning almost nothing within it:
This is an example of such the report without body for some reason (except manually created step "Test..."):
But when I implement the same method, this time using another TestNG listener as TestLifecycleListener, then all works as expected and visible with the body:
Is it a bug or intended to be like this for some reason?
We do use for whole modules within a project:
Selenide + Maven + TestNG
The text was updated successfully, but these errors were encountered: