You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2016/08/08 12:31:57 UTC
cordova-paramedic git commit: Increased the webdriver http timeout
for Appium tests
Repository: cordova-paramedic
Updated Branches:
refs/heads/master 3e1caa77f -> 9ea17579f
Increased the webdriver http timeout for Appium tests
Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/9ea17579
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/9ea17579
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/9ea17579
Branch: refs/heads/master
Commit: 9ea17579f2cf504984f4d9be61c31d686be6c94b
Parents: 3e1caa7
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Mon Aug 8 13:09:57 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Mon Aug 8 14:43:54 2016 +0300
----------------------------------------------------------------------
lib/appium/helpers/wdHelper.js | 7 +++++++
lib/paramedic.js | 6 +++---
lib/utils/utilities.js | 3 +++
3 files changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/9ea17579/lib/appium/helpers/wdHelper.js
----------------------------------------------------------------------
diff --git a/lib/appium/helpers/wdHelper.js b/lib/appium/helpers/wdHelper.js
index 791d578..b1c82fc 100644
--- a/lib/appium/helpers/wdHelper.js
+++ b/lib/appium/helpers/wdHelper.js
@@ -32,6 +32,7 @@ var ASYNC_SCRIPT_TIMEOUT = 60000;
var fs = require('fs');
var path = require('path');
var wd = global.WD || require('wd');
+var util = require('../../utils').utilities;
module.exports.getDriver = function (platform) {
var normalizedPlatform;
@@ -49,6 +50,12 @@ module.exports.getDriver = function (platform) {
throw 'Unknown platform: ' + platform;
}
+ global.WD.configureHttp({
+ timeout: util.WD_TIMEOUT,
+ retryDelay: util.WD_RETRY_DELAY,
+ retries: util.WD_RETRIES
+ });
+
if (global.USE_SAUCE) {
serverConfig = {
host: global.SAUCE_SERVER_HOST,
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/9ea17579/lib/paramedic.js
----------------------------------------------------------------------
diff --git a/lib/paramedic.js b/lib/paramedic.js
index f31cade..12f7c8e 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -668,9 +668,9 @@ ParamedicRunner.prototype.connectWebdriver = function () {
logger.normal('cordova-paramedic: connecting webdriver');
wd.configureHttp({
- timeout: 3 * 60 * 1000,
- retryDelay: 15000,
- retries: 5
+ timeout: util.WD_TIMEOUT,
+ retryDelay: util.WD_RETRY_DELAY,
+ retries: util.WD_RETRIES
});
var driver = wd.promiseChainRemote(util.SAUCE_HOST, util.SAUCE_PORT, user, key);
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/9ea17579/lib/utils/utilities.js
----------------------------------------------------------------------
diff --git a/lib/utils/utilities.js b/lib/utils/utilities.js
index 87736ba..b0543df 100644
--- a/lib/utils/utilities.js
+++ b/lib/utils/utilities.js
@@ -152,6 +152,9 @@ module.exports = {
SAUCE_PORT: 80,
SAUCE_MAX_DURATION: 5400, // in seconds
DEFAULT_ENCODING: 'utf-8',
+ WD_TIMEOUT: 3 * 60 * 1000,
+ WD_RETRY_DELAY: 15000,
+ WD_RETRIES: 5,
DEFAULT_LOG_TIME: 15,
DEFAULT_LOG_TIME_ADDITIONAL: 2,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org