Bug 28250: Remove upload of debug for Selenium failures
We added an upload of the source page and of the screenshot but both services are discontinued.
If we need them back we must host them ourselves.
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit a4da4b7568)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
fc9d7ce7da
commit
f77b351cc6
|
|
@ -29,17 +29,8 @@ __PACKAGE__->mk_accessors(qw(login password base_url opac_base_url selenium_addr
|
|||
sub capture {
|
||||
my ( $class, $driver ) = @_;
|
||||
|
||||
$driver->get_page_source;
|
||||
write_file('/tmp/page_source_from_selenium', {binmode => ':utf8'}, $driver->get_page_source );
|
||||
my $gdf3_url = qx(cat /tmp/page_source_from_selenium | curl --data-binary \@- https://gdf3.com);
|
||||
print STDERR "\nPage source pasted at $gdf3_url";
|
||||
|
||||
my $lutim_server = q|https://pic.infini.fr/|; # Thanks Infini!
|
||||
$driver->capture_screenshot('selenium_failure.png');
|
||||
my $from_json = from_json qx{curl -s -F "format=json" -F "file=\@selenium_failure.png" -F "delete-day=1" $lutim_server};
|
||||
if ( $from_json ) {
|
||||
print STDERR "\nSCREENSHOT: $lutim_server/" . $from_json->{msg}->{short} . "\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sub new {
|
||||
|
|
|
|||
Loading…
Reference in New Issue