Exemple #1
0
 def wrapper(*args, **kwargs):
     try:
         function(*args, **kwargs)
     except Exception:
         splinter_tests.screenshot(filename)
         raise
 def wrapper(*args, **kwargs):
     try:
         function(*args, **kwargs)
     except Exception:
         splinter_tests.screenshot(filename)
         raise
Exemple #3
0
def screenshot_on_exception(filename):
    try:
        yield
    except Exception:
        splinter_tests.screenshot(filename)
        raise
def screenshot_on_exception(filename):
    try:
        yield
    except Exception:
        splinter_tests.screenshot(filename)
        raise