Status: Accepted
Owner: ----
Labels: Priority-Medium Target-2.5.2 Type-Enhancement

New issue 610 by pekka.klarck: `Run Keyword` variants should be executed in dry-run mode when feasible
http://code.google.com/p/robotframework/issues/detail?id=610

The new dry-run mode skips all the library keywords and this includes also all the `Run Keyword` variants that are used to execute other keywords conditionally or otherwise. This means that errors in those keywords are not detected. For example, neither `My keyword` or `My second keyword` are executed in this case:

    Run Keyword If  ${x} > 0  My keyword
    Run Keyword Unless  ${x} > 0  My second keyword

There are two problems in implementing this:

1) We don't generally know which argument to a `Run Keyword` variant, if any, contains the name of the keyword to execute. We can guess that it's the last argument that should be resolved when the keyword is executed normally (that information is available in RUNKEYWORD_REGISTER) but that's not always the case. A better approach would be making it possible to specify what argument contains the name when `Run Keywords` are registered.

2) The name of the keyword to be executed may contain variable. Because we don't know variables in dry-run mode resolving them is impossible. Simply skipping keywords with variables would probably be a good enough solution.

Reply via email to