Allure report doesn't show all the test methods if I have combination of test methods from the same test class but clubbed under multiple tesNG test
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先使用 CalculatorSoapApiTest 的方法及其参数,通过 Maven Failsafe 执行来复现所提供的 TestNG XML。将生成的 Allure 报告与两个 部分进行比较;当每个已声明的方法(包括两个测试中的 performCalculationsSoap)都以预期条目出现时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
Allure report doesn't show all the test methods if I have combination of test methods from the same test class but clubbed under multiple tesNG test ==>
You can see in the screenshot that method <include name="performCalculationsSoap" description="Perform calculations - 1"> is not displayed
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Allure report should show same test methods as declared in testng xml
Screenshots

Desktop (please complete the following information):
- OS: [e.g. iOS] Win 10
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22] 90.x
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
I am generating testNG.xml programmatically from xml sheet and executing via maven failsafe plugin
TestNG xml ==>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite thread-count="1" verbose="0" name="My Test Suite">
<test name="My Test - 1">
<parameter name="browser" value="CHROME"/>
<classes>
<class name="com.example.tests.CalculatorSoapApiTest">
<methods>
<include name="performCalculationsSoap" description="Perform calculations - 1">
<parameter name="tcId" value="TC5"/>
</include>
<include name="retrieveByIdRest" description="Retrieve - 1">
<parameter name="tcId" value="TC5"/>
</include>
</methods>
</class>
</classes>
</test>
<test name="My test -2" >
<parameter name="browser" value="CHROME"/>
<classes>
<class name="com.example.tests.CalculatorSoapApiTest">
<methods>
<include name="performCalculationsSoap" description="Retrieve - 2">
<parameter name="tcId" value="TC7"/>
</include>
</methods>
</class>
</classes>
</test>
</suite>
- 主要语言
- Java
- 星标
- 376
- 派生
- 241
- 平均合并
- 20 小时 3 分钟
- 30 天内合并 PR
- 45
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
allure-framework/allure-java 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
allure-framework/allure-java#1439 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 45/100
allure-framework/allure-java#1446 ·
维护者通常 1 天内回复
-
Add precondition method and annotation for update precondition field in test case from test result未关闭
难度 5/5 一周以上 新手友好度 45/100
allure-framework/allure-java#1355 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 52/100
allure-framework/allure-java#1322 · 2 条评论 ·
维护者通常 1 天内回复
-
triage
难度 3/5 1-2 天 新手友好度 42/100
allure-framework/allure-java#987 · 2 条评论 ·
维护者通常 1 天内回复
查看 allure-framework/allure-java 的全部 Issue
相似的 Issue
-
and-bugs and-ui gpx-track
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
termux/termux-app#5340 ·
维护者通常 1 天内回复
-
OpenAICompatibleToolDescriptorSchemaGenerator drops requiredProperties of nested object parameters未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 7 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
apache/rocketmq-dashboard#5110 ·
维护者通常 1 天内回复
-
frontend
难度 2/5 1-3 小时 新手友好度 88/100
No-Country-simulation/S08-26-equipo04#210 ·
维护者通常 1 天内回复