Skip to content

Instantly share code, notes, and snippets.

@santiycr
Created June 2, 2011 01:12
Show Gist options
  • Save santiycr/1003731 to your computer and use it in GitHub Desktop.
Save santiycr/1003731 to your computer and use it in GitHub Desktop.
Let Sauce know about your Selenium 1 python test results with 2 lines of code!
def tearDown(self):
passed = {'passed': self._exc_info() == (None, None, None)}
self.selenium.set_context("sauce: job-info=%s" % json.dumps(passed))
self.selenium.stop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment