Bugzilla – Attachment 70158 Details for
Bug 19802
Move Selenium code to its own module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19802: Add stack trace to ease debugging
Bug-19802-Add-stack-trace-to-ease-debugging.patch (text/plain), 1.20 KB, created by
Jonathan Druart
on 2017-12-26 17:43:35 UTC
(
hide
)
Description:
Bug 19802: Add stack trace to ease debugging
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-12-26 17:43:35 UTC
Size:
1.20 KB
patch
obsolete
>From ba45e0ba92ea88305ae95c5a0a64ac06f7b376f4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 26 Dec 2017 14:41:50 -0300 >Subject: [PATCH] Bug 19802: Add stack trace to ease debugging > >--- > t/lib/Selenium.pm | 11 +++++++++++ > 1 file changed, 11 insertions(+) > >diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm >index 0251ea7992..f33e26981c 100644 >--- a/t/lib/Selenium.pm >+++ b/t/lib/Selenium.pm >@@ -17,6 +17,8 @@ package t::lib::Selenium; > > > use Modern::Perl; >+use Carp qw( croak ); >+ > use C4::Context; > > use base qw(Class::Accessor); >@@ -34,6 +36,15 @@ sub new { > $self->{driver} = Selenium::Remote::Driver->new( > port => $self->{selenium_port}, > remote_server_addr => $self->{selenium_addr}, >+ error_handler => sub { >+ my $selenium_error = $_[1]; >+ print STDERR "\nSTRACE:"; >+ my $i = 1; >+ while ( (my @call_details = (caller($i++))) ){ >+ print STDERR "\t" . $call_details[1]. ":" . $call_details[2] . " in " . $call_details[3]."\n"; >+ } >+ print STDERR "\n"; >+ croak $selenium_error; } > ); > return bless $self, $class; > } >-- >2.11.0
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 19802
:
69756
|
70158
|
70159
|
70733
|
70734