Bugzilla – Attachment 70734 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.24 KB, created by
Mark Tompsett
on 2018-01-19 02:53:09 UTC
(
hide
)
Description:
Bug 19802: Add stack trace to ease debugging
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-01-19 02:53:09 UTC
Size:
1.24 KB
patch
obsolete
>From a44387a1feb5f6d71b4d41a5da4dcd68beac81e3 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 > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > t/lib/Selenium.pm | 11 +++++++++++ > 1 file changed, 11 insertions(+) > >diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm >index 2fcd5d2..57a5535 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.1.4
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