allure-java icon indicating copy to clipboard operation
allure-java copied to clipboard

Test body is missing in (cucumber) testNG report

Open pokeahontas opened this issue 6 years ago • 4 comments

Hi, I'm submitting a bug report: I use TestNGCucumberRunner to run cucumber test cases via TestNG and the report is successfully built but I do not see the test steps in the report, I only see setup and tear down.

Bildschirmfoto 2019-10-28 um 13 22 37

Anyone know how to fix this or this a bug?

| Allure version | 2.9.0 | | Test framework | [email protected] | | Allure integration | [email protected] | | Generate report using gradle |

pokeahontas avatar Oct 28 '19 12:10 pokeahontas

Hello, @pokeahontas I have cucumber+testng environment and I had the same problem. I decide to use Allure plugin for cucumber io.qameta.allure.cucumber5jvm.AllureCucumber5Jvm (Cucumber 5.6.0) and I added to CucumberOptions this: plugin = {"io.qameta.allure.cucumber5jvm.AllureCucumber5Jvm"}

and dependency to build.gradle: // https://mvnrepository.com/artifact/io.qameta.allure/allure-cucumber5-jvm implementation group: 'io.qameta.allure', name: 'allure-cucumber5-jvm', version: '2.13.2'

I think you can implement it in your way. Maybe it will help.

mrbaco avatar Apr 20 '20 09:04 mrbaco

io.qameta.allure.cucumber5jvm.AllureCucumber5Jvm

the same issue but with this stack - gradle-testng-cucumber-allure....

livastar avatar Jul 02 '20 06:07 livastar

Are there any solutions for this?

Additional code to build.gradle:

allure {
    version = '2.8.1'

    autoconfigure = false
    aspectjweaver = true

    useCucumberJVM() {
        version = '2.13.2'
    }
}

mrbaco avatar Aug 04 '20 13:08 mrbaco

https://github.com/allure-framework/allure-java/issues/398#issuecomment-616418639

baev avatar Aug 17 '23 14:08 baev