From 81ff48ea26278df389d6855ac5e128e071506045 Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Wed, 20 Dec 2017 18:38:28 -0500 Subject: [PATCH] LP#1739504 - create prototype of latency test tool in webstaff Basic websocket latency tester. Just pings opensrf.system.echo. Initial first test runs 10 pings, calculates average each time. Signed-off by: Cesar Velez Conflicts: Open-ILS/web/js/ui/default/staff/admin/workstation/app.js Add missing pieces for latency tester (commits got out of order, sorry!). Signed-off-by: Dan Wells --- .../staff/admin/workstation/t_splash.tt2 | 9 ++++ .../staff/admin/workstation/t_tests.tt2 | 41 +++++++++++++++++++ .../ui/default/staff/admin/workstation/app.js | 6 +++ 3 files changed, 56 insertions(+) create mode 100644 Open-ILS/src/templates/staff/admin/workstation/t_tests.tt2 diff --git a/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 b/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 index 94c11400c8..345f7db6d3 100644 --- a/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 +++ b/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 @@ -49,6 +49,15 @@ +
+ +
+
diff --git a/Open-ILS/src/templates/staff/admin/workstation/t_tests.tt2 b/Open-ILS/src/templates/staff/admin/workstation/t_tests.tt2 new file mode 100644 index 0000000000..767a80cbea --- /dev/null +++ b/Open-ILS/src/templates/staff/admin/workstation/t_tests.tt2 @@ -0,0 +1,41 @@ +
+
+ [% l('Webclient Latency Test') %] +
+
+ +
+
+
+
[% l('Server Details') %]
+
+ +
+
[% l('Hostname') %]
+
{{hostname}}
+
+
+
+
+
+
+
+

[% l('Latency Test') %]

+

[% |l %]This will measure the websocket latency between your workstation client and the Evergreen server at the host above.[% END %] +

+ + +
    +

    Latency results for {{hostname}}. Average Latency: ms

    +
  1. Time: {{t.t}} Latency: {{t.l}} ms
  2. +
+ +
+
+ + + + diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index 4ca997dfba..de6e94f5fb 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -44,6 +44,12 @@ angular.module('egWorkstationAdmin', resolve : resolver }); + $routeProvider.when('/admin/workstation/tests', { + templateUrl: './admin/workstation/t_tests', + controller: 'testsCtrl', + resolve : resolver + }); + // default page $routeProvider.otherwise({ templateUrl : './admin/workstation/t_splash', -- 2.43.2