A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/robotframework/robotframework/issues/4069 below:

Variables acting as embedded arguments are not checked against regular expression · Issue #4069 · robotframework/robotframework · GitHub

Hi, I came across strange behaviour of RF regarding embedded arguments. I have keyword

Perform ${arg:[^ ]+}
    Log To Console  ${arg}

In other words, the argument cannot contain any space. Then, Perform abcd passes, as it contains no space. Perform ab cd fails with No keyword with name 'Perform ab cd' found, since it does contain a space. So far so good. But when I set the value with space to a variable and give it to the keyword: ${a} Set Variable ab cd and Perform ${a}, the keyword surprisingly passes (and logs ab cd). I expect it to fail as if in case when the non-matching value was given to the keyword directly.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4