Steps to debug and/or fix functional test timeouts.

This commit is contained in:
LeeDr 2015-11-19 11:06:01 -06:00
parent 7e3d846afd
commit 7411132164
4 changed files with 12 additions and 5 deletions

View file

@ -12,7 +12,6 @@ define(function (require) {
var settingsPage;
var discoverPage;
var remote;
this.timeout = 60000;
bdd.before(function () {
common = new Common(this.remote);
@ -71,7 +70,6 @@ define(function (require) {
bdd.it('save query should show toast message and display query name', function () {
var expectedSavedQueryMessage = 'Discover: Saved Data Source "' + queryName1 + '"';
this.timeout = 60000;
return discoverPage.saveSearch(queryName1)
.then(function () {
return headerPage.getToastMessage();

View file

@ -19,6 +19,7 @@ define(function (require) {
bdd.before(function () {
common = new Common(this.remote);
remote = this.remote;
this.timeout = 120000;
});
bdd.after(function unloadMakelogs() {

View file

@ -3,7 +3,7 @@ define(function (require) {
var _ = require('intern/dojo/node!lodash');
return _.assign({
debug: false,
debug: true,
capabilities: {
'selenium-version': '2.47.1',
'idle-timeout': 30

View file

@ -31,7 +31,10 @@ define(function (require) {
if (testStatusPage !== false) {
return self.checkForKibanaApp()
.then(function (kibanaLoaded) {
if (!kibanaLoaded) throw new Error('Kibana is not loaded, retrying');
if (!kibanaLoaded) {
throw new Error(moment().format('HH:mm:ss.SSS') + ': ' +
'Kibana is not loaded, retrying');
}
});
}
})
@ -40,7 +43,12 @@ define(function (require) {
})
.then(function (currentUrl) {
var navSuccessful = new RegExp(appUrl).test(currentUrl);
if (!navSuccessful) throw new Error('App failed to load: ' + appName);
if (!navSuccessful) {
throw new Error(moment().format('HH:mm:ss.SSS') + ': ' +
'App failed to load: ' + appName +
' in ' + defaultTimeout + 'ms' +
' currentUrl = ' + currentUrl);
}
});
});
};