Skip to content

[🐛 Bug]: <title> Cucumber report doesn't attach data table to step, it attaches all tables from steps to entire test/scenario #15039

@anantipov-fadv

Description

@anantipov-fadv

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

v24.5.0

Mode

Standalone Mode

Which capabilities are you using?

What happened?

Data Table from step attached to the test/scenario, steps example:
When open portal
And login to portal
| username | password |
Then Users home page displays

Image

and in json file, as you can see data table attached to test:
Image

What is your expected behavior?

Data table from step should be attached to step, worked as expected with "@wdio/cucumber-framework": "9.18.0"
example:
When open portal
And login to portal
| username | password |
Then Users home page displays

Image

cucumber json file examle:
Image

How to reproduce the bug.

Create feature file with cucumber scenario with dataTable in step:
Scenario 1. Login
When open portal
And login to portal
| username | password |
Then Users home page displays
create step file with step like:
When('login to portal', async (dataTable) => {
const username = dataTable.raw()[0][0];
const password = dataTable.raw()[0][1];
await eaLoginPage.loginToEA(username , password );
});
create page object file if need it.
run

Relevant log output

Log has only message that report generated:
📊 Generating main Allure report with AllureHelpers...
[AllureHelpers][local] Generating Allure report to: C:\....\aReport\allure-report
Report successfully generated to C:\....\aReport\allure-report
[AllureHelpers][local] Allure report successfully generated: C:\....\aReport\allure-report
 Main Allure report successfully generated

📂 Checking temp directory: C:\....\aReport\temp-scenarios
📁 Found 1 scenario data files
    Loaded: scenario-1769122502704-wcnt44hzo.json (Login to EA)

📂 Per-scenario report paths:
   allure-results: C:\...\aReport\allure-results (exists: true)
   scenarios: C:\....\aReport\scenarios

📊 Generating 1 individual scenario reports...

🔍 Processing: "Login to EA"
   Found 1 result files
    Matched: 3fc92070-6a6a-48e1-a480-6357a0e90cb3-result.json
   📁 Created: C:\.....\aReport\scenarios\Login_to_EA
   📄 Copied result file
   📎 Copied 5 attachments
   🔄 Generating HTML report...
Report successfully generated to C:\...\aReport\allure-report\
    Report created: C:\....\aReport\allure-report\index.html

🗑️  Cleaned up temporary scenario files

 Per-scenario report generation complete

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions