示例#1
0
def after_step(context, step):
    # Take a screenshot if the step failed
    if step.status == "failed":
        file_path = '%s_%s_%s.png' % (snakify(context.scenario),
                                      snakify(step.name),
                                      uuid.uuid4())
        context.browser.driver.save_screenshot(file_path)
示例#2
0
def after_step(context, step):
    # Take a screenshot if the step failed
    if step.status == "failed":
        file_path = '%s_%s.png' % (snakify(context.scenario), snakify(
            step.name))
        context.browser.driver.save_screenshot(file_path)
示例#3
0
def after_step(context, step):
    if step.status == "failed":
        file_path = '%s_%s.png' % (snakify(context.scenario), snakify(step.name))
        context.browser.driver.save_screenshot(file_path)
示例#4
0
def snake(value):
    return snakify(value)