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 2017/07/03 13:58:51 UTC
cordova-paramedic git commit: CB-12982 Increase the WebDriver timeout
and spam dots when trying to launch Appium tests
Repository: cordova-paramedic
Updated Branches:
refs/heads/master f7495e6bd -> 3b32f80bf
CB-12982 Increase the WebDriver timeout and spam dots when trying to launch 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/3b32f80b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/3b32f80b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/3b32f80b
Branch: refs/heads/master
Commit: 3b32f80bfc5b81f72b5ebf6d78a86a1705b27587
Parents: f7495e6
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Mon Jul 3 16:57:58 2017 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Mon Jul 3 16:57:58 2017 +0300
----------------------------------------------------------------------
lib/appium/helpers/wdHelper.js | 13 ++++++++++++-
lib/utils/utilities.js | 4 ++--
2 files changed, 14 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/3b32f80b/lib/appium/helpers/wdHelper.js
----------------------------------------------------------------------
diff --git a/lib/appium/helpers/wdHelper.js b/lib/appium/helpers/wdHelper.js
index 1115af7..912a69b 100644
--- a/lib/appium/helpers/wdHelper.js
+++ b/lib/appium/helpers/wdHelper.js
@@ -88,10 +88,21 @@ module.exports.getDriver = function (platform) {
}
module.exports.configureLogging(driver);
+ var spamDots = setInterval(function () {
+ process.stdout.write('.');
+ }, 1000);
return driver
.init(driverConfig)
- .setImplicitWaitTimeout(IMPLICIT_WAIT_TIMEOUT);
+ .setImplicitWaitTimeout(IMPLICIT_WAIT_TIMEOUT)
+ .then(function () {
+ clearInterval(spamDots);
+ process.stdout.write('\n');
+ }, function (error) {
+ clearInterval(spamDots);
+ process.stdout.write('\n');
+ throw(error);
+ });
};
module.exports.getWD = function () {
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/3b32f80b/lib/utils/utilities.js
----------------------------------------------------------------------
diff --git a/lib/utils/utilities.js b/lib/utils/utilities.js
index a397582..bd701b4 100644
--- a/lib/utils/utilities.js
+++ b/lib/utils/utilities.js
@@ -195,9 +195,9 @@ module.exports = {
SAUCE_PORT: 80,
SAUCE_MAX_DURATION: 5400, // in seconds
DEFAULT_ENCODING: 'utf-8',
- WD_TIMEOUT: 15 * 60 * 1000,
+ WD_TIMEOUT: 30 * 60 * 1000,
WD_RETRY_DELAY: 15000,
- WD_RETRIES: 5,
+ WD_RETRIES: 15,
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