-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
functional test failures in common.getApp() #7253
Comments
@w33ble could you please take a look at this when you have time. I think you implemented this method and I'm not too clear on what it does or what could be causing it to fail. |
Notice the time gap of about 15 seconds here, which is the setFindTimeout. And this is already wrapped in a tryForTime so it's going through 2 cycles of this before that times out in 40 seconds in this case. But this shouldn't ever take even 15 seconds.
|
I just reproduced this locally while working on new dashboard tests. When it's happening locally on CHROME I see the Kibana window with no inner contents like this. And the test tried a couple of times (with a new t_ hash in the URL) but it kept coming up blank. Here again we see; 16:07:44.855: check testStatusPage
16:07:44.855: self.checkForKibanaApp()
16:07:45.398: current application: status_page
16:07:45.398: kibanaLoaded = false
16:07:45.398: Kibana is not loaded, retrying
16:07:45.400: tryForTime failure: Kibana is not loaded, retrying
16:07:45.903: navigate to: http://localhost:5601/app/kibana#/dashboard
16:07:46.007: returned from get, calling refresh
16:07:46.156: check testStatusPage
16:07:46.157: self.checkForKibanaApp()
16:07:57.198: kibana check failed
16:07:57.198: { [NoSuchElement: [POST http://localhost:4444/wd/hub/session/3111c205-1754-42d5-8105-280c7c30598f/element / {"using":"css selector","value":".app-wrapper .application"}] no such element: Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}
(Session info: chrome=50.0.2661.102)
(Driver info: chromedriver=2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067),platform=Windows NT 10.0 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.06 seconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'LeeD-ASUS', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_73'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\Users\Lee\AppData\Local\Temp\scoped_dir55660_402}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.102, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: 050146844a7d5c80e9978d12061698a0
* Element info: {Using=css selector, value=.app-wrapper .application}]
name: 'NoSuchElement',
message: '[POST http://localhost:4444/wd/hub/session/3111c205-1754-42d5-8105-280c7c30598f/element / {"using":"css selector","value":".app-wrapper .application"}] no such element: Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\n (Session info: chrome=50.0.2661.102)\n (Driver info: chromedriver=2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067),platform=Windows NT 10.0 x86_64) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 10.06 seconds\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'LeeD-ASUS\', ip: \'192.168.56.1\', os.name: \'Windows 10\', os.arch: \'amd64\', os.version: \'10.0\', java.version: \'1.8.0_73\'\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\\Users\\Lee\\AppData\\Local\\Temp\\scoped_dir55660_402}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.102, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]\nSession ID: 050146844a7d5c80e9978d12061698a0\n*** Element info: {Using=css selector, value=.app-wrapper .application}',
status: 7,
detail:
{ additionalInformation: '\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\\Users\\Lee\\AppData\\Local\\Temp\\scoped_dir55660_402}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.102, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]\nSession ID: 050146844a7d5c80e9978d12061698a0\n*** Element info: {Using=css selector, value=.app-wrapper .application}',
localizedMessage: 'no such element: Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\n (Session info: chrome=50.0.2661.102)\n (Driver info: chromedriver=2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067),platform=Windows NT 10.0 x86_64) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 10.06 seconds\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'LeeD-ASUS\', ip: \'192.168.56.1\', os.name: \'Windows 10\', os.arch: \'amd64\', os.version: \'10.0\', java.version: \'1.8.0_73\'\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\\Users\\Lee\\AppData\\Local\\Temp\\scoped_dir55660_402}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.102, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]\nSession ID: 050146844a7d5c80e9978d12061698a0\n*** Element info: {Using=css selector, value=.app-wrapper .application}',
supportUrl: 'http://seleniumhq.org/exceptions/no_such_element.html',
systemInformation: 'System info: host: \'LeeD-ASUS\', ip: \'192.168.56.1\', os.name: \'Windows 10\', os.arch: \'amd64\', os.version: \'10.0\', java.version: \'1.8.0_73\'',
cause: null,
stackTrace:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ],
suppressed: [],
message: 'no such element: Unable to locate element: {"method":"css selector","selector":".app-wrapper .application"}\n (Session info: chrome=50.0.2661.102)\n (Driver info: chromedriver=2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067),platform=Windows NT 10.0 x86_64) (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 10.06 seconds\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSystem info: host: \'LeeD-ASUS\', ip: \'192.168.56.1\', os.name: \'Windows 10\', os.arch: \'amd64\', os.version: \'10.0\', java.version: \'1.8.0_73\'\nDriver info: org.openqa.selenium.chrome.ChromeDriver\nCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\\Users\\Lee\\AppData\\Local\\Temp\\scoped_dir55660_402}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=50.0.2661.102, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]\nSession ID: 050146844a7d5c80e9978d12061698a0\n*** Element info: {Using=css selector, value=.app-wrapper .application}',
hCode: 406490856,
class: 'org.openqa.selenium.NoSuchElementException',
buildInformation:
{ buildRevision: '35ae25b',
buildTime: '2016-03-15 17:00:58',
releaseLabel: '2.53.0',
hCode: 336619606,
class: 'org.openqa.selenium.internal.BuildInfo' },
screen: <Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 0f 00 00 00 08 70 08 02 00 00 00 1f dc 5c 25 00 00 80 00 49 44 41 54 78 da ec bd 87 57 5c 47 9a ... > },
request:
{ url: 'http://localhost:4444/wd/hub/session/3111c205-1754-42d5-8105-280c7c30598f/element',
method: 'POST',
data: { using: 'css selector', value: '.app-wrapper .application' } },
response:
{ data: <Buffer 7b 22 73 74 61 74 65 22 3a 22 6e 6f 20 73 75 63 68 20 65 6c 65 6d 65 6e 74 22 2c 22 73 65 73 73 69 6f 6e 49 64 22 3a 22 33 31 31 31 63 32 30 35 2d 31 ... >,
getHeader: [Function],
requestOptions:
{ followRedirects: false,
handleAs: 'text',
headers: [Object],
method: 'POST',
data: '{"using":"css selector","value":".app-wrapper .application"}' },
statusCode: 500,
url: 'http://localhost:4444/wd/hub/session/3111c205-1754-42d5-8105-280c7c30598f/element',
nativeResponse:
IncomingMessage {
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 2,
_maxListeners: undefined,
socket: [Object],
connection: [Object],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
headers: [Object],
rawHeaders: [Object],
trailers: {},
rawTrailers: [],
upgrade: false,
url: '',
method: null,
statusCode: 500,
statusMessage: 'Internal Server Error',
client: [Object],
_consuming: true,
_dumped: false,
req: [Object],
read: [Function] } } }
16:07:57.211: kibanaLoaded = false
16:07:57.211: Kibana is not loaded, retrying
16:07:57.213: tryForTime failure: Kibana is not loaded, retrying |
It could be that my test is doing something bad while writing to the .kibana index. When I have the blank screen and refresh with the dev console open I see this;
And http://localhost:9200/.kibana/_mapping shows (partially collapsed) that there's no dashboard mapping yet (should that "undefined" be there?); |
I'm having problems locally with my data loading which might be impacting this problem, but it happens on Jenkins too without my new data loading problems. |
Here's another instance of the failure;
|
It's been almost 2 years since the last comment. I don't think this issue is relevant any longer. |
I'm not sure what has caused this to start popping up but it's caused a couple of test failures lately;
For example, this jenkins run which has only a single line change to a console test;
http://build-eu-00.elastic.co/job/kibana_core_pr/3754/consoleFull
has multiple instances of this problem. Here's an example;
The problem below starts at 16:47:02.962. The last passing test was in
status page
and so the next test suite is settings._initial_state. The before method reloads the empty .kibana index and the is callingsettingsPage.navigateTo();
which callsgetApp()
. That method uses the".app-wrapper .application"
css selector.The text was updated successfully, but these errors were encountered: