NitorCreations / RobotFramework-EclipseIDE

Developing an Eclipse IDE for the Robot Framework test automation tool
71 stars 53 forks source link

Setup and teardown keywords can be variables #44

Open xkr47 opened 11 years ago

xkr47 commented 11 years ago

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}