Skip Scenario Conditionally

28 views
Skip to first unread message

MA1

unread,
May 26, 2014, 9:01:50 AM5/26/14
to lettuc...@googlegroups.com
Hi,

Is it possible to Skip a Scenario Conditionally? Something like 

unittest.skipIf(conditionreason)
    Skip the decorated test if condition is true.


Thanks 

MA1

unread,
May 26, 2014, 9:13:12 AM5/26/14
to lettuc...@googlegroups.com
@before.each_scenario
def check_availability(scenario):
    if not available(''):
        scenario.steps = []

This is the only hackish way i found to skip a scenario conditionally.
 
Reply all
Reply to author
Forward
0 new messages