Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support [Setup] with user keywords #4747

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
dries007 opened this issue Apr 24, 2023 · 1 comment
Closed

Support [Setup] with user keywords #4747

dries007 opened this issue Apr 24, 2023 · 1 comment

Comments

@dries007
Copy link

dries007 commented Apr 24, 2023

As per the discussion in #4745, this is a separate issue to add a [Setup] setting to user keywords.

The reason for wanting it in our usecase is to indicate a semantic differance between regular steps in a keyword and the Setup/Teardown. This differance is used by our system to define if a fail is a Setup failure (to be handled by the Test Framework team) and a DUT failure (to be handled by the test team).

Specifically this helps us when using Templates in a test case, as the template keyword could then have a Setup and Teardown that's excecuted once per run of the template instead of once for the whole testcase.

@pekkaklarck
Copy link
Member

The reason we didn't add setup for user keywords back when user keyword teardowns were implemented in RF 2.6 (#711) was that there's only a semantic difference between a first keyword and a setup. With tests the [Setup] setting is useful, because it can override the default setup set in the Settings section with Test Setup.

I can see that in some cases the semantic difference can be meaningful and don't have anything against with user keyword setups being introduced. Another reason to add them is consistency. It's surprising that you can use [Setup] and [Teardown] with tests but only [Teardown] with user keywords.

I'll assign this to RF 6.2 scope, but cannot promise it will be implemented in that release If someone would like to see this already in RF 6.1, a pull request could be accepted.

@pekkaklarck pekkaklarck added this to the v6.2 milestone Apr 24, 2023
@pekkaklarck pekkaklarck changed the title No [Setup] possible on user keywords Support [Setup] with user keywords Apr 24, 2023
@pekkaklarck pekkaklarck modified the milestones: v6.2, v7.0 Jun 2, 2023
@pekkaklarck pekkaklarck self-assigned this Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants