No, there are no switch statements in Robot syntax. When you need
complex logic like that, it is often a good idea to move the logic
into a test library where you can use real programming code.
> Right now I'm using something like the following. The script unnecessarily
> checks the key against each possible value in sequential order.
> Even if I add e a Exit For Loop after a match, there are some unnecessary
> steps.
>
> #unpack dictionary
> #for each key
> Run Keyword If ${key}=='a' A-test
> Run Keyword If ${key}=='b' B-test
> Run Keyword If ${key}=='c' C-test
Instead of the above, you could possibly use this:
#for each key
Run Keyword ${key}-test
Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org