Bugzilla – Attachment 120323 Details for
Bug 28250
Debug from Selenium error handler is no longer working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28250: Remove upload of debug for Selenium failures
Bug-28250-Remove-upload-of-debug-for-Selenium-fail.patch (text/plain), 1.49 KB, created by
Victor Grousset/tuxayo
on 2021-04-30 03:02:08 UTC
(
hide
)
Description:
Bug 28250: Remove upload of debug for Selenium failures
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2021-04-30 03:02:08 UTC
Size:
1.49 KB
patch
obsolete
>From a8a5212b2591bca23422f889b40042d83bb6e9f4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 28 Apr 2021 12:18:36 +0200 >Subject: [PATCH] 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> >--- > t/lib/Selenium.pm | 11 +---------- > 1 file changed, 1 insertion(+), 10 deletions(-) > >diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm >index ee25a649f7..54f9b9109c 100644 >--- a/t/lib/Selenium.pm >+++ b/t/lib/Selenium.pm >@@ -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 { >-- >2.31.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28250
:
120275
| 120323