From: Wolfram Schneider Date: Thu, 7 May 2015 14:52:57 +0000 (+0000) Subject: enable to tune timeouts, MKWS-384 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=afc5059946f7230fc3552efd565f695568edea93 enable to tune timeouts, MKWS-384 This can be activated with the URL parameter &second=number second is by default 1000 ms. To increase the value by 2, use &second=2000 --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index f0870e7..a410ca2 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -30,6 +30,9 @@ var jasmine_status = { function init_jasmine_config() { var jasmine_config_default = { + // tune parameter for batch testing + batch_tuning: true, + search_query: "freebsd", max_time: 17, // in seconds @@ -55,6 +58,15 @@ function init_jasmine_config() { debug("jasmine config: " + key + " => " + jasmine_config[key]); } + // jenkins batch tests + if (jasmine_config.batch_tuning) { + var sec = mkws.getParameterByName("second", document.location); + if (sec && parseInt(sec) >= 100) { + jasmine_config.second = parseInt(sec); + debug("longer timeouts for batch testing: " + jasmine_config.second); + } + } + mkws.jasmine_done = false; };