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

Setup and teardown keywords can be variables #44

Open
xkr47 opened this issue Dec 16, 2012 · 0 comments
Open

Setup and teardown keywords can be variables #44

xkr47 opened this issue Dec 16, 2012 · 0 comments
Labels

Comments

@xkr47
Copy link
Member

xkr47 commented Dec 16, 2012

As specified in the documentation, it should be possible to use variables in suite/test setup/teardown keywords. Quoting:

The name of the keyword to be executed as a setup or a teardown can be a variable. This facilitates having different setups or teardowns in different environments by giving the keyword name as a variable from the command line.

Example:

Test case
  [Setup]  ${TEST_CASE_SETUP}

Effectively the variable can also be just a part of the keyword, like:

  [Setup]  Log in as ${TESTED_USER}
xkr47 added a commit that referenced this issue Mar 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant