Skip to content

[BUG] Teardown methods call setup functions #5

Open
@appaji2020

Description

@appaji2020

Describe the bug
I am trying to use gherkin parser. I observed that when i define Suite Teardown/Test Teardown, it calls setup method instead.

To Reproduce
Steps to reproduce the behavior:

  1. Define hooks.resource as and https://github.com/robotcodedev/robotframework-gherkin-parser/blob/main/examples/simple/features/steps/hooks.resource and refer in https://github.com/robotcodedev/robotframework-gherkin-parser/blob/main/examples/simple/features/__init__.robot
  2. run a demo test
  3. In results I see SuiteTeardown called immediately after setup.
  4. Test Teardown calls the test setup method

gherkin parser error

If possible add some example source code like:

***Settings***
Library  Collections

***Test Cases***
a simple test
    do something    # this should shown something

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots/ Videos
If applicable, add screenshots or videos to help explain your problem.

Logs
Copy the messages from VSCode "Output" view for RobotCode and RobotCode Language Server for the specific folder/workspace.

Desktop (please complete the following information):

  • VS Code Version :1.88
  • RobotCode Version: 0.83
  • OS: Windows
  • Python Version: 3.11.7
  • RobotFramework Version :7.0
  • Additional tools like none

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions