From 20e3ada3bb276b8a0c7fece9ecbb3be6380dd589 Mon Sep 17 00:00:00 2001 From: Cloud user Date: Thu, 25 Feb 2016 14:48:02 +0000 Subject: Add POD visualisation Change-Id: I4044c018fc3900615492a897e0c2a73348c8b0cd Signed-off-by: Cloud user --- .../tools/dashboard/js/opnfv_dashboard_tests.js | 67 ++++++++++++++++------ 1 file changed, 48 insertions(+), 19 deletions(-) (limited to 'utils/test/result_collection_api/tools/dashboard/js/opnfv_dashboard_tests.js') diff --git a/utils/test/result_collection_api/tools/dashboard/js/opnfv_dashboard_tests.js b/utils/test/result_collection_api/tools/dashboard/js/opnfv_dashboard_tests.js index 3683c632c..4bb56af79 100644 --- a/utils/test/result_collection_api/tools/dashboard/js/opnfv_dashboard_tests.js +++ b/utils/test/result_collection_api/tools/dashboard/js/opnfv_dashboard_tests.js @@ -15,14 +15,14 @@ function format_date(inputDate){ } // Draw a single graph for a specific test for a specific installer -function draw_graph_per_scenario_per_installer (filename, installer, scenario, test_unit){ +function draw_graph_per_scenario_per_installer (filename, installer, pod, scenario, test_unit){ $.getJSON(filename, function(data) { var serie = []; index_test = 0; // find index mapping to the test_unit for (var i=0; i'+opnfv_dashboard_installers[i]+''; - else - html_installers += '
  • '+opnfv_dashboard_installers[i]+'
  • '; + else + html_installers += '
  • '+opnfv_dashboard_installers[i]+'
  • '; html_installers += ''; $("#installers").html(html_installers); } +// generate pods buttons +function show_installers_pods(active_pod) +{ + var html_pods = ''; + html_pods += ''; + $("#pods").html(html_pods); +} + // generate a div per installer (to host the graph) function show_divs(installer){ $("#graphs").remove(); @@ -163,14 +191,15 @@ function show_divs(installer){ var div_scenario = '
    '; console.log(div_scenario); var $newdiv = $(div_scenario); - $("#graphs").append($newdiv); } } // generate HTML menus and buttons $( document ).ready(function(){ - show_installers(''); - show_testcases(); console.log( "ready!" ); + + //show_installers(''); + show_testcases(); + on_ready_draw_graph(); }); -- cgit 1.2.3-korg