Title: 馃悶: ITestListener of TestNG caused the Allure does not display test's steps at all, but custom ones only. 路 Issue #1150 路 allure-framework/allure-java 路 GitHub
Open Graph Title: 馃悶: ITestListener of TestNG caused the Allure does not display test's steps at all, but custom ones only. 路 Issue #1150 路 allure-framework/allure-java
X Title: 馃悶: ITestListener of TestNG caused the Allure does not display test's steps at all, but custom ones only. 路 Issue #1150 路 allure-framework/allure-java
Description: What happened? Hi Team, 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() && m...
Open Graph Description: What happened? Hi Team, 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 ...
X Description: What happened? Hi Team, 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 ...
Opengraph URL: https://github.com/allure-framework/allure-java/issues/1150
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"馃悶: ITestListener of TestNG caused the Allure does not display test's steps at all, but custom ones only.","articleBody":"### What happened?\n\nHi Team,\n\nI am not 100% sure whether it is a bug, but a behavior is rather weird anyway.\n\n\n```\nClass TestListener implements ITestListener {\n\n @Override\n public void onTestSuccess(ITestResult result) {\n if (method.isTestMethod() \u0026\u0026 method.getTestResult().isSuccess()) {\n throw new AssertionError(\"With ITestListener \");\n }\n }\n \n }\n```\n\nthis test will be working strangely returning almost nothing within it:\n```\n\n @Test\n public void dummyTest() {\n some test steps ();\n some test steps ();\n some test steps ();\n some test steps ();\n }\n```\n\nThis is an example of such the report without body for some reason (except manually created step \"Test...\"):\n\n\n\nBut when I implement the same method, this time using another TestNG listener as TestLifecycleListener, then all works as expected and visible with the body:\n\n```\nClass TestListener implements IInvokedMethodListener {\n\n public void afterInvocation(IInvokedMethod method, ITestResult testResult) {\n if (method.isTestMethod() \u0026\u0026 method.getTestResult().isSuccess()) {\n throw new AssertionError(\"With IInvokedMethodListener \");\n }\n }\n }\n```\n\n\n\nIs it a bug or intended to be like this for some reason?\n\n\nWe do use for whole modules within a project:\nSelenide + Maven + TestNG\n```\n\u003callure.version\u003e2.27.0\u003c/allure.version\u003e\n\u003callure-maven.version\u003e2.12.0\u003c/allure-maven.version\u003e\n```\n \n```\n\u003cplugin\u003e\n \u003cgroupId\u003eio.qameta.allure\u003c/groupId\u003e\n \u003cartifactId\u003eallure-maven\u003c/artifactId\u003e\n \u003cversion\u003e${allure-maven.version}\u003c/version\u003e\n \u003cconfiguration\u003e\n \u003creportVersion\u003e${allure.version}\u003c/reportVersion\u003e\n \u003c/configuration\u003e\n \u003c/plugin\u003e\n```\n```\n\n```\n \u003cdependency\u003e\n \u003cgroupId\u003eio.qameta.allure\u003c/groupId\u003e\n \u003cartifactId\u003eallure-selenide\u003c/artifactId\u003e\n \u003cversion\u003e${allure.version}\u003c/version\u003e\n \u003c/dependency\u003e\n```\n\n```\n \u003cdependency\u003e\n \u003cgroupId\u003eio.qameta.allure\u003c/groupId\u003e\n \u003cartifactId\u003eallure-testng\u003c/artifactId\u003e\n \u003cversion\u003e${allure.version}\u003c/version\u003e\n \u003c/dependency\u003e\n```\n\n```\n \u003cdependency\u003e\n \u003cgroupId\u003eio.qameta.allure\u003c/groupId\u003e\n \u003cartifactId\u003eallure-plugin-api\u003c/artifactId\u003e\n \u003cversion\u003e${allure.version}\u003c/version\u003e\n \u003c/dependency\u003e\n```\n\n### What Allure Integration are you using?\n\nallure-testng\n\n### What version of Allure Integration you are using?\n\n2.27\n\n### What version of Allure Report you are using?\n\n2.27\n\n### Code of Conduct\n\n- [x] I agree to follow this project's Code of Conduct","author":{"url":"https://github.com/farious2009","@type":"Person","name":"farious2009"},"datePublished":"2025-02-13T14:25:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1150/allure-java/issues/1150"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3c511133-db88-fac7-4b9d-656d41b608c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D566:1F5F5F:310A85:4577F9:696E51EB |
| html-safe-nonce | 9d1f82421575943ca87cc962ddb973466919984759af66cedd36fbfde76ceef4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTY2OjFGNUY1RjozMTBBODU6NDU3N0Y5OjY5NkU1MUVCIiwidmlzaXRvcl9pZCI6IjM3MzY2NzM0ODgzMjgzNDgxMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0c311833221c166d2fb25f658920cf90557831a552f70d8d0c356505b69dad1a |
| hovercard-subject-tag | issue:2851196433 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/allure-framework/allure-java/1150/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8aeb6a6f996269c31343cdde561ecab1649171d20a5cde515b21db2f70c8bf98/allure-framework/allure-java/issues/1150 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8aeb6a6f996269c31343cdde561ecab1649171d20a5cde515b21db2f70c8bf98/allure-framework/allure-java/issues/1150 |
| og:image:alt | What happened? Hi Team, 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | farious2009 |
| hostname | github.com |
| expected-hostname | github.com |
| None | fd6f183b765d548d18ed5f3a1ce2c0e2a4ddbde2c74596c9d55c1a08b3e5572a |
| turbo-cache-control | no-preview |
| go-import | github.com/allure-framework/allure-java git https://github.com/allure-framework/allure-java.git |
| octolytics-dimension-user_id | 5879127 |
| octolytics-dimension-user_login | allure-framework |
| octolytics-dimension-repository_id | 80822758 |
| octolytics-dimension-repository_nwo | allure-framework/allure-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80822758 |
| octolytics-dimension-repository_network_root_nwo | allure-framework/allure-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a52ed9988fadfee5477eba0f6835cc823d7d8b33 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width