Using steps in testNG @Factory throw error
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先,使用列出的 Allure 和 TestNG 版本以及 @Steps 调用,复现所示 TestNG @Factory 方法中的失败。跟踪 factoryMethod 周围的生命周期,并验证预期的步骤文本能够显示,且不会出现报告中的 no-test 或 no-step 错误。
由索引模型根据 Issue 内容生成。
描述
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 ERROR io.qameta.allure.AllureLifecycle Could not start step: no test case running
18:34:28.702 ERROR io.qameta.allure.AllureLifecycle Could not add attachment: no test is running
18:34:30.011 ERROR io.qameta.allure.AllureLifecycle Could not add attachment: no test is running
18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not update step: no step running
18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not stop step: no step running
18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not update step: no step running
18:34:30.022 ERROR io.qameta.allure.AllureLifecycle Could not stop step: no step running
Example:
public class CountersTestFactory {
@Factory
public synchronized Object[] factoryMethod() throws Exception {
// next two lines it @Steps
Campaign campaign = CampaignSteps.createDefault(user.get().getApiKey());
SocketIOSteps.waitForcampaignCollected(campaignId);
assertThat(
"campaign",
CampaignDataSteps.getList(user.get().getApiKey(), campaign.id).result.size(),
greaterThan(0));
return new Object[] {
new CountersCurrentTest(
user.get().getApiKey(),
campaign.id,
DateUtils.getTimestampMinusDays(90),
DateUtils.getTimestamp()),
}
What is the expected behavior?
@ Step displayed annotation text
Please tell us about your environment:
| Allure version | 2.12.1 |
|---|---|
| Test framework | [email protected] |
| Allure integration | [email protected] |
| Generate report using | [email protected] |
Other information
- 主要语言
- Java
- 星标
- 390
- 派生
- 242
- 平均合并
- 2 天 14 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
allure-framework/allure-java 的其他 Issue
-
AllureSelenide should use Selenide's screenshot implementation instead of Selenium WebDriver's implementation可能已有人在做 @USSQA 于 24 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
allure-framework/allure-java#1439 ·
维护者通常 2 天内回复
-
AllureSelenide attaches Screenshot and Page source once per nesting level of SelenideLogger.step未关闭
难度 4/5 3-5 天 新手友好度 25/100
allure-framework/allure-java#1453 · 1 个 reaction ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
allure-framework/allure-java#1452 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
allure-framework/allure-java#1451 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 45/100
allure-framework/allure-java#1446 ·
维护者通常 2 天内回复
查看 allure-framework/allure-java 的全部 Issue
相似的 Issue
-
Clock.MakeDate continues execution and returns a rolled-over instant after dispatching error on invalid date可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
mit-cml/appinventor-sources#4155 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 62/100
Hira-shi/PW1-DAI-Carrel-Egal-Eyer#28 ·
维护者通常 1 天内回复
-
`GET /v1/event/token/{uuid}` can report a BOM upload as done before policy evaluation and metrics have finished可能已有人在做 @Zargath 今天认领。 未关闭defect in triage
难度 2/5 1-3 小时 新手友好度 72/100
DependencyTrack/dependency-track#7646 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
objectionary/eo-graphs#80 ·