Comment #4 on issue 1225 by pekka.klarck: Support `Screenshot` library with IronPython
http://code.google.com/p/robotframework/issues/detail?id=1225

I tested this new functionality with IronPython on Win XP and it worked great.

Unfortunately tests are still failing CI for this error:

WindowsError: [Errno 22] The handle is invalid
Traceback (most recent call last):
File "c:\jenkins\workspace\RobotFramework-Windows-IronPython\src\robot\libraries\Screenshot.py", line 207, in take_screenshot
    path = self._save_screenshot(name)
File "c:\jenkins\workspace\RobotFramework-Windows-IronPython\src\robot\libraries\Screenshot.py", line 224, in _save_screenshot
    return self._screenshot_to_file(path)
File "c:\jenkins\workspace\RobotFramework-Windows-IronPython\src\robot\libraries\Screenshot.py", line 231, in _screenshot_to_file
    self._screenshot_taker(path)
File "c:\jenkins\workspace\RobotFramework-Windows-IronPython\src\robot\libraries\Screenshot.py", line 267, in __call__
    self._screenshot(path)
File "c:\jenkins\workspace\RobotFramework-Windows-IronPython\src\robot\libraries\Screenshot.py", line 298, in _cli_screenshot
    g.CopyFromScreen(0, 0, 0, 0, bmp.Size)

My guess is that this is related tests on CI not having an attached display. Ilmari promised to enable a virtual display on Friday so will see then. I'd definitely want the above error message get better anyway.

Reply via email to