]> git.koha-community.org Git - koha.git/commit
Bug 20757: Capture and upload screenshot on selenium errors
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 11 May 2018 19:58:07 +0000 (16:58 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 3 Aug 2018 13:31:05 +0000 (14:31 +0100)
commiteb2a2e4de3e26511b0d38aa05358b75d544f2524
treedf64e3d7a32a1e9463db852adcdb622f5c6a7a09
parent803eb524c69183957fd30865a6af54e2a513fcb5
Bug 20757: Capture and upload screenshot on selenium errors

It is a real pain to debug selenium errors, especially when it is
not reproducible locally.

This patch capture a screenshot when an error occurred and upload it
using the excellent lut.im service provided by framasoft
(We could host our own later).

Test plan:
Modify a selenium script to make it fails (search for find_element)
You will see a stack trace followed by a link to framapic.org

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 2898b580891e271c102d592c5040122007ee7a73)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/lib/Selenium.pm