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>
This commit is contained in:
parent
e751ce8cf2
commit
a4da4b7568
1 changed files with 1 additions and 10 deletions
|
@ -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 a new issue