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

[BUG] Scenario Documentation with <placeholder> not replaced by examples #7

Open
psa-jbeaumont opened this issue Sep 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@psa-jbeaumont
Copy link

psa-jbeaumont commented Sep 24, 2024

Describe the bug
Scenario Documentation with not replaced by examples.

To Reproduce
Steps to reproduce the behavior:

  1. Edit documentation.feature line 11 and replace with with
  2. launch the test
  3. Documentation in test details from robot framework test report contains whereas hello or Bonjour is expected

If possible add some example source code like:

Feature: Scenario Outline with a docstring
This is a documentation for the feature file.

it can be more than one line long.

  Scenario Outline: Greetings come in many forms
    this is the documentation for the scenario

    it can be more than one line long.

    and it can contain *<content>* that will be replaced by the examples.

    Given this file:
      """<type>
      Greeting:<content>
      """

    Examples:
      | type | content |
      | en   | Hello   |
      | fr   | Bonjour |

Expected behavior
this is the documentation for the scenario

it can be more than one line long.

and it can contain Hello that will be replaced by the examples.

Desktop (please complete the following information):

  • VS Code Version 1.92.2
  • RobotCode Version 0.90.0
  • OS: Windows
  • Python Version 3.11.8
  • RobotFramework Version 7.0
  • Additional tools like gherkin-parser 0.3.2

Additional context
I successfully tried this patch for scenario outline use case

  • on gurke/pickles/compiler.py _compile_scenario_outline function , add 'description' key to pickle on line 121 : "description": self._interpolate(scenario["description"], variable_cells, value_cells),
  • on GherkinParser/gherkin_builder.py build_gherkin_model function, change line 102 with testcase_body.append(Documentation.from_params(pickle["description"].strip()))
@psa-jbeaumont psa-jbeaumont added the bug Something isn't working label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant