Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber data table not displayed in the Allure report #162

Open
youvegotnigel opened this issue Sep 20, 2022 · 4 comments
Open

Cucumber data table not displayed in the Allure report #162

youvegotnigel opened this issue Sep 20, 2022 · 4 comments
Labels

Comments

@youvegotnigel
Copy link

Describe the bug
Given when I execute a scenario as below:

image

Since I have used a cucumber data table in the step;

    When A user provides incorrect credentials
        | username | password |
        | <un>     | <pw>     |

This should be visible in the allure report as well.

But the cucumber data table is not displayed.

image

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repo https://github.com/youvegotnigel/cypress-cucumber-allure-demo
  2. Execute below commands
npm i
npm run cy:run
npm run allure:report
  1. Open the index.html file in allure-repot folder via Live Sever.

Expected behavior
Cucumber table should be displayed like this
image

Environment (please complete the following information):

  • Node version: 16.15.0
  • Cypress version: 10.7
  • OS: Windows 10
 "devDependencies": {
    "@badeball/cypress-cucumber-preprocessor": "^12.1.0",
    "@bahmutov/cypress-esbuild-preprocessor": "^2.1.3",
    "cypress": "^10.7.0",
    "esbuild": "^0.14.48",
    "multiple-cucumber-html-reporter": "^2.0.0",
    "@shelex/cypress-allure-plugin": "^2.31.0",
    "cypress-xpath": "^2.0.1",
    "moment": "^2.29.4",
    "moment-timezone": "^0.5.37"
  }

Additional context
Add any other context about the problem here.
I have previously used allure reports with cucumber-java, and have observed that data tables can be displayed in allure as below:

Test Scenario:

image

Allure Report:
image

Is it possible to add this functionality to this plugin as well?

@youvegotnigel youvegotnigel added the bug Something isn't working label Sep 20, 2022
@Shelex Shelex added enhancement New feature or request and removed bug Something isn't working labels Sep 21, 2022
@przedab
Copy link

przedab commented Jun 7, 2023

+1

1 similar comment
@ameduza
Copy link

ameduza commented Jun 7, 2023

+1

@casalribeiro
Copy link

+1
currently I see my datatables like this:
image

@thuongdv
Copy link

thuongdv commented Jun 16, 2023

+1 currently I see my datatables like this: image

Hi,

I am running into the same issue.

This is my dependencies:

"devDependencies": {
    "@badeball/cypress-cucumber-preprocessor": "17.2.1",
    "@cypress/browserify-preprocessor": "3.0.2",
    "@cypress/skip-test": "2.6.1",
    "@faker-js/faker": "7.5.0",
    "@shelex/cypress-allure-plugin": "2.40.0",
    "@types/chai-subset": "1.3.3",
    "@types/luxon": "2.3.2",
    "@types/node": "^12.20.37",
    "allure-commandline": "2.17.2",
...

If the table shows correct format, it would be very helpful for us to replicate an issue if the test failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants