allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

annotation @Severity doesnt work in Junit-allure

Open ytuzlukov opened this issue 5 years ago • 10 comments

Annotation @Severity doesnt work in Junit-allure, from version allure-junit4 "2.10.0" to current.

In test like this,

    @Epic( "1")
    @Feature("2")
    @Story("3")
    @Owner("4")
    @Test
    @Severity(SeverityLevel.CRITICAL)
    public void testseverity() {
        registrationPage.emailNotUniqueReg();

    }
}

after execution mvn clean test и mvn allure:serve

severity annotations doesnt work (on reporting page it shows like "Normal"). The json autogenerated results file also doesnt have this annotation. The rest annotations work.

In version allure-junit4 "2.9.0" and below there is no such problem

ytuzlukov avatar Jul 19 '19 11:07 ytuzlukov

have the same problem

AndrewElfimov avatar Aug 05 '19 08:08 AndrewElfimov

Same problem for me with allure-junit4 "2.12.1"

vduhautois avatar Sep 05 '19 14:09 vduhautois

platform linux -- Python 3.6.9, pytest-5.3.1, py-1.8.0, pluggy-0.13.1 plugins: allure-pytest-2.8.6, rerunfailures-8.0 I have this problem too

VermOwl avatar Dec 13 '19 10:12 VermOwl

Did you try with 2.13.0? https://mvnrepository.com/artifact/io.qameta.allure/allure-junit4/2.13.0

fescobar avatar Dec 13 '19 12:12 fescobar

Same problem for me: Java 11 allure-junit 4.12 allure 2.13.0

tibormesty avatar Feb 20 '20 10:02 tibormesty

Same problem for me: Java 11 allure-junit 4.12 allure 2.13.0

I solved this problem changing the alure-junit version to 2.8.1.

AndersonLeonyDeveloper avatar Jul 29 '20 02:07 AndersonLeonyDeveloper

I have the same issue When will this bug be fixed

RamiaSaidawi avatar Oct 22 '21 03:10 RamiaSaidawi

Is there any update for this issue ?

RamiaSaidawi avatar Jun 03 '22 12:06 RamiaSaidawi

Looks like class of @Severity is NOT annotated with @LabelAnnotation(name = SEVERITY_LABEL_NAME)

yanasazanavets avatar Oct 31 '22 12:10 yanasazanavets

As a workaround, you can annotate tests with

@LabelAnnotation(name = "severity", value = "critical")

Make sure to use lowercase values, otherwise report will show 'normal'. It's not very convenient, but at least working.

4ekki avatar Dec 05 '22 14:12 4ekki