allure-framework / allure-framework/allure-java
If classes with the same names are used in the tests run by TestNG, then only the last result will be recorded.
- Lingua principale
- Java
- Stelle
- 376
- Fork
- 240
- Merge medio
- 1g 7h
- PR unite (30g)
- 45
Descrizione
**Describe the bug**
My project Selenide+TestNG+Allure+Maven
I use TуstNG suites, which have test classes with the same names.
The tests pass successfully, but the Allure report contains only a report on tests from the last TestSuite, for tests with the same class names.
**To Reproduce**
There are two test suite
In maven pom.xml
src/test/java/ru/ga/TestsSuite1.xml
src/test/java/ru/ga/TestsSuite2.xml
start test maven command
mvn clean test
result in maven
[INFO] Results:
[INFO]
**[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0**
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:22 min
[INFO] Finished at: 2021-08-19T06:47:46+03:00
[INFO] -------
**Tests run: 16 that**
- parametrized for 2 runs
- parametrized for 2 runs
- parametrized for 2 runs
In Allure report
see Screenshots
**Expected behavior**
test results with the same class names should not overwrite results
**Screenshots**

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**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**
Add any other context about the problem here.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il problema con i due file XML delle suite TestNG descritti nel report ed esegui `mvn clean test`. Esamina l’integrazione di TestNG e la gestione dell’identità dei risultati Allure; il lavoro è completato quando tutti i 16 test eseguiti rimangono rappresentati separatamente nel report Allure, invece di fare sì che i risultati di classi con nomi duplicati si sovrascrivano a vicenda.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- testing
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100