summaryrefslogtreecommitdiffstats
path: root/non-puppet/qtmetrics2/scripts/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'non-puppet/qtmetrics2/scripts/ajax.js')
-rw-r--r--non-puppet/qtmetrics2/scripts/ajax.js31
1 files changed, 30 insertions, 1 deletions
diff --git a/non-puppet/qtmetrics2/scripts/ajax.js b/non-puppet/qtmetrics2/scripts/ajax.js
index 294194b..f63695e 100644
--- a/non-puppet/qtmetrics2/scripts/ajax.js
+++ b/non-puppet/qtmetrics2/scripts/ajax.js
@@ -34,7 +34,7 @@
/**
* Ajax route calls
- * @since 23-09-2015
+ * @since 24-09-2015
* @author Juha Sippola
*/
@@ -152,4 +152,33 @@ $(function () {
});
}
+ // Top testset duration
+ if ($.inArray('testsets_duration', divs) > -1) {
+ $.ajax({
+ url: "data/test/duration/testsets",
+ dataType: "html",
+ cache: true
+ })
+ .done(function( html ) {
+ console.log(this.url + " done");
+ $('#testsets_duration').html(html);
+ });
+ }
+
+ // Top testfunction duration
+ if ($.inArray('testfunctions_duration', divs) > -1) {
+ testset = $('#testset').html();
+ project = $('#project').html();
+ url = "data/test/duration/testfunctions/" + testset + "/" + project;
+ $.ajax({
+ url: url,
+ dataType: "html",
+ cache: true
+ })
+ .done(function( html ) {
+ console.log(this.url + " done");
+ $('#testfunctions_duration').html(html);
+ });
+ }
+
});