Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#577 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
java
领域
testing

调研方向

首先使用 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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Allure report should show same test methods as declared in testng xml

Screenshots

image

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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

allure-framework/allure-java 的其他 Issue

查看 allure-framework/allure-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。