Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#577 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
java
Ambito
testing

Direzione di ricerca

Inizia riproducendo l'XML TestNG fornito tramite l'esecuzione di Maven Failsafe, usando i metodi e i relativi parametri di CalculatorSoapApiTest. Confronta il report Allure generato con entrambe le sezioni ; il lavoro è completato quando ogni metodo dichiarato, incluso performCalculationsSoap in entrambi i test, compare con le voci previste.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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>
Lingua principale
Java
Stelle
376
Fork
241
Merge medio
20h 3m
PR unite (30g)
45

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di allure-framework/allure-java

Tutte le issue di allure-framework/allure-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.