Project

General

Profile

Bug #12341

assertScreenshot wirft ab und zu Fehler

Added by Sebastian Wehrmann almost 7 years ago. Updated almost 7 years ago.

Status:
Fix released
Priority:
High (P2)
Category:
Backend Webdriver
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Keywords:

Description

Der tats├Ąchlich aufgetretene Fehler wird dadurch verdeckt.

Message: u"Could not take screenshot of current page - TypeError: b.body is null\nBuild info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:08:56'\nSystem info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.3', java.version: '1.6.0_43'\nDriver info: driver.version: unknown" ; Stacktrace: Method <anonymous method> threw an error in file:///var/folders/c1/rs6_lxw16xq1b97g_zl10vr80000gr/T/anonymous3506398014109225386webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js 

  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 327, in run
    testMethod()
  File "/Users/jenkins/work/workspace/bo_dgb_internet/instance/src/uc/src/uc/composer/site/tree/tests/test_nodeactions.py", line 176, in test_move_button_should_open_target_chooser_to_select_target
    s.waitForTextPresent('Moved sub1 to sub2.')
  File "/Users/jenkins/eggs/gocept.selenium-2.0.0b3-py2.7.egg/gocept/selenium/wd_selenese.py", line 651, in <lambda>
    self._waitFor(assertion, *args, **kw))
  File "/Users/jenkins/eggs/gocept.selenium-2.0.0b3-py2.7.egg/gocept/selenium/wd_selenese.py", line 744, in _waitFor
    assertion(*args, **kw)
  File "/Users/jenkins/eggs/gocept.selenium-2.0.0b3-py2.7.egg/gocept/selenium/wd_selenese.py", line 554, in assertTextPresent
    raise self.failureException('Text %r not present' % pattern)
  File "/Users/jenkins/eggs/gocept.selenium-2.0.0b3-py2.7.egg/gocept/selenium/wd_selenese.py", line 55, in failureException
    screenshot_msg = self.screenshot()
  File "/Users/jenkins/eggs/gocept.selenium-2.0.0b3-py2.7.egg/gocept/selenium/wd_selenese.py", line 342, in screenshot
    screenshot_window(self))
  File "/Users/jenkins/eggs/gocept.selenium-2.0.0b3-py2.7.egg/gocept/selenium/screenshot.py", line 254, in screenshot_window
    return save_screenshot_temporary(make_screenshot(selense, 'css=body'))
  File "/Users/jenkins/eggs/gocept.selenium-2.0.0b3-py2.7.egg/gocept/selenium/screenshot.py", line 166, in make_screenshot
    selenese.captureScreenshot(path)
  File "/Users/jenkins/eggs/gocept.selenium-2.0.0b3-py2.7.egg/gocept/selenium/wd_selenese.py", line 110, in captureScreenshot
    self.selenium.get_screenshot_as_file(filename)
  File "/Users/jenkins/eggs/selenium-2.28.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 704, in get_screenshot_as_file
    png = self.execute(Command.SCREENSHOT)['value']
  File "/Users/jenkins/eggs/selenium-2.28.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 157, in execute
    self.error_handler.check_response(response)
  File "/Users/jenkins/eggs/selenium-2.28.0-py2.7.egg/selenium/webdriver/remote/errorhandler.py", line 149, in check_response
    raise exception_class(message, screen, stacktrace)

Associated revisions

Revision 574:3298b14ef786 (diff)
Added by Sebastian Wehrmann almost 7 years ago

re #12341: Don't conceal errors if taking auto screenshot on error failed.

History

#1 Updated by Sebastian Wehrmann almost 7 years ago

  • Category set to Backend Webdriver
  • Status changed from New to Confirmed
  • Assignee set to Sebastian Wehrmann
  • Priority changed from Normal (P3) to High (P2)

#2 Updated by Sebastian Wehrmann almost 7 years ago

  • Status changed from Confirmed to Fix committed
  • % Done changed from 0 to 100

#3 Updated by Sebastian Wehrmann almost 7 years ago

  • Status changed from Fix committed to Fix released

Also available in: Atom PDF