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

When using --prerunmodifier keywords are added two times #483

Open
gregory83 opened this issue Mar 26, 2024 · 0 comments
Open

When using --prerunmodifier keywords are added two times #483

gregory83 opened this issue Mar 26, 2024 · 0 comments

Comments

@gregory83
Copy link

gregory83 commented Mar 26, 2024

Hello,

I noticed following issue:
Run docker with --prerunmodifier some_path.suite_visitor.Visitor
In my case the goal is to define capture screen in each test case.

Example:
`
class ScreenRecordingSuite(SuiteVisitor):

    def start_test(self, test):
        inject_keyword(test,"setup", "Start screen recording", append=True)

    def end_test(self, test):
        inject_keyword(test, "teardown", "Stop screen recording", append=True)

`

But my keywords are injected two times.
If I'm using directly robot command then it is added only one time.

I'm not sure if I'm doing something wrong or not. I quickly checked source code and I was not able to find anything.

Expected behavior
Keywords are injected only one times

Robot template
Any test is fine the goal is to verify that keywords are injected properly

Screenshots
image

Please provide any relevant information, such as:

  • Everything run in docker version: ppodgorsek/robot-framework:7.1.0
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

No branches or pull requests

1 participant