There's no special support for this feature. The easiest way to handle
this would be having keyword like 'Divided by two' that takes the
original number and expected results as arguments. This keyword could
then be used in data-driven manner [1] but the keyword needs to be
repeated every time.
Repeating the keyword in data-driven tests is somewhat annoying and we
plan to make that easier in RF 2.2. There's one idea in the tracker
already [2] but I'm not entirely happy about it. More ideas and
comments are highly welcome. The less new syntax the idea needs the
better as also RIDE and other tools should handle it.
[1] http://robotframework.googlecode.com/svn/tags/robotframework-2.1.2/doc/userguide/RobotFrameworkUserGuide.html#data-driven-style
[2] http://code.google.com/p/robotframework/issues/detail?id=390
Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
Very nice and clever! I hope you and others keep experimenting with
different possibilities to create BDD style tests with Robot
Framework. If you got new ideas on how to make it easier, we can add
more enhancements to RF 2.2.
I've been thinking about this too. What would be a good way to
configure these? Should configuration be data file, execution round,
or environment based?
Cucumber has this feature too and these words have been translated to
many different languages. Could we possibly reuse those translations?