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.

Aperta
#632 2 commenti 1 reazione 0 assegnatari Vedi su GitHub
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**
![image001 (2)](https://user-images.githubusercontent.com/41778132/130007648-473824c0-f89d-458c-8cb4-9daa8704c0f8.png)

**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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.