Skip to content

Commit

Permalink
Taking screenshot on failure if the value of screenshot_on_failure is…
Browse files Browse the repository at this point in the history
… true
  • Loading branch information
kashishm committed Mar 19, 2016
1 parent 1578d34 commit c595a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getgauge/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def execute_method(params, func, response):


def _add_exception(e, response):
if os.getenv('screenshot_on_failure'):
if os.getenv('screenshot_on_failure') == 'true':
response.executionStatusResponse.executionResult.screenShot = registry.screenshot_provider()()
response.executionStatusResponse.executionResult.failed = True
response.executionStatusResponse.executionResult.errorMessage = e.__str__()
Expand Down

0 comments on commit c595a79

Please sign in to comment.