Title: Using steps in testNG @Factory throw error · Issue #367 · allure-framework/allure-java · GitHub
Open Graph Title: Using steps in testNG @Factory throw error · Issue #367 · allure-framework/allure-java
X Title: Using steps in testNG @Factory throw error · Issue #367 · allure-framework/allure-java
Description: I'm submitting a ... bug report What is the current behavior? If you use the steps in the factory, the allures writes an error 18:34:28.258 ERROR io.qameta.allure.AllureLifecycle Could not start step: no test case running 18:34:28.259 ER...
Open Graph Description: I'm submitting a ... bug report What is the current behavior? If you use the steps in the factory, the allures writes an error 18:34:28.258 ERROR io.qameta.allure.AllureLifecycle Could not start st...
X Description: I'm submitting a ... bug report What is the current behavior? If you use the steps in the factory, the allures writes an error 18:34:28.258 ERROR io.qameta.allure.AllureLifecycle Could not star...
Opengraph URL: https://github.com/allure-framework/allure-java/issues/367
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using steps in testNG @Factory throw error","articleBody":"#### I'm submitting a ... \r\n - [x] bug report\r\n#### What is the current behavior?\r\n\r\n\r\n#### If you use the steps in the factory, the allures writes an error\r\n```\r\n18:34:28.258 ERROR io.qameta.allure.AllureLifecycle Could not start step: no test case running\r\n18:34:28.259 ERROR io.qameta.allure.AllureLifecycle Could not start step: no test case running\r\n18:34:28.702 ERROR io.qameta.allure.AllureLifecycle Could not add attachment: no test is running\r\n18:34:30.011 ERROR io.qameta.allure.AllureLifecycle Could not add attachment: no test is running\r\n18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not update step: no step running\r\n18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not stop step: no step running\r\n18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not update step: no step running\r\n18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not stop step: no step running\r\n```\r\n\r\n#### Example:\r\n\r\n```\r\npublic class CountersTestFactory {\r\n\r\n @Factory\r\n public synchronized Object[] factoryMethod() throws Exception {\r\n // next two lines it @Steps\r\n Campaign campaign = CampaignSteps.createDefault(user.get().getApiKey());\r\n SocketIOSteps.waitForcampaignCollected(campaignId);\r\n\r\n assertThat(\r\n \"campaign\",\r\n CampaignDataSteps.getList(user.get().getApiKey(), campaign.id).result.size(),\r\n greaterThan(0));\r\n\r\n return new Object[] {\r\n new CountersCurrentTest(\r\n user.get().getApiKey(),\r\n campaign.id,\r\n DateUtils.getTimestampMinusDays(90),\r\n DateUtils.getTimestamp()),\r\n}\r\n\r\n```\r\n\r\n#### What is the expected behavior?\r\n@ Step displayed annotation text\r\n\r\n#### Please tell us about your environment:\r\n\r\n\r\n| Allure version | 2.12.1 |\r\n| --- | --- |\r\n| Test framework | testng@6.9.10 |\r\n| Allure integration | allure-testng@2.12.1 |\r\n| Generate report using | allure-maven@2.8 |\r\n\r\n#### Other information \r\n\r\n[//]: # (\r\n. e.g. detailed explanation, stacktraces, related issues, suggestions \r\n. how to fix, links for us to have more context, eg. Stackoverflow, Gitter etc\r\n)\r\n","author":{"url":"https://github.com/kurilov","@type":"Person","name":"kurilov"},"datePublished":"2019-06-05T15:48:45Z","url":"https://github.com/allure-framework/allure-java/issues/367"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:4fedec53-5336-621b-7e46-e3f05429a78f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8E8:3756EB:271577C:3669E5A:6AFD4734 |
| html-safe-nonce | 892badc8aeb098e29d26344ce34cf935c3583fd55d8a30eee01f6fb710cc8f5b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEU4OjM3NTZFQjoyNzE1NzdDOjM2NjlFNUE6NkFGRDQ3MzQiLCJ2aXNpdG9yX2lkIjoiODI0NTc3OTQ3MTU2NjYyMjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a46b4498a290434032932f01a0e344244d3bfc14dec69aff4245962858b62559 |
| hovercard-subject-tag | issue:452578889 |
| 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/367/issue_layout |
| twitter:image | https://opengraph.githubassets.com/39282cf2d2290a9b85f027d5a61e258131c8f2a73b898882d6dede5fea82e1eb/allure-framework/allure-java/issues/367 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/39282cf2d2290a9b85f027d5a61e258131c8f2a73b898882d6dede5fea82e1eb/allure-framework/allure-java/issues/367 |
| og:image:alt | I'm submitting a ... bug report What is the current behavior? If you use the steps in the factory, the allures writes an error 18:34:28.258 ERROR io.qameta.allure.AllureLifecycle Could not start st... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kurilov |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width