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.

Offen
#632 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
376
Forks
240
Ø Merge
1 T. 7 Std.
Gemergte PRs (30 T.)
45

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, das Problem mit den beiden im Bericht beschriebenen TestNG-Suite-XML-Dateien zu reproduzieren, und führe `mvn clean test` aus. Untersuche die TestNG-Integration und die Handhabung der Identität von Allure-Ergebnissen; abgeschlossen ist die Aufgabe, wenn alle 16 ausgeführten Tests im Allure-Bericht weiterhin separat dargestellt werden, anstatt dass Ergebnisse von Klassen mit doppelten Namen einander überschreiben.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
testing
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.