sublime-robot-plugin icon indicating copy to clipboard operation
sublime-robot-plugin copied to clipboard

support for variables in keyword names

Open shellderp opened this issue 13 years ago • 2 comments

For example, a keyword could be defined as such: (from user guide)

Select ${animal} from list Select "${city}" "${team}" I execute "${cmd:[^"]+}" I type ${a:\d+} ${operator:[+-]} ${b:\d+} Today is ${date:\d{4}-\d{2}-\d{2}}

http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.7.5#embedding-arguments-into-keyword-name

shellderp avatar Oct 26 '12 02:10 shellderp

it should be possible to replace the variable string ${...} with a regex, and for keywords that use regex, we can leave the regex there. then attempt to match

shellderp avatar Nov 01 '12 17:11 shellderp

robot/running/userkeyword.py contains code for matching keywords with embedded variables

shellderp avatar Nov 21 '12 02:11 shellderp