Skip to content

Re-opening #3526: Scenario titles containing data from an Examples table are logged incorrectly. #4027

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

Closed
snehabhandge opened this issue Nov 24, 2023 · 2 comments · Fixed by #4030

Comments

@snehabhandge
Copy link
Contributor

What are you trying to achieve?

This is an improvement.

If scenario title contains data from Examples like below it is not getting reported as expected.

Scenario Outline: Below are the users - <user>
Examples:
    | user   |
    | Sneha  | 
    | Ram    |

The expected logged Scenario name

Below are the users - Sneha
Below are the users - Ram

If scenario title contains data from Examples like below it is not getting reported as expected.

Scenario Outline: Below are the users - <user>
Examples:
    | user   |
    | Sneha  | 
    | Ram    |

The expected logged Scenario name

Below are the users - Sneha
Below are the users - Ram

What do you get instead?

The actual logged Scenario name

Below are the users - <user> {\"user\":\"Sneha\"}"
Below are the users - <user> {\"user\":\"Ram\"}"

Provide console output if related. Use --verbose mode for more details.

# paste output here

Provide test source code if related

// paste test

Details

  • CodeceptJS version: 3.5.8
  • NodeJS Version: 18.18.0
  • Operating System: windows
  • puppeteer || webdriverio || testcafe version (if related)
  • Configuration file:
# paste config here
@snehabhandge
Copy link
Contributor Author

Previously opened issue: #3526

@snehabhandge
Copy link
Contributor Author

The latest version of codecept is used still getting same behavior. In which version it has been fixed?

Sample code to reproduce is the same as above, i.e.:
Scenario Outline: Below are the users -
Examples:
| user |
| Sneha |
| Ram |

@kobenguyent kobenguyent linked a pull request Nov 25, 2023 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant