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

New issue 619 by pekka.klarck: `Variable Should Exist` should support returning true/false depending does variable exist or not
http://code.google.com/p/robotframework/issues/detail?id=619

Currently `Variable Should Exist` passes if variable exists and fails if it doesn't. This is problematic if you want to do different actions based on does the variable exist or not. You can wrap `Variable Should Exist` with `Run Keyword And Ignore Error` but that's pretty complex.

We can easily add new argument to `Variable Should Exist` to allow configuring the keyword so that it returns boolean true or false instead of passing/failing. I don't think `Variable Should Not Exist` needs this option because `Variable Should Exist` already returns false if the variable doesn't exist.

Reply via email to